[04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]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:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:14]accept exits with 9 [04:56:14]New connection [04:56:14]New thread 3066813796 created [04:56:14]Thread 3066957156 joined [04:56:14]Waiting for new connection... [04:56:14] Sock 9.Parse request [04:56:14]Sock 9.Check first char [04:56:14]Sock 9.First char is OK [04:56:14]request: POST /json_proto HTTP/1.0 [04:56:14]Method: POST [04:56:14]URL: /json_proto [04:56:14]Method is POST - this is cgi request [04:56:14]url: /json_proto [04:56:14]query_string will be loaded in cgi processing [04:56:14]execute_cgi json_proto POST (null) [04:56:14]execute_cgi path=json_proto method=POST [04:56:14]POST find Content-Length [04:56:14]Host: 172.17.59.68:8080 [04:56:14]Content-Length: 682 [04:56:14]Content-Type: application/json [04:56:14] [04:56:14]POST finish read [04:56:14]Found Content-Length = 682 [04:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.590, "sum" : 1300.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:14]execute_script... [04:56: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)321083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.590, "sum" : 1300.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:14]POST & json_proto [04:56:14]process_json_proto [04:56:14]json parsed OK: [04:56:14]protocol is kg_v1.0 [04:56:14]action value=close_receipt [04:56:14]process_action close_receipt [04:56:14]cmd_close_receipt [04:56:14]MH_GetDate [04:56:14]Write to MH i2c: F0 00 00 78 66 CD [04:56:14]Write i2c OK [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: F0 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: F0 09 00 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: F0 09 00 78 66 00 1B AB 77 66 BC EC 60 65 E6 [04:56:14]GetLastDocTimeStamp 1719110733 [04:56:14]current date 1719118619 [04:56:14]FM_GetShiftState [04:56:14]SAM_PROTO_GetShiftState [04:56:14]wFMCommunicate request_size=4 [04:56:14]MH_SAM_APDU [04:56:14]CAPDU: 80 13 01 00 [04:56:14]Write to MH i2c: E2 08 00 79 66 80 13 01 00 00 00 00 00 5C [04:56:14]Write i2c OK [04:56:14]MH_I2C_Read... [04:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:14]Read from MH i2c: E2 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: E2 0E 00 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: E2 0E 00 79 66 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 7A [04:56:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [04:56:14]wFMCommunicate OK [04:56:14]SAM_PROTO_GetShiftState done [04:56:14]FM_GetShiftState done [04:56:14]opened in 1719106490 [04:56:14]opened+sec_in_day 1719192890 [04:56:14]quantity*price = 130077 [04:56:14]sum+1 = 130079 [04:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.78 ИТОГО: 1300.00 Внесено: 1500.00 СДАЧА: 200.00 НСП 1% : 11.51 НДС 12% : 138.14 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 6 23.06.2024 04:57 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112405 ФПД: 67553814223627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T045700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112405&fm=67553814223627&tin=02508201610067®Number=0000000000092771&sum=130000 [04:56:15]StoreToDocumentArchive [04:56:15]shift 392 fd 112405 [04:56:15]save to /storage/0392/doc_00112405 [04:56:15]save last doc name /storage/0392/doc_00112405 to /storage/kkm_last_doc_name [04:56:15]save OK [04:56:15]Clear old archive folders... [04:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:56:15]tlvbuf is 0126FD20 [04:56:15]SAM_PROTO_ClearQueue [04:56:15]wFMCommunicate request_size=4 [04:56:15]MH_SAM_APDU [04:56:15]CAPDU: 80 09 00 00 [04:56:15]Write to MH i2c: E2 08 00 86 66 80 09 00 00 00 00 00 00 5E [04:56:15]Write i2c OK [04:56:15]MH_I2C_Read... [04:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:56:15]Read from MH i2c: E2 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 03 00 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 03 00 86 66 00 90 00 60 [04:56:15]RAPDU: 90 00 [04:56:15]wFMCommunicate OK [04:56:15]SAM_PROTO_ClearQueue done [04:56:15]KKMCreateOFDPacket [04:56:15]OFDProtocolAddRootSTLVToBuf [04:56:15]FM_MakeSignedData [04:56:15]FM_MakeSignedData [04:56:15]SAM_PROTO_SignData [04:56:15]wFMCommunicate request_size=4 [04:56:15]MH_SAM_APDU [04:56:15]CAPDU: 80 0D 01 02 [04:56:15]Write to MH i2c: E2 08 00 87 66 80 0D 01 02 00 00 00 00 66 [04:56:15]Write i2c OK [04:56:15]MH_I2C_Read... [04:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:56:15]Read from MH i2c: E2 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 03 00 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 03 00 87 66 00 90 00 61 [04:56:15]RAPDU: 90 00 [04:56:15]wFMCommunicate OK [04:56:15]wFMCommunicate request_size=255 [04:56:15]MH_SAM_APDU [04:56:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 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 F6 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 06 00 00 00 F4 03 04 00 1C AB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B7 01 00 35 04 06 00 3D [04:56:15]Write to MH i2c: E2 02 01 88 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 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 F6 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 06 00 00 00 F4 03 04 00 1C AB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B7 01 00 35 04 06 00 3D 00 00 E9 [04:56:15]Write i2c OK [04:56:15]MH_I2C_Read... [04:56:15]OFD Sender: No OFD packet to send [04:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:15]Read from MH i2c: E2 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 03 00 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 03 00 88 66 00 90 00 62 [04:56:15]RAPDU: 90 00 [04:56:15]wFMCommunicate OK [04:56:15]wFMCommunicate request_size=10 [04:56:15]MH_SAM_APDU [04:56:15]CAPDU: 80 0D 02 02 05 70 99 19 9B 0B [04:56:15]Write to MH i2c: E2 0D 00 89 66 80 0D 02 02 05 00 70 99 19 9B 0B 00 00 3B [04:56:15]Write i2c OK [04:56:15]MH_I2C_Read... [04:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:15]Read from MH i2c: E2 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 03 00 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 03 00 89 66 00 90 00 63 [04:56:15]RAPDU: 90 00 [04:56:15]wFMCommunicate OK [04:56:15]wFMCommunicate request_size=4 [04:56:15]MH_SAM_APDU [04:56:15]CAPDU: 80 0D 03 02 [04:56:15]Write to MH i2c: E2 08 00 8A 66 80 0D 03 02 00 00 00 00 6B [04:56:15]Write i2c OK [04:56:15]MH_I2C_Read... [04:56:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:56:15]Read from MH i2c: E2 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 0B 00 [04:56:15]MH_I2C_Read... [04:56:15]Read from MH i2c: E2 0B 00 8A 66 00 AF BB BD C0 13 E8 29 D5 90 00 4C [04:56:15]RAPDU: AF BB BD C0 13 E8 29 D5 90 00 [04:56:15]wFMCommunicate OK [04:56:15]SAM_PROTO_SignData done [04:56:15]FM_MakeSignedData done [04:56:15]CreateOFDProtocolMessage [04:56:15]wFMCommunicate request_size=4 [04:56:15]MH_SAM_APDU [04:56:15]CAPDU: 80 11 00 00 [04:56:15]Write to MH i2c: E2 08 00 8B 66 80 11 00 00 00 00 00 00 6B [04:56:15]Write i2c OK [04:56:15]MH_I2C_Read... [04:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:16]Read from MH i2c: E2 [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: E2 17 00 [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: E2 17 00 8B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [04:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [04:56:16]wFMCommunicate OK [04:56:16]CreateOFDProtocolMessage done [04:56:16]OFDSenderStorePacket 112405 [04:56:16]StoreOFDPacket docnum=112405 [04:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 14 07 01 CB 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 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 F6 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 06 00 00 00 F4 03 04 00 1C AB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B7 01 00 35 04 06 00 3D 70 99 19 9B 0B AF BB BD C0 13 E8 29 D5 [04:56:16]CheckFolder [04:56:16]dirname=/storage/ofd_packets [04:56:16]CheckFolder done [04:56:16]ProducePacketName [04:56:16]name=ofd_packets/00112405 [04:56:16]NVStorageSaveData ofd_packets/00112405 [04:56:16]File name is /storage/ofd_packets/00112405 [04:56:16]Write 301 bytes [04:56:16]NVStorageSaveData done [04:56:16]OFDSenderStorePacket done [04:56:16]KKMCreateOFDPacket done [04:56:16]NVStorageSaveData kkm_last_timestamp [04:56:16]File name is /storage/kkm_last_timestamp [04:56:16]Write 4 bytes [04:56:16]NVStorageSaveData done [04:56:16]ExternCall_PrintAddStr [04:56:16]wPrintStart [04:56:16]Write to MH i2c: 01 00 00 8C 66 F2 [04:56:16]Write i2c OK [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: 01 [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: 01 07 00 [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: 01 07 00 8C 66 00 00 00 00 00 FF 0F 07 [04:56:16]RasterBufferAndPrint [04:56:16]line Счет N : (1)321083 [04:56:16]line ИНН: 02508201610067 [04:56:16]line Контрольно-Кассовый Чек [04:56:16]line ПРОДАЖА [04:56:16]line ТРК (МРК, ГНК) : 11 [04:56:16]line Товар: 2710124130 [04:56:16]line Аи-92-К-5 [04:56:16]line 19.590 * 66.40 [04:56:16]line = 1300.78 [04:56:16]line НДС 12% НСП 1% [04:56:16]line > о реализуемом товаре [04:56:16]line ОКРУГЛЕНИЕ: -0.78 [04:56:16]line ИТОГО: 1300.00 [04:56:16]line Внесено: 1500.00 [04:56:16]line СДАЧА: 200.00 [04:56:16]line НСП 1% : 11.51 [04:56:16]line НДС 12% : 138.14 [04:56:16]line Наличными: 1300.00 [04:56:16]line Безнал.: 0.00 [04:56:16]line Место: АЗС № 65 "Партнер Нефть" [04:56:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [04:56:16]line СНО: Общий режим [04:56:16]line Чек 6 23.06.2024 04:57 [04:56:16]line Смена: 392 ФФД: 1.0 [04:56:16]line ЗНМ: 0300000198 [04:56:16]line РНМ: 0000000000092771 [04:56:16]line Версия ККМ: 001 [04:56:16]line ФМ: 0000000000875083 [04:56:16]line ФД: 112405 [04:56:16]line ФПД: 67553814223627 [04:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T045700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112405&fm=67553814223627&tin=02508201610067®Number=0000000000092771&sum=130000 [04:56:16]OFD Sender: Processing packet 112405 [packets to send 38, broken 37] [04:56:16]ProducePacketName [04:56:16]name=ofd_packets/00112405 [04:56:16]OFD Sender: To server: pG, [04:56:16]CommunicateWithHost lk.salyk.kg:30040 [04:56:16]ConnectInit lk.salyk.kg [04:56:16]written 0, free lines is 4095 [04:56:16]Connected sock=10 [04:56:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 14 07 01 CB 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 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 F6 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 06 00 00 00 F4 03 04 00 1C AB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B7 01 00 35 04 06 00 3D 70 99 19 9B 0B AF BB BD C0 13 E8 29 D5 [04:56:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A3 E0 47 00 7D BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B7 01 00 F4 03 04 00 13 42 77 66 B6 04 01 00 00 BD 4D 97 60 B1 31 35 15 [04:56:16]CommunicateWithHost err = 0 [04:56:16]CheckOFDResponse [04:56:16]1017 (14) - 77093643461234 [04:56:16]1041 (16) - 0000000000875083 [04:56:16]1040 (4) - 112405 [04:56:16]1012 (4) - 22.06.2024 21:28 [04:56:16]1206 (1) - 0 [04:56:16]OFD Sender: Remove packet 112405 [04:56:16]ProducePacketName [04:56:16]name=ofd_packets/00112405 [04:56:16]NVStorageDeleteData [04:56:16]Write to MH i2c: 01 00 00 B7 66 1D [04:56:16]Write i2c OK [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: 01 [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: 01 07 00 [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: 01 07 00 B7 66 00 00 00 00 00 E4 0C 14 [04:56:16]RasterBufferAndPrint [04:56:16]line [04:56:16]line [04:56:16]line [04:56:16]line [04:56:16]line [04:56:16]written 0, free lines is 3306 [04:56:16]MH_Cut [04:56:16]Write to MH i2c: D1 01 00 BE 66 01 F6 [04:56:16]Write i2c OK [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: D1 [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: D1 01 00 [04:56:16]MH_I2C_Read... [04:56:16]Read from MH i2c: D1 01 00 BE 66 00 F5 [04:56:16]Write to MH i2c: 01 00 00 BF 66 25 [04:56:16]Write i2c OK [04:56:16]MH_I2C_Read... [04:56:17]OFD Sender: No OFD packet to send [04:56:17]*** Cut start [04:56:17]*** Partial cut [04:56:17]*** CUTSNS_PIN = 1 [04:56:17]*** CUTSNS_PIN = 0 [04:56:17]*** Brake cut motor [04:56:18]Read from MH i2c: 01 [04:56:18]MH_I2C_Read... [04:56:18]*** Stop cut motor [04:56:18]*** Cut end [04:56:18]Read from MH i2c: 01 07 00 [04:56:18]MH_I2C_Read... [04:56:18]Read from MH i2c: 01 07 00 BF 66 00 00 00 00 00 FF 0F 3A [04:56:18]process_action close_receipt done [04:56:18]requested_data is exist [04:56:18]produce_requested_data [04:56:18]requested_item fm.sn is exist - process it [04:56:18]wFMCommunicate request_size=4 [04:56:18]MH_SAM_APDU [04:56:18]CAPDU: 80 11 00 00 [04:56:18]Write to MH i2c: E2 08 00 C0 66 80 11 00 00 00 00 00 00 A0 [04:56:18]Write i2c OK [04:56:18]MH_I2C_Read... [04:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:18]Read from MH i2c: E2 [04:56:18]MH_I2C_Read... [04:56:18]Read from MH i2c: E2 17 00 [04:56:18]MH_I2C_Read... [04:56:18]Read from MH i2c: E2 17 00 C0 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [04:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [04:56:18]wFMCommunicate OK [04:56:18]requested_item fd.num is exist - process it [04:56:18]SAM_PROTO_GetFieldsCounters [04:56:18]wFMCommunicate request_size=4 [04:56:18]MH_SAM_APDU [04:56:18]CAPDU: 80 13 00 00 [04:56:18]Write to MH i2c: E2 08 00 C1 66 80 13 00 00 00 00 00 00 A3 [04:56:18]Write i2c OK [04:56:18]MH_I2C_Read... [04:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:18]Read from MH i2c: E2 [04:56:18]MH_I2C_Read... [04:56:18]Read from MH i2c: E2 62 00 [04:56:18]MH_I2C_Read... [04:56:18]Read from MH i2c: E2 62 00 C1 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [04:56:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:56:18]wFMCommunicate OK [04:56:18]SAM_PROTO_GetFieldsCounters done [04:56:18]requested_item shift.num is exist - process it [04:56:18]requested_item shift.opened is exist - process it [04:56:18]req_shift_opened [04:56:18]FM_GetShiftState [04:56:18]SAM_PROTO_GetShiftState [04:56:18]wFMCommunicate request_size=4 [04:56:18]MH_SAM_APDU [04:56:18]CAPDU: 80 13 01 00 [04:56:18]Write to MH i2c: E2 08 00 C2 66 80 13 01 00 00 00 00 00 A5 [04:56:18]Write i2c OK [04:56:18]MH_I2C_Read... [04:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:18]Read from MH i2c: E2 [04:56:18]MH_I2C_Read... [04:56:18]Read from MH i2c: E2 0E 00 [04:56:18]MH_I2C_Read... [04:56:18]Read from MH i2c: E2 0E 00 C2 66 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C3 [04:56:18]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [04:56:18]wFMCommunicate OK [04:56:18]SAM_PROTO_GetShiftState done [04:56:18]FM_GetShiftState done [04:56:18]req_shift_opened done [04:56:18]requested_item shift.open_date is exist - process it [04:56:18]req_shift_open_date [04:56:18]req_shift_open_date done [04:56:18]produce_requested_data done [04:56:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112405,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [04:56:18]process_action_free close_receipt [04:56:18]json_value_free [04:56:18]json_value_free done [04:56:18]process_json_proto returns [04:56:18]Send response to host [04:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112405,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [04:56:18]free response buf [04:56:18]execute_script done [04:56:18]execute_script returns [04:56:18]free content buf [04:56:18]Sock 9.Close socket [04:56:18]Sock 9.Thread stoped [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59: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:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]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:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]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:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]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:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]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:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]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:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02: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:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]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]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:39]accept exits with 7 [07:44:39]New connection [07:44:39]New thread 3066957156 created [07:44:39]Thread 3066813796 joined [07:44:39]Waiting for new connection... [07:44:39] Sock 7.Parse request [07:44:39]Sock 7.Check first char [07:44:39]Sock 7.First char is OK [07:44:39]request: POST /json_proto HTTP/1.0 [07:44:39]Method: POST [07:44:39]URL: /json_proto [07:44:39]Method is POST - this is cgi request [07:44:39]url: /json_proto [07:44:39]query_string will be loaded in cgi processing [07:44:39]execute_cgi json_proto POST (null) [07:44:39]execute_cgi path=json_proto method=POST [07:44:39]POST find Content-Length [07:44:39]Host: 172.17.59.68:8080 [07:44:39]Content-Length: 677 [07:44:39]Content-Type: application/json [07:44:39] [07:44:39]POST finish read [07:44:39]Found Content-Length = 677 [07:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:39]execute_script... [07: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)321084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:39]POST & json_proto [07:44:39]process_json_proto [07:44:39]json parsed OK: [07:44:39]protocol is kg_v1.0 [07:44:39]action value=close_receipt [07:44:39]process_action close_receipt [07:44:39]cmd_close_receipt [07:44:39]MH_GetDate [07:44:39]Write to MH i2c: F0 00 00 C3 66 18 [07:44:39]Write i2c OK [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: F0 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: F0 09 00 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: F0 09 00 C3 66 00 99 D2 77 66 BC EC 60 65 D6 [07:44:39]GetLastDocTimeStamp 1719118620 [07:44:39]current date 1719128729 [07:44:39]FM_GetShiftState [07:44:39]SAM_PROTO_GetShiftState [07:44:39]wFMCommunicate request_size=4 [07:44:39]MH_SAM_APDU [07:44:39]CAPDU: 80 13 01 00 [07:44:39]Write to MH i2c: E2 08 00 C4 66 80 13 01 00 00 00 00 00 A7 [07:44:39]Write i2c OK [07:44:39]MH_I2C_Read... [07:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:40]Read from MH i2c: E2 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 0E 00 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 0E 00 C4 66 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C5 [07:44:40]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [07:44:40]wFMCommunicate OK [07:44:40]SAM_PROTO_GetShiftState done [07:44:40]FM_GetShiftState done [07:44:40]opened in 1719106490 [07:44:40]opened+sec_in_day 1719192890 [07:44:40]quantity*price = 22044 [07:44:40]sum+1 = 22046 [07:44:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 7 23.06.2024 07:45 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112406 ФПД: 59112490583191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T074529&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112406&fm=59112490583191&tin=02508201610067®Number=0000000000092771&sum=22000 [07:44:41]StoreToDocumentArchive [07:44:41]shift 392 fd 112406 [07:44:41]save to /storage/0392/doc_00112406 [07:44:41]save last doc name /storage/0392/doc_00112406 to /storage/kkm_last_doc_name [07:44:41]save OK [07:44:41]Clear old archive folders... [07:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:41]tlvbuf is 01185D40 [07:44:41]SAM_PROTO_ClearQueue [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 09 00 00 [07:44:41]Write to MH i2c: E2 08 00 D1 66 80 09 00 00 00 00 00 00 A9 [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 03 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 03 00 D1 66 00 90 00 AB [07:44:41]RAPDU: 90 00 [07:44:41]wFMCommunicate OK [07:44:41]SAM_PROTO_ClearQueue done [07:44:41]KKMCreateOFDPacket [07:44:41]OFDProtocolAddRootSTLVToBuf [07:44:41]FM_MakeSignedData [07:44:41]FM_MakeSignedData [07:44:41]SAM_PROTO_SignData [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 0D 01 02 [07:44:41]Write to MH i2c: E2 08 00 D2 66 80 0D 01 02 00 00 00 00 B1 [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 03 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 03 00 D2 66 00 90 00 AC [07:44:41]RAPDU: 90 00 [07:44:41]wFMCommunicate OK [07:44:41]wFMCommunicate request_size=255 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 99 D2 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B7 01 00 35 04 06 00 35 [07:44:41]Write to MH i2c: E2 02 01 D3 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 99 D2 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B7 01 00 35 04 06 00 35 00 00 91 [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]OFD Sender: No OFD packet to send [07:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 03 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 03 00 D3 66 00 90 00 AD [07:44:41]RAPDU: 90 00 [07:44:41]wFMCommunicate OK [07:44:41]wFMCommunicate request_size=10 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 0D 02 02 05 C3 33 00 C4 97 [07:44:41]Write to MH i2c: E2 0D 00 D4 66 80 0D 02 02 05 00 C3 33 00 C4 97 00 00 0F [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 03 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 03 00 D4 66 00 90 00 AE [07:44:41]RAPDU: 90 00 [07:44:41]wFMCommunicate OK [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 0D 03 02 [07:44:41]Write to MH i2c: E2 08 00 D5 66 80 0D 03 02 00 00 00 00 B6 [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 0B 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 0B 00 D5 66 00 D0 2D B4 27 13 71 5C 4F 90 00 BE [07:44:41]RAPDU: D0 2D B4 27 13 71 5C 4F 90 00 [07:44:41]wFMCommunicate OK [07:44:41]SAM_PROTO_SignData done [07:44:41]FM_MakeSignedData done [07:44:41]CreateOFDProtocolMessage [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 11 00 00 [07:44:41]Write to MH i2c: E2 08 00 D6 66 80 11 00 00 00 00 00 00 B6 [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 17 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 17 00 D6 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [07:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:44:41]wFMCommunicate OK [07:44:41]CreateOFDProtocolMessage done [07:44:41]OFDSenderStorePacket 112406 [07:44:41]StoreOFDPacket docnum=112406 [07:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E 7E 07 01 B1 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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 99 D2 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B7 01 00 35 04 06 00 35 C3 33 00 C4 97 D0 2D B4 27 13 71 5C 4F [07:44:41]CheckFolder [07:44:41]dirname=/storage/ofd_packets [07:44:41]CheckFolder done [07:44:41]ProducePacketName [07:44:41]name=ofd_packets/00112406 [07:44:41]NVStorageSaveData ofd_packets/00112406 [07:44:41]File name is /storage/ofd_packets/00112406 [07:44:41]Write 301 bytes [07:44:41]NVStorageSaveData done [07:44:41]OFDSenderStorePacket done [07:44:41]KKMCreateOFDPacket done [07:44:41]NVStorageSaveData kkm_last_timestamp [07:44:41]File name is /storage/kkm_last_timestamp [07:44:41]Write 4 bytes [07:44:41]NVStorageSaveData done [07:44:41]ExternCall_PrintAddStr [07:44:41]wPrintStart [07:44:41]Write to MH i2c: 01 00 00 D7 66 3D [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: 01 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: 01 07 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: 01 07 00 D7 66 00 00 00 00 00 FF 0F 52 [07:44:41]RasterBufferAndPrint [07:44:41]line Счет N : (1)321084 [07:44:41]line ИНН: 02508201610067 [07:44:41]line Контрольно-Кассовый Чек [07:44:41]line ПРОДАЖА [07:44:41]line ТРК (МРК, ГНК) : 11 [07:44:41]line Товар: 2710124130 [07:44:41]line Аи-92-К-5 [07:44:41]line 3.320 * 66.40 [07:44:41]line = 220.45 [07:44:41]line НДС 12% НСП 1% [07:44:41]line > о реализуемом товаре [07:44:41]line ОКРУГЛЕНИЕ: -0.45 [07:44:41]line ИТОГО: 220.00 [07:44:41]line Внесено: 220.00 [07:44:41]line СДАЧА: 0.00 [07:44:41]line НСП 1% : 1.95 [07:44:41]line НДС 12% : 23.41 [07:44:41]line Наличными: 220.00 [07:44:41]line Безнал.: 0.00 [07:44:41]line Место: АЗС № 65 "Партнер Нефть" [07:44:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:44:41]line СНО: Общий режим [07:44:41]line Чек 7 23.06.2024 07:45 [07:44:41]line Смена: 392 ФФД: 1.0 [07:44:41]line ЗНМ: 0300000198 [07:44:41]line РНМ: 0000000000092771 [07:44:41]line Версия ККМ: 001 [07:44:41]line ФМ: 0000000000875083 [07:44:41]line ФД: 112406 [07:44:41]line ФПД: 59112490583191 [07:44:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T074529&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112406&fm=59112490583191&tin=02508201610067®Number=0000000000092771&sum=22000 [07:44:42]OFD Sender: Processing packet 112406 [packets to send 38, broken 37] [07:44:42]ProducePacketName [07:44:42]name=ofd_packets/00112406 [07:44:42]OFD Sender: To server: pG, [07:44:42]CommunicateWithHost lk.salyk.kg:30040 [07:44:42]ConnectInit lk.salyk.kg [07:44:42]written 0, free lines is 4095 [07:44:42]Connected sock=10 [07:44:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E 7E 07 01 B1 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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 99 D2 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B7 01 00 35 04 06 00 35 C3 33 00 C4 97 D0 2D B4 27 13 71 5C 4F [07:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 CC 47 00 EB 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B7 01 00 F4 03 04 00 8D 69 77 66 B6 04 01 00 00 A9 46 B4 D5 0F 8C A7 0C [07:44:42]CommunicateWithHost err = 0 [07:44:42]CheckOFDResponse [07:44:42]1017 (14) - 77093643461234 [07:44:42]1041 (16) - 0000000000875083 [07:44:42]1040 (4) - 112406 [07:44:42]1012 (4) - 23.06.2024 00:17 [07:44:42]1206 (1) - 0 [07:44:42]OFD Sender: Remove packet 112406 [07:44:42]ProducePacketName [07:44:42]name=ofd_packets/00112406 [07:44:42]NVStorageDeleteData [07:44:42]Write to MH i2c: 01 00 00 02 67 69 [07:44:42]Write i2c OK [07:44:42]MH_I2C_Read... [07:44:42]Read from MH i2c: 01 [07:44:42]MH_I2C_Read... [07:44:42]Read from MH i2c: 01 07 00 [07:44:42]MH_I2C_Read... [07:44:42]Read from MH i2c: 01 07 00 02 67 00 00 00 00 00 CE 0C 4A [07:44:42]RasterBufferAndPrint [07:44:42]line [07:44:42]line [07:44:42]line [07:44:42]line [07:44:42]line [07:44:42]written 0, free lines is 3284 [07:44:42]MH_Cut [07:44:42]Write to MH i2c: D1 01 00 09 67 01 42 [07:44:42]Write i2c OK [07:44:42]MH_I2C_Read... [07:44:42]Read from MH i2c: D1 [07:44:42]MH_I2C_Read... [07:44:42]Read from MH i2c: D1 01 00 [07:44:42]MH_I2C_Read... [07:44:42]Read from MH i2c: D1 01 00 09 67 00 41 [07:44:42]Write to MH i2c: 01 00 00 0A 67 71 [07:44:42]Write i2c OK [07:44:42]MH_I2C_Read... [07:44:42]OFD Sender: No OFD packet to send [07:44:43]*** Cut start [07:44:43]*** Partial cut [07:44:43]*** CUTSNS_PIN = 1 [07:44:43]*** CUTSNS_PIN = 0 [07:44:43]*** Brake cut motor [07:44:43]Read from MH i2c: 01 [07:44:43]MH_I2C_Read... [07:44:43]*** Stop cut motor [07:44:43]*** Cut end [07:44:43]Read from MH i2c: 01 07 00 [07:44:43]MH_I2C_Read... [07:44:43]Read from MH i2c: 01 07 00 0A 67 00 00 00 00 00 FF 0F 86 [07:44:43]process_action close_receipt done [07:44:43]requested_data is exist [07:44:43]produce_requested_data [07:44:43]requested_item fm.sn is exist - process it [07:44:43]wFMCommunicate request_size=4 [07:44:43]MH_SAM_APDU [07:44:43]CAPDU: 80 11 00 00 [07:44:43]Write to MH i2c: E2 08 00 0B 67 80 11 00 00 00 00 00 00 EC [07:44:43]Write i2c OK [07:44:43]MH_I2C_Read... [07:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:43]Read from MH i2c: E2 [07:44:43]MH_I2C_Read... [07:44:43]Read from MH i2c: E2 17 00 [07:44:43]MH_I2C_Read... [07:44:43]Read from MH i2c: E2 17 00 0B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [07:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:44:43]wFMCommunicate OK [07:44:43]requested_item fd.num is exist - process it [07:44:43]SAM_PROTO_GetFieldsCounters [07:44:43]wFMCommunicate request_size=4 [07:44:43]MH_SAM_APDU [07:44:43]CAPDU: 80 13 00 00 [07:44:43]Write to MH i2c: E2 08 00 0C 67 80 13 00 00 00 00 00 00 EF [07:44:43]Write i2c OK [07:44:43]MH_I2C_Read... [07:44:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:44]Read from MH i2c: E2 [07:44:44]MH_I2C_Read... [07:44:44]Read from MH i2c: E2 62 00 [07:44:44]MH_I2C_Read... [07:44:44]Read from MH i2c: E2 62 00 0C 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 16 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [07:44:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 16 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:44]wFMCommunicate OK [07:44:44]SAM_PROTO_GetFieldsCounters done [07:44:44]requested_item shift.num is exist - process it [07:44:44]requested_item shift.opened is exist - process it [07:44:44]req_shift_opened [07:44:44]FM_GetShiftState [07:44:44]SAM_PROTO_GetShiftState [07:44:44]wFMCommunicate request_size=4 [07:44:44]MH_SAM_APDU [07:44:44]CAPDU: 80 13 01 00 [07:44:44]Write to MH i2c: E2 08 00 0D 67 80 13 01 00 00 00 00 00 F1 [07:44:44]Write i2c OK [07:44:44]MH_I2C_Read... [07:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:44]Read from MH i2c: E2 [07:44:44]MH_I2C_Read... [07:44:44]Read from MH i2c: E2 0E 00 [07:44:44]MH_I2C_Read... [07:44:44]Read from MH i2c: E2 0E 00 0D 67 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0F [07:44:44]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [07:44:44]wFMCommunicate OK [07:44:44]SAM_PROTO_GetShiftState done [07:44:44]FM_GetShiftState done [07:44:44]req_shift_opened done [07:44:44]requested_item shift.open_date is exist - process it [07:44:44]req_shift_open_date [07:44:44]req_shift_open_date done [07:44:44]produce_requested_data done [07:44:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112406,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [07:44:44]process_action_free close_receipt [07:44:44]json_value_free [07:44:44]json_value_free done [07:44:44]process_json_proto returns [07:44:44]Send response to host [07:44:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112406,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [07:44:44]free response buf [07:44:44]execute_script done [07:44:44]execute_script returns [07:44:44]free content buf [07:44:44]Sock 7.Close socket [07:44:44]Sock 7.Thread stoped [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55: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:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:33]accept exits with 9 [07:57:33]New connection [07:57:33]New thread 3066813796 created [07:57:33]Thread 3066957156 joined [07:57:33]Waiting for new connection... [07:57:33] Sock 9.Parse request [07:57:33]Sock 9.Check first char [07:57:33]Sock 9.First char is OK [07:57:33]request: POST /json_proto HTTP/1.0 [07:57:33]Method: POST [07:57:33]URL: /json_proto [07:57:33]Method is POST - this is cgi request [07:57:33]url: /json_proto [07:57:33]query_string will be loaded in cgi processing [07:57:33]execute_cgi json_proto POST (null) [07:57:33]execute_cgi path=json_proto method=POST [07:57:33]POST find Content-Length [07:57:33]Host: 172.17.59.68:8080 [07:57:33]Content-Length: 682 [07:57:33]Content-Type: application/json [07:57:33] [07:57:33]POST finish read [07:57:33]Found Content-Length = 682 [07:57:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:33]execute_script... [07:57: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)321085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:33]POST & json_proto [07:57:33]process_json_proto [07:57:33]json parsed OK: [07:57:33]protocol is kg_v1.0 [07:57:33]action value=close_receipt [07:57:33]process_action close_receipt [07:57:33]cmd_close_receipt [07:57:33]MH_GetDate [07:57:33]Write to MH i2c: F0 00 00 0E 67 64 [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: F0 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: F0 09 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: F0 09 00 0E 67 00 9F D5 77 66 BC EC 60 65 2B [07:57:33]GetLastDocTimeStamp 1719128729 [07:57:33]current date 1719129503 [07:57:33]FM_GetShiftState [07:57:33]SAM_PROTO_GetShiftState [07:57:33]wFMCommunicate request_size=4 [07:57:33]MH_SAM_APDU [07:57:33]CAPDU: 80 13 01 00 [07:57:33]Write to MH i2c: E2 08 00 0F 67 80 13 01 00 00 00 00 00 F3 [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:33]Read from MH i2c: E2 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 0E 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 0E 00 0F 67 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 11 [07:57:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [07:57:33]wFMCommunicate OK [07:57:33]SAM_PROTO_GetShiftState done [07:57:33]FM_GetShiftState done [07:57:33]opened in 1719106490 [07:57:33]opened+sec_in_day 1719192890 [07:57:33]quantity*price = 100064 [07:57:33]sum+1 = 100066 [07:57:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 8 23.06.2024 07:58 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112407 ФПД: 183827344053076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T075823&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112407&fm=183827344053076&tin=02508201610067®Number=0000000000092771&sum=100000 [07:57:34]StoreToDocumentArchive [07:57:34]shift 392 fd 112407 [07:57:34]save to /storage/0392/doc_00112407 [07:57:34]save last doc name /storage/0392/doc_00112407 to /storage/kkm_last_doc_name [07:57:34]save OK [07:57:34]Clear old archive folders... [07:57:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:34]tlvbuf is 011965E0 [07:57:34]SAM_PROTO_ClearQueue [07:57:34]wFMCommunicate request_size=4 [07:57:34]MH_SAM_APDU [07:57:34]CAPDU: 80 09 00 00 [07:57:34]Write to MH i2c: E2 08 00 1C 67 80 09 00 00 00 00 00 00 F5 [07:57:34]Write i2c OK [07:57:34]MH_I2C_Read... [07:57:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:34]Read from MH i2c: E2 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 03 00 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 03 00 1C 67 00 90 00 F7 [07:57:34]RAPDU: 90 00 [07:57:34]wFMCommunicate OK [07:57:34]SAM_PROTO_ClearQueue done [07:57:34]KKMCreateOFDPacket [07:57:34]OFDProtocolAddRootSTLVToBuf [07:57:34]FM_MakeSignedData [07:57:34]FM_MakeSignedData [07:57:34]SAM_PROTO_SignData [07:57:34]wFMCommunicate request_size=4 [07:57:34]MH_SAM_APDU [07:57:34]CAPDU: 80 0D 01 02 [07:57:34]Write to MH i2c: E2 08 00 1D 67 80 0D 01 02 00 00 00 00 FD [07:57:34]Write i2c OK [07:57:34]MH_I2C_Read... [07:57:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:34]Read from MH i2c: E2 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 03 00 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 03 00 1D 67 00 90 00 F8 [07:57:34]RAPDU: 90 00 [07:57:34]wFMCommunicate OK [07:57:34]wFMCommunicate request_size=255 [07:57:34]MH_SAM_APDU [07:57:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 9F D5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B7 01 00 35 04 06 00 A7 [07:57:34]Write to MH i2c: E2 02 01 1E 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 9F D5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B7 01 00 35 04 06 00 A7 00 00 59 [07:57:34]Write i2c OK [07:57:34]MH_I2C_Read... [07:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:35]Read from MH i2c: E2 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 03 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 03 00 1E 67 00 90 00 F9 [07:57:35]RAPDU: 90 00 [07:57:35]wFMCommunicate OK [07:57:35]wFMCommunicate request_size=10 [07:57:35]MH_SAM_APDU [07:57:35]CAPDU: 80 0D 02 02 05 30 A3 8A D3 54 [07:57:35]Write to MH i2c: E2 0D 00 1F 67 80 0D 02 02 05 00 30 A3 8A D3 54 00 00 8E [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:35]Read from MH i2c: E2 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 03 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 03 00 1F 67 00 90 00 FA [07:57:35]RAPDU: 90 00 [07:57:35]wFMCommunicate OK [07:57:35]wFMCommunicate request_size=4 [07:57:35]MH_SAM_APDU [07:57:35]CAPDU: 80 0D 03 02 [07:57:35]Write to MH i2c: E2 08 00 20 67 80 0D 03 02 00 00 00 00 02 [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:35]Read from MH i2c: E2 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 0B 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 0B 00 20 67 00 1E DF 73 0B 3F 55 F6 DA 90 00 E2 [07:57:35]RAPDU: 1E DF 73 0B 3F 55 F6 DA 90 00 [07:57:35]wFMCommunicate OK [07:57:35]SAM_PROTO_SignData done [07:57:35]FM_MakeSignedData done [07:57:35]CreateOFDProtocolMessage [07:57:35]wFMCommunicate request_size=4 [07:57:35]MH_SAM_APDU [07:57:35]CAPDU: 80 11 00 00 [07:57:35]Write to MH i2c: E2 08 00 21 67 80 11 00 00 00 00 00 00 02 [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:35]Read from MH i2c: E2 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 17 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 17 00 21 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [07:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:57:35]wFMCommunicate OK [07:57:35]CreateOFDProtocolMessage done [07:57:35]OFDSenderStorePacket 112407 [07:57:35]StoreOFDPacket docnum=112407 [07:57:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 3F 07 01 33 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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 9F D5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B7 01 00 35 04 06 00 A7 30 A3 8A D3 54 1E DF 73 0B 3F 55 F6 DA [07:57:35]CheckFolder [07:57:35]dirname=/storage/ofd_packets [07:57:35]CheckFolder done [07:57:35]ProducePacketName [07:57:35]name=ofd_packets/00112407 [07:57:35]NVStorageSaveData ofd_packets/00112407 [07:57:35]File name is /storage/ofd_packets/00112407 [07:57:35]Write 301 bytes [07:57:35]NVStorageSaveData done [07:57:35]OFDSenderStorePacket done [07:57:35]KKMCreateOFDPacket done [07:57:35]NVStorageSaveData kkm_last_timestamp [07:57:35]File name is /storage/kkm_last_timestamp [07:57:35]Write 4 bytes [07:57:35]NVStorageSaveData done [07:57:35]ExternCall_PrintAddStr [07:57:35]wPrintStart [07:57:35]Write to MH i2c: 01 00 00 22 67 89 [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: 01 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: 01 07 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: 01 07 00 22 67 00 00 00 00 00 FF 0F 9E [07:57:35]RasterBufferAndPrint [07:57:35]line Счет N : (1)321085 [07:57:35]line ИНН: 02508201610067 [07:57:35]line Контрольно-Кассовый Чек [07:57:35]line ПРОДАЖА [07:57:35]line ТРК (МРК, ГНК) : 11 [07:57:35]line Товар: 2710124130 [07:57:35]line Аи-92-К-5 [07:57:35]line 15.070 * 66.40 [07:57:35]line = 1000.65 [07:57:35]line НДС 12% НСП 1% [07:57:35]line > о реализуемом товаре [07:57:35]line ОКРУГЛЕНИЕ: -0.65 [07:57:35]line ИТОГО: 1000.00 [07:57:35]line Внесено: 1000.00 [07:57:35]line СДАЧА: 0.00 [07:57:35]line НСП 1% : 8.85 [07:57:35]line НДС 12% : 106.26 [07:57:35]line Наличными: 1000.00 [07:57:35]line Безнал.: 0.00 [07:57:35]line Место: АЗС № 65 "Партнер Нефть" [07:57:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:57:35]line СНО: Общий режим [07:57:35]line Чек 8 23.06.2024 07:58 [07:57:35]line Смена: 392 ФФД: 1.0 [07:57:35]line ЗНМ: 0300000198 [07:57:35]line РНМ: 0000000000092771 [07:57:35]line Версия ККМ: 001 [07:57:35]line ФМ: 0000000000875083 [07:57:35]line ФД: 112407 [07:57:35]line ФПД: 183827344053076 [07:57:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T075823&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112407&fm=183827344053076&tin=02508201610067®Number=0000000000092771&sum=100000 [07:57:35]OFD Sender: Processing packet 112407 [packets to send 38, broken 37] [07:57:35]ProducePacketName [07:57:35]name=ofd_packets/00112407 [07:57:35]OFD Sender: To server: pG, [07:57:35]CommunicateWithHost lk.salyk.kg:30040 [07:57:35]ConnectInit lk.salyk.kg [07:57:35]written 0, free lines is 4095 [07:57:35]Connected sock=10 [07:57:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 3F 07 01 33 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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 9F D5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B7 01 00 35 04 06 00 A7 30 A3 8A D3 54 1E DF 73 0B 3F 55 F6 DA [07:57:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7A E1 47 00 99 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B7 01 00 F4 03 04 00 92 6C 77 66 B6 04 01 00 00 D1 A1 0C 4D E9 5F B0 6E [07:57:35]CommunicateWithHost err = 0 [07:57:35]CheckOFDResponse [07:57:35]1017 (14) - 77093643461234 [07:57:35]1041 (16) - 0000000000875083 [07:57:35]1040 (4) - 112407 [07:57:35]1012 (4) - 23.06.2024 00:30 [07:57:35]1206 (1) - 0 [07:57:35]OFD Sender: Remove packet 112407 [07:57:35]ProducePacketName [07:57:35]name=ofd_packets/00112407 [07:57:35]NVStorageDeleteData [07:57:35]Write to MH i2c: 01 00 00 4D 67 B4 [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: 01 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: 01 07 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: 01 07 00 4D 67 00 00 00 00 00 DA 0C A1 [07:57:35]RasterBufferAndPrint [07:57:35]line [07:57:35]line [07:57:35]line [07:57:35]line [07:57:35]line [07:57:35]written 0, free lines is 3297 [07:57:35]MH_Cut [07:57:35]Write to MH i2c: D1 01 00 54 67 01 8D [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: D1 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: D1 01 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: D1 01 00 54 67 00 8C [07:57:35]Write to MH i2c: 01 00 00 55 67 BC [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:36]OFD Sender: No OFD packet to send [07:57:36]*** Cut start [07:57:36]*** Partial cut [07:57:36]*** CUTSNS_PIN = 1 [07:57:36]*** CUTSNS_PIN = 0 [07:57:36]*** Brake cut motor [07:57:37]Read from MH i2c: 01 [07:57:37]MH_I2C_Read... [07:57:37]*** Stop cut motor [07:57:37]*** Cut end [07:57:37]Read from MH i2c: 01 07 00 [07:57:37]MH_I2C_Read... [07:57:37]Read from MH i2c: 01 07 00 55 67 00 00 00 00 00 FF 0F D1 [07:57:37]process_action close_receipt done [07:57:37]requested_data is exist [07:57:37]produce_requested_data [07:57:37]requested_item fm.sn is exist - process it [07:57:37]wFMCommunicate request_size=4 [07:57:37]MH_SAM_APDU [07:57:37]CAPDU: 80 11 00 00 [07:57:37]Write to MH i2c: E2 08 00 56 67 80 11 00 00 00 00 00 00 37 [07:57:37]Write i2c OK [07:57:37]MH_I2C_Read... [07:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:37]Read from MH i2c: E2 [07:57:37]MH_I2C_Read... [07:57:37]Read from MH i2c: E2 17 00 [07:57:37]MH_I2C_Read... [07:57:37]Read from MH i2c: E2 17 00 56 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 89 [07:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:57:37]wFMCommunicate OK [07:57:37]requested_item fd.num is exist - process it [07:57:37]SAM_PROTO_GetFieldsCounters [07:57:37]wFMCommunicate request_size=4 [07:57:37]MH_SAM_APDU [07:57:37]CAPDU: 80 13 00 00 [07:57:37]Write to MH i2c: E2 08 00 57 67 80 13 00 00 00 00 00 00 3A [07:57:37]Write i2c OK [07:57:37]MH_I2C_Read... [07:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:37]Read from MH i2c: E2 [07:57:37]MH_I2C_Read... [07:57:37]Read from MH i2c: E2 62 00 [07:57:37]MH_I2C_Read... [07:57:37]Read from MH i2c: E2 62 00 57 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 17 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [07:57:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 17 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:57:37]wFMCommunicate OK [07:57:37]SAM_PROTO_GetFieldsCounters done [07:57:37]requested_item shift.num is exist - process it [07:57:37]requested_item shift.opened is exist - process it [07:57:37]req_shift_opened [07:57:37]FM_GetShiftState [07:57:37]SAM_PROTO_GetShiftState [07:57:37]wFMCommunicate request_size=4 [07:57:37]MH_SAM_APDU [07:57:37]CAPDU: 80 13 01 00 [07:57:37]Write to MH i2c: E2 08 00 58 67 80 13 01 00 00 00 00 00 3C [07:57:37]Write i2c OK [07:57:37]MH_I2C_Read... [07:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:37]Read from MH i2c: E2 [07:57:37]MH_I2C_Read... [07:57:37]Read from MH i2c: E2 0E 00 [07:57:37]MH_I2C_Read... [07:57:37]Read from MH i2c: E2 0E 00 58 67 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 5A [07:57:37]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [07:57:37]wFMCommunicate OK [07:57:37]SAM_PROTO_GetShiftState done [07:57:37]FM_GetShiftState done [07:57:37]req_shift_opened done [07:57:37]requested_item shift.open_date is exist - process it [07:57:37]req_shift_open_date [07:57:37]req_shift_open_date done [07:57:37]produce_requested_data done [07:57:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112407,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [07:57:37]process_action_free close_receipt [07:57:37]json_value_free [07:57:37]json_value_free done [07:57:37]process_json_proto returns [07:57:37]Send response to host [07:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112407,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [07:57:37]free response buf [07:57:37]execute_script done [07:57:37]execute_script returns [07:57:37]free content buf [07:57:37]Sock 9.Close socket [07:57:37]Sock 9.Thread stoped [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:43]accept exits with 7 [08:07:43]New connection [08:07:43]New thread 3066957156 created [08:07:43]Thread 3066813796 joined [08:07:43]Waiting for new connection... [08:07:43] Sock 7.Parse request [08:07:43]Sock 7.Check first char [08:07:43]Sock 7.First char is OK [08:07:43]request: POST /json_proto HTTP/1.0 [08:07:43]Method: POST [08:07:43]URL: /json_proto [08:07:43]Method is POST - this is cgi request [08:07:43]url: /json_proto [08:07:43]query_string will be loaded in cgi processing [08:07:43]execute_cgi json_proto POST (null) [08:07:43]execute_cgi path=json_proto method=POST [08:07:43]POST find Content-Length [08:07:43]Host: 172.17.59.68:8080 [08:07:43]Content-Length: 679 [08:07:43]Content-Type: application/json [08:07:43] [08:07:43]POST finish read [08:07:43]Found Content-Length = 679 [08:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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:07:43]execute_script... [08:07: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)321086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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:07:43]POST & json_proto [08:07:43]process_json_proto [08:07:43]json parsed OK: [08:07:43]protocol is kg_v1.0 [08:07:43]action value=close_receipt [08:07:43]process_action close_receipt [08:07:43]cmd_close_receipt [08:07:43]MH_GetDate [08:07:43]Write to MH i2c: F0 00 00 59 67 AF [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: F0 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: F0 09 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: F0 09 00 59 67 00 01 D8 77 66 BC EC 60 65 DB [08:07:43]GetLastDocTimeStamp 1719129503 [08:07:43]current date 1719130113 [08:07:43]FM_GetShiftState [08:07:43]SAM_PROTO_GetShiftState [08:07:43]wFMCommunicate request_size=4 [08:07:43]MH_SAM_APDU [08:07:43]CAPDU: 80 13 01 00 [08:07:43]Write to MH i2c: E2 08 00 5A 67 80 13 01 00 00 00 00 00 3E [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:43]Read from MH i2c: E2 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 0E 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 0E 00 5A 67 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 5C [08:07:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:07:43]wFMCommunicate OK [08:07:43]SAM_PROTO_GetShiftState done [08:07:43]FM_GetShiftState done [08:07:43]opened in 1719106490 [08:07:43]opened+sec_in_day 1719192890 [08:07:43]quantity*price = 300056 [08:07:43]sum+1 = 300057 [08:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 9 23.06.2024 08:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112408 ФПД: 71024712762983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T080833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112408&fm=71024712762983&tin=02508201610067®Number=0000000000092771&sum=300000 [08:07:44]StoreToDocumentArchive [08:07:44]shift 392 fd 112408 [08:07:44]save to /storage/0392/doc_00112408 [08:07:44]save last doc name /storage/0392/doc_00112408 to /storage/kkm_last_doc_name [08:07:44]save OK [08:07:44]Clear old archive folders... [08:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:07:44]tlvbuf is 01175220 [08:07:44]SAM_PROTO_ClearQueue [08:07:44]wFMCommunicate request_size=4 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 09 00 00 [08:07:44]Write to MH i2c: E2 08 00 67 67 80 09 00 00 00 00 00 00 40 [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 03 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 03 00 67 67 00 90 00 42 [08:07:44]RAPDU: 90 00 [08:07:44]wFMCommunicate OK [08:07:44]SAM_PROTO_ClearQueue done [08:07:44]KKMCreateOFDPacket [08:07:44]OFDProtocolAddRootSTLVToBuf [08:07:44]FM_MakeSignedData [08:07:44]FM_MakeSignedData [08:07:44]SAM_PROTO_SignData [08:07:44]wFMCommunicate request_size=4 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 0D 01 02 [08:07:44]Write to MH i2c: E2 08 00 68 67 80 0D 01 02 00 00 00 00 48 [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 03 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 03 00 68 67 00 90 00 43 [08:07:44]RAPDU: 90 00 [08:07:44]wFMCommunicate OK [08:07:44]wFMCommunicate request_size=255 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 09 00 00 00 F4 03 04 00 01 D8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B7 01 00 35 04 06 00 40 98 BA C6 [08:07:44]Write to MH i2c: E2 02 01 69 67 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 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 09 00 00 00 F4 03 04 00 01 D8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B7 01 00 35 04 06 00 40 98 BA C6 00 00 0E [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 03 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 03 00 69 67 00 90 00 44 [08:07:44]RAPDU: 90 00 [08:07:44]wFMCommunicate OK [08:07:44]wFMCommunicate request_size=7 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 0D 02 02 02 46 67 [08:07:44]Write to MH i2c: E2 0A 00 6A 67 80 0D 02 02 02 00 46 67 00 00 FC [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 03 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 03 00 6A 67 00 90 00 45 [08:07:44]RAPDU: 90 00 [08:07:44]wFMCommunicate OK [08:07:44]wFMCommunicate request_size=4 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 0D 03 02 [08:07:44]Write to MH i2c: E2 08 00 6B 67 80 0D 03 02 00 00 00 00 4D [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 0B 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 0B 00 6B 67 00 D3 D7 5D 25 6B 92 96 6C 90 00 79 [08:07:44]RAPDU: D3 D7 5D 25 6B 92 96 6C 90 00 [08:07:44]wFMCommunicate OK [08:07:44]SAM_PROTO_SignData done [08:07:44]FM_MakeSignedData done [08:07:44]CreateOFDProtocolMessage [08:07:44]wFMCommunicate request_size=4 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 11 00 00 [08:07:44]Write to MH i2c: E2 08 00 6C 67 80 11 00 00 00 00 00 00 4D [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 17 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 17 00 6C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9F [08:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:07:44]wFMCommunicate OK [08:07:44]CreateOFDProtocolMessage done [08:07:44]OFDSenderStorePacket 112408 [08:07:44]StoreOFDPacket docnum=112408 [08:07:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BA 4E 04 01 7A 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 09 00 00 00 F4 03 04 00 01 D8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B7 01 00 35 04 06 00 40 98 BA C6 46 67 D3 D7 5D 25 6B 92 96 6C [08:07:44]CheckFolder [08:07:44]dirname=/storage/ofd_packets [08:07:44]CheckFolder done [08:07:44]ProducePacketName [08:07:44]name=ofd_packets/00112408 [08:07:44]NVStorageSaveData ofd_packets/00112408 [08:07:44]File name is /storage/ofd_packets/00112408 [08:07:44]Write 298 bytes [08:07:44]NVStorageSaveData done [08:07:44]OFDSenderStorePacket done [08:07:44]KKMCreateOFDPacket done [08:07:44]NVStorageSaveData kkm_last_timestamp [08:07:44]File name is /storage/kkm_last_timestamp [08:07:44]Write 4 bytes [08:07:44]NVStorageSaveData done [08:07:44]ExternCall_PrintAddStr [08:07:44]wPrintStart [08:07:44]Write to MH i2c: 01 00 00 6D 67 D4 [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: 01 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: 01 07 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: 01 07 00 6D 67 00 00 00 00 00 FF 0F E9 [08:07:44]RasterBufferAndPrint [08:07:44]line Счет N : (1)321086 [08:07:44]line ИНН: 02508201610067 [08:07:44]line Контрольно-Кассовый Чек [08:07:44]line ПРОДАЖА [08:07:44]line ТРК (МРК, ГНК) : 22 [08:07:44]line Товар: 2710194210 [08:07:44]line ДТ-К-5 [08:07:44]line 41.160 * 72.90 [08:07:44]line = 3000.56 [08:07:44]line НДС 12% НСП 1% [08:07:44]line > о реализуемом товаре [08:07:44]line ОКРУГЛЕНИЕ: -0.56 [08:07:44]line ИТОГО: 3000.00 [08:07:44]line Внесено: 3000.00 [08:07:44]line СДАЧА: 0.00 [08:07:44]line НСП 1% : 26.55 [08:07:44]line НДС 12% : 318.64 [08:07:44]line Наличными: 3000.00 [08:07:44]line Безнал.: 0.00 [08:07:44]line Место: АЗС № 65 "Партнер Нефть" [08:07:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:07:44]line СНО: Общий режим [08:07:45]line Чек 9 23.06.2024 08:08 [08:07:45]line Смена: 392 ФФД: 1.0 [08:07:45]line ЗНМ: 0300000198 [08:07:45]line РНМ: 0000000000092771 [08:07:45]line Версия ККМ: 001 [08:07:45]line ФМ: 0000000000875083 [08:07:45]line ФД: 112408 [08:07:45]line ФПД: 71024712762983 [08:07:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T080833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112408&fm=71024712762983&tin=02508201610067®Number=0000000000092771&sum=300000 [08:07:45]OFD Sender: Processing packet 112408 [packets to send 38, broken 37] [08:07:45]ProducePacketName [08:07:45]name=ofd_packets/00112408 [08:07:45]OFD Sender: To server: pG, [08:07:45]CommunicateWithHost lk.salyk.kg:30040 [08:07:45]ConnectInit lk.salyk.kg [08:07:45]written 0, free lines is 4095 [08:07:45]Connected sock=10 [08:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BA 4E 04 01 7A 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 09 00 00 00 F4 03 04 00 01 D8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B7 01 00 35 04 06 00 40 98 BA C6 46 67 D3 D7 5D 25 6B 92 96 6C [08:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 40 47 00 1C 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B7 01 00 F4 03 04 00 F4 6E 77 66 B6 04 01 00 00 F3 33 65 8F 1B 36 56 26 [08:07:45]CommunicateWithHost err = 0 [08:07:45]CheckOFDResponse [08:07:45]1017 (14) - 77093643461234 [08:07:45]1041 (16) - 0000000000875083 [08:07:45]1040 (4) - 112408 [08:07:45]1012 (4) - 23.06.2024 00:40 [08:07:45]1206 (1) - 0 [08:07:45]OFD Sender: Remove packet 112408 [08:07:45]ProducePacketName [08:07:45]name=ofd_packets/00112408 [08:07:45]NVStorageDeleteData [08:07:45]Write to MH i2c: 01 00 00 98 67 FF [08:07:45]Write i2c OK [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: 01 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: 01 07 00 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: 01 07 00 98 67 00 00 00 00 00 DF 0C F1 [08:07:45]RasterBufferAndPrint [08:07:45]line [08:07:45]line [08:07:45]line [08:07:45]line [08:07:45]line [08:07:45]written 0, free lines is 3300 [08:07:45]MH_Cut [08:07:45]Write to MH i2c: D1 01 00 9F 67 01 D8 [08:07:45]Write i2c OK [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: D1 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: D1 01 00 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: D1 01 00 9F 67 00 D7 [08:07:45]Write to MH i2c: 01 00 00 A0 67 07 [08:07:45]Write i2c OK [08:07:45]MH_I2C_Read... [08:07:46]OFD Sender: No OFD packet to send [08:07:46]*** Cut start [08:07:46]*** Partial cut [08:07:46]*** CUTSNS_PIN = 1 [08:07:46]*** CUTSNS_PIN = 0 [08:07:46]*** Brake cut motor [08:07:47]Read from MH i2c: 01 [08:07:47]MH_I2C_Read... [08:07:47]*** Stop cut motor [08:07:47]*** Cut end [08:07:47]Read from MH i2c: 01 07 00 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: 01 07 00 A0 67 00 00 00 00 00 FF 0F 1C [08:07:47]process_action close_receipt done [08:07:47]requested_data is exist [08:07:47]produce_requested_data [08:07:47]requested_item fm.sn is exist - process it [08:07:47]wFMCommunicate request_size=4 [08:07:47]MH_SAM_APDU [08:07:47]CAPDU: 80 11 00 00 [08:07:47]Write to MH i2c: E2 08 00 A1 67 80 11 00 00 00 00 00 00 82 [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:47]Read from MH i2c: E2 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: E2 17 00 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: E2 17 00 A1 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D4 [08:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:07:47]wFMCommunicate OK [08:07:47]requested_item fd.num is exist - process it [08:07:47]SAM_PROTO_GetFieldsCounters [08:07:47]wFMCommunicate request_size=4 [08:07:47]MH_SAM_APDU [08:07:47]CAPDU: 80 13 00 00 [08:07:47]Write to MH i2c: E2 08 00 A2 67 80 13 00 00 00 00 00 00 85 [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:47]Read from MH i2c: E2 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: E2 62 00 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: E2 62 00 A2 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 18 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [08:07:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 18 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:47]wFMCommunicate OK [08:07:47]SAM_PROTO_GetFieldsCounters done [08:07:47]requested_item shift.num is exist - process it [08:07:47]requested_item shift.opened is exist - process it [08:07:47]req_shift_opened [08:07:47]FM_GetShiftState [08:07:47]SAM_PROTO_GetShiftState [08:07:47]wFMCommunicate request_size=4 [08:07:47]MH_SAM_APDU [08:07:47]CAPDU: 80 13 01 00 [08:07:47]Write to MH i2c: E2 08 00 A3 67 80 13 01 00 00 00 00 00 87 [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: E2 [08:07:47]MH_I2C_Read... [08:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:47]Read from MH i2c: E2 0E 00 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: E2 0E 00 A3 67 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A5 [08:07:47]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:07:47]wFMCommunicate OK [08:07:47]SAM_PROTO_GetShiftState done [08:07:47]FM_GetShiftState done [08:07:47]req_shift_opened done [08:07:47]requested_item shift.open_date is exist - process it [08:07:47]req_shift_open_date [08:07:47]req_shift_open_date done [08:07:47]produce_requested_data done [08:07:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112408,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:07:47]process_action_free close_receipt [08:07:47]json_value_free [08:07:47]json_value_free done [08:07:47]process_json_proto returns [08:07:47]Send response to host [08:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112408,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:07:47]free response buf [08:07:47]execute_script done [08:07:47]execute_script returns [08:07:47]free content buf [08:07:47]Sock 7.Close socket [08:07:47]Sock 7.Thread stoped [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:43]accept exits with 9 [08:09:43]New connection [08:09:43]New thread 3066813796 created [08:09:43]Thread 3066957156 joined [08:09:43]Waiting for new connection... [08:09:43] Sock 9.Parse request [08:09:43]Sock 9.Check first char [08:09:43]Sock 9.First char is OK [08:09:43]request: POST /json_proto HTTP/1.0 [08:09:43]Method: POST [08:09:43]URL: /json_proto [08:09:43]Method is POST - this is cgi request [08:09:43]url: /json_proto [08:09:43]query_string will be loaded in cgi processing [08:09:43]execute_cgi json_proto POST (null) [08:09:43]execute_cgi path=json_proto method=POST [08:09:43]POST find Content-Length [08:09:43]Host: 172.17.59.68:8080 [08:09:43]Content-Length: 682 [08:09:43]Content-Type: application/json [08:09:43] [08:09:43]POST finish read [08:09:43]Found Content-Length = 682 [08:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "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" ] } } [08:09:43]execute_script... [08:09: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)321087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "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" ] } } [08:09:43]POST & json_proto [08:09:43]process_json_proto [08:09:43]json parsed OK: [08:09:43]protocol is kg_v1.0 [08:09:43]action value=close_receipt [08:09:43]process_action close_receipt [08:09:43]cmd_close_receipt [08:09:43]MH_GetDate [08:09:43]Write to MH i2c: F0 00 00 A4 67 FA [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: F0 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: F0 09 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: F0 09 00 A4 67 00 79 D8 77 66 BC EC 60 65 9E [08:09:43]GetLastDocTimeStamp 1719130113 [08:09:43]current date 1719130233 [08:09:43]FM_GetShiftState [08:09:43]SAM_PROTO_GetShiftState [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 13 01 00 [08:09:43]Write to MH i2c: E2 08 00 A5 67 80 13 01 00 00 00 00 00 89 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0E 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0E 00 A5 67 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A7 [08:09:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:09:43]wFMCommunicate OK [08:09:43]SAM_PROTO_GetShiftState done [08:09:43]FM_GetShiftState done [08:09:43]opened in 1719106490 [08:09:43]opened+sec_in_day 1719192890 [08:09:43]quantity*price = 140037 [08:09:43]sum+1 = 140039 [08:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 10 23.06.2024 08:10 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112409 ФПД: 75970994600098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T081033&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112409&fm=75970994600098&tin=02508201610067®Number=0000000000092771&sum=140000 [08:09:44]StoreToDocumentArchive [08:09:44]shift 392 fd 112409 [08:09:44]save to /storage/0392/doc_00112409 [08:09:44]save last doc name /storage/0392/doc_00112409 to /storage/kkm_last_doc_name [08:09:44]save OK [08:09:44]Clear old archive folders... [08:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:44]tlvbuf is 01185DB0 [08:09:44]SAM_PROTO_ClearQueue [08:09:44]wFMCommunicate request_size=4 [08:09:44]MH_SAM_APDU [08:09:44]CAPDU: 80 09 00 00 [08:09:44]Write to MH i2c: E2 08 00 B2 67 80 09 00 00 00 00 00 00 8B [08:09:44]Write i2c OK [08:09:44]MH_I2C_Read... [08:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:44]Read from MH i2c: E2 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: E2 03 00 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: E2 03 00 B2 67 00 90 00 8D [08:09:44]RAPDU: 90 00 [08:09:44]wFMCommunicate OK [08:09:44]SAM_PROTO_ClearQueue done [08:09:44]KKMCreateOFDPacket [08:09:44]OFDProtocolAddRootSTLVToBuf [08:09:44]FM_MakeSignedData [08:09:44]FM_MakeSignedData [08:09:44]SAM_PROTO_SignData [08:09:44]wFMCommunicate request_size=4 [08:09:44]MH_SAM_APDU [08:09:44]CAPDU: 80 0D 01 02 [08:09:44]Write to MH i2c: E2 08 00 B3 67 80 0D 01 02 00 00 00 00 93 [08:09:44]Write i2c OK [08:09:44]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 B3 67 00 90 00 8E [08:09:45]RAPDU: 90 00 [08:09:45]wFMCommunicate OK [08:09:45]wFMCommunicate request_size=255 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 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 0A 00 00 00 F4 03 04 00 79 D8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B7 01 00 35 04 06 00 45 [08:09:45]Write to MH i2c: E2 02 01 B4 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 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 0A 00 00 00 F4 03 04 00 79 D8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B7 01 00 35 04 06 00 45 00 00 90 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 B4 67 00 90 00 8F [08:09:45]RAPDU: 90 00 [08:09:45]wFMCommunicate OK [08:09:45]wFMCommunicate request_size=10 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 0D 02 02 05 18 60 25 78 A2 [08:09:45]Write to MH i2c: E2 0D 00 B5 67 80 0D 02 02 05 00 18 60 25 78 A2 00 00 57 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 B5 67 00 90 00 90 [08:09:45]RAPDU: 90 00 [08:09:45]wFMCommunicate OK [08:09:45]wFMCommunicate request_size=4 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 0D 03 02 [08:09:45]Write to MH i2c: E2 08 00 B6 67 80 0D 03 02 00 00 00 00 98 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 0B 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 0B 00 B6 67 00 55 43 0B 0D A4 B7 7C 78 90 00 98 [08:09:45]RAPDU: 55 43 0B 0D A4 B7 7C 78 90 00 [08:09:45]wFMCommunicate OK [08:09:45]SAM_PROTO_SignData done [08:09:45]FM_MakeSignedData done [08:09:45]CreateOFDProtocolMessage [08:09:45]wFMCommunicate request_size=4 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 11 00 00 [08:09:45]Write to MH i2c: E2 08 00 B7 67 80 11 00 00 00 00 00 00 98 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 17 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 17 00 B7 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [08:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:09:45]wFMCommunicate OK [08:09:45]CreateOFDProtocolMessage done [08:09:45]OFDSenderStorePacket 112409 [08:09:45]StoreOFDPacket docnum=112409 [08:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 96 FB 07 01 F9 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 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 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 0A 00 00 00 F4 03 04 00 79 D8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B7 01 00 35 04 06 00 45 18 60 25 78 A2 55 43 0B 0D A4 B7 7C 78 [08:09:45]CheckFolder [08:09:45]dirname=/storage/ofd_packets [08:09:45]CheckFolder done [08:09:45]ProducePacketName [08:09:45]name=ofd_packets/00112409 [08:09:45]NVStorageSaveData ofd_packets/00112409 [08:09:45]File name is /storage/ofd_packets/00112409 [08:09:45]Write 301 bytes [08:09:45]NVStorageSaveData done [08:09:45]OFDSenderStorePacket done [08:09:45]KKMCreateOFDPacket done [08:09:45]NVStorageSaveData kkm_last_timestamp [08:09:45]File name is /storage/kkm_last_timestamp [08:09:45]Write 4 bytes [08:09:45]NVStorageSaveData done [08:09:45]ExternCall_PrintAddStr [08:09:45]wPrintStart [08:09:45]Write to MH i2c: 01 00 00 B8 67 1F [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: 01 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: 01 07 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: 01 07 00 B8 67 00 00 00 00 00 FF 0F 34 [08:09:45]RasterBufferAndPrint [08:09:45]line Счет N : (1)321087 [08:09:45]line ИНН: 02508201610067 [08:09:45]line Контрольно-Кассовый Чек [08:09:45]line ПРОДАЖА [08:09:45]line ТРК (МРК, ГНК) : 11 [08:09:45]line Товар: 2710124130 [08:09:45]line Аи-92-К-5 [08:09:45]line 21.090 * 66.40 [08:09:45]line = 1400.38 [08:09:45]line НДС 12% НСП 1% [08:09:45]line > о реализуемом товаре [08:09:45]line ОКРУГЛЕНИЕ: -0.38 [08:09:45]line ИТОГО: 1400.00 [08:09:45]line Внесено: 1400.00 [08:09:45]line СДАЧА: 0.00 [08:09:45]line НСП 1% : 12.39 [08:09:45]line НДС 12% : 148.71 [08:09:45]line Наличными: 1400.00 [08:09:45]line Безнал.: 0.00 [08:09:45]line Место: АЗС № 65 "Партнер Нефть" [08:09:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:09:45]line СНО: Общий режим [08:09:45]line Чек 10 23.06.2024 08:10 [08:09:45]line Смена: 392 ФФД: 1.0 [08:09:45]line ЗНМ: 0300000198 [08:09:45]line РНМ: 0000000000092771 [08:09:45]line Версия ККМ: 001 [08:09:45]line ФМ: 0000000000875083 [08:09:45]line ФД: 112409 [08:09:45]line ФПД: 75970994600098 [08:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T081033&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112409&fm=75970994600098&tin=02508201610067®Number=0000000000092771&sum=140000 [08:09:45]OFD Sender: Processing packet 112409 [packets to send 38, broken 37] [08:09:45]ProducePacketName [08:09:45]name=ofd_packets/00112409 [08:09:45]OFD Sender: To server: pG, [08:09:45]CommunicateWithHost lk.salyk.kg:30040 [08:09:45]ConnectInit lk.salyk.kg [08:09:45]written 0, free lines is 4095 [08:09:45]Connected sock=10 [08:09:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 96 FB 07 01 F9 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 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 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 0A 00 00 00 F4 03 04 00 79 D8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B7 01 00 35 04 06 00 45 18 60 25 78 A2 55 43 0B 0D A4 B7 7C 78 [08:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 BB 47 00 C8 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 38 37 35 30 38 33 10 04 04 00 19 B7 01 00 F4 03 04 00 6C 6F 77 66 B6 04 01 00 00 BD CC 61 6F C7 37 66 77 [08:09:46]CommunicateWithHost err = 0 [08:09:46]CheckOFDResponse [08:09:46]1017 (14) - 77093643461234 [08:09:46]1041 (16) - 0000000000875083 [08:09:46]1040 (4) - 112409 [08:09:46]1012 (4) - 23.06.2024 00:42 [08:09:46]1206 (1) - 0 [08:09:46]OFD Sender: Remove packet 112409 [08:09:46]ProducePacketName [08:09:46]name=ofd_packets/00112409 [08:09:46]NVStorageDeleteData [08:09:46]Write to MH i2c: 01 00 00 E3 67 4A [08:09:46]Write i2c OK [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: 01 [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: 01 07 00 [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: 01 07 00 E3 67 00 00 00 00 00 DE 0C 3B [08:09:46]RasterBufferAndPrint [08:09:46]line [08:09:46]line [08:09:46]line [08:09:46]line [08:09:46]line [08:09:46]written 0, free lines is 3300 [08:09:46]MH_Cut [08:09:46]Write to MH i2c: D1 01 00 EA 67 01 23 [08:09:46]Write i2c OK [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: D1 [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: D1 01 00 [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: D1 01 00 EA 67 00 22 [08:09:46]Write to MH i2c: 01 00 00 EB 67 52 [08:09:46]Write i2c OK [08:09:46]MH_I2C_Read... [08:09:46]OFD Sender: No OFD packet to send [08:09:47]*** Cut start [08:09:47]*** Partial cut [08:09:47]*** CUTSNS_PIN = 1 [08:09:47]*** CUTSNS_PIN = 0 [08:09:47]*** Brake cut motor [08:09:47]Read from MH i2c: 01 [08:09:47]MH_I2C_Read... [08:09:47]*** Stop cut motor [08:09:47]*** Cut end [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 EB 67 00 00 00 00 00 FF 0F 67 [08:09:47]process_action close_receipt done [08:09:47]requested_data is exist [08:09:47]produce_requested_data [08:09:47]requested_item fm.sn is exist - process it [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 EC 67 80 11 00 00 00 00 00 00 CD [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 EC 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [08:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:09:47]wFMCommunicate OK [08:09:47]requested_item fd.num is exist - process it [08:09:47]SAM_PROTO_GetFieldsCounters [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 13 00 00 [08:09:47]Write to MH i2c: E2 08 00 ED 67 80 13 00 00 00 00 00 00 D0 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 62 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 62 00 ED 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 19 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [08:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 19 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:47]wFMCommunicate OK [08:09:47]SAM_PROTO_GetFieldsCounters done [08:09:47]requested_item shift.num is exist - process it [08:09:47]requested_item shift.opened is exist - process it [08:09:47]req_shift_opened [08:09:47]FM_GetShiftState [08:09:47]SAM_PROTO_GetShiftState [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 13 01 00 [08:09:47]Write to MH i2c: E2 08 00 EE 67 80 13 01 00 00 00 00 00 D2 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 0E 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 0E 00 EE 67 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F0 [08:09:47]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:09:47]wFMCommunicate OK [08:09:47]SAM_PROTO_GetShiftState done [08:09:47]FM_GetShiftState done [08:09:47]req_shift_opened done [08:09:47]requested_item shift.open_date is exist - process it [08:09:47]req_shift_open_date [08:09:47]req_shift_open_date done [08:09:47]produce_requested_data done [08:09:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112409,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:09:47]process_action_free close_receipt [08:09:47]json_value_free [08:09:47]json_value_free done [08:09:47]process_json_proto returns [08:09:47]Send response to host [08:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112409,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:09:47]free response buf [08:09:47]execute_script done [08:09:47]execute_script returns [08:09:47]free content buf [08:09:47]Sock 9.Close socket [08:09:47]Sock 9.Thread stoped [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:42]accept exits with 7 [08:18:42]New connection [08:18:42]New thread 3066957156 created [08:18:42]Thread 3066813796 joined [08:18:42]Waiting for new connection... [08:18:42] Sock 7.Parse request [08:18:42]Sock 7.Check first char [08:18:42]Sock 7.First char is OK [08:18:42]request: POST /json_proto HTTP/1.0 [08:18:42]Method: POST [08:18:42]URL: /json_proto [08:18:42]Method is POST - this is cgi request [08:18:42]url: /json_proto [08:18:42]query_string will be loaded in cgi processing [08:18:42]execute_cgi json_proto POST (null) [08:18:42]execute_cgi path=json_proto method=POST [08:18:42]POST find Content-Length [08:18:42]Host: 172.17.59.68:8080 [08:18:42]Content-Length: 677 [08:18:42]Content-Type: application/json [08:18:42] [08:18:42]POST finish read [08:18:42]Found Content-Length = 677 [08:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.920, "sum" : 260.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:42]execute_script... [08:18: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)321088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.920, "sum" : 260.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:42]POST & json_proto [08:18:42]process_json_proto [08:18:42]json parsed OK: [08:18:42]protocol is kg_v1.0 [08:18:42]action value=close_receipt [08:18:42]process_action close_receipt [08:18:42]cmd_close_receipt [08:18:42]MH_GetDate [08:18:42]Write to MH i2c: F0 00 00 EF 67 45 [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: F0 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: F0 09 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: F0 09 00 EF 67 00 95 DA 77 66 BC EC 60 65 07 [08:18:42]GetLastDocTimeStamp 1719130233 [08:18:42]current date 1719130773 [08:18:42]FM_GetShiftState [08:18:42]SAM_PROTO_GetShiftState [08:18:42]wFMCommunicate request_size=4 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 13 01 00 [08:18:42]Write to MH i2c: E2 08 00 F0 67 80 13 01 00 00 00 00 00 D4 [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:43]Read from MH i2c: E2 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 0E 00 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 0E 00 F0 67 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F2 [08:18:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:18:43]wFMCommunicate OK [08:18:43]SAM_PROTO_GetShiftState done [08:18:43]FM_GetShiftState done [08:18:43]opened in 1719106490 [08:18:43]opened+sec_in_day 1719192890 [08:18:43]quantity*price = 26028 [08:18:43]sum+1 = 26030 [08:18:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 11 23.06.2024 08:19 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112410 ФПД: 197282769545567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T081933&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112410&fm=197282769545567&tin=02508201610067®Number=0000000000092771&sum=26000 [08:18:44]StoreToDocumentArchive [08:18:44]shift 392 fd 112410 [08:18:44]save to /storage/0392/doc_00112410 [08:18:44]save last doc name /storage/0392/doc_00112410 to /storage/kkm_last_doc_name [08:18:44]save OK [08:18:44]Clear old archive folders... [08:18:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:44]tlvbuf is 012348E0 [08:18:44]SAM_PROTO_ClearQueue [08:18:44]wFMCommunicate request_size=4 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 09 00 00 [08:18:44]Write to MH i2c: E2 08 00 FD 67 80 09 00 00 00 00 00 00 D6 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 FD 67 00 90 00 D8 [08:18:44]RAPDU: 90 00 [08:18:44]wFMCommunicate OK [08:18:44]SAM_PROTO_ClearQueue done [08:18:44]KKMCreateOFDPacket [08:18:44]OFDProtocolAddRootSTLVToBuf [08:18:44]FM_MakeSignedData [08:18:44]FM_MakeSignedData [08:18:44]SAM_PROTO_SignData [08:18:44]wFMCommunicate request_size=4 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 0D 01 02 [08:18:44]Write to MH i2c: E2 08 00 FE 67 80 0D 01 02 00 00 00 00 DE [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 FE 67 00 90 00 D9 [08:18:44]RAPDU: 90 00 [08:18:44]wFMCommunicate OK [08:18:44]wFMCommunicate request_size=255 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 95 DA 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B7 01 00 35 04 06 00 B3 [08:18:44]Write to MH i2c: E2 02 01 FF 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 95 DA 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B7 01 00 35 04 06 00 B3 00 00 6D [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 FF 67 00 90 00 DA [08:18:44]RAPDU: 90 00 [08:18:44]wFMCommunicate OK [08:18:44]wFMCommunicate request_size=10 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 0D 02 02 05 6D 79 66 29 5F [08:18:44]Write to MH i2c: E2 0D 00 00 68 80 0D 02 02 05 00 6D 79 66 29 5F 00 00 C0 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 00 68 00 90 00 DC [08:18:44]RAPDU: 90 00 [08:18:44]wFMCommunicate OK [08:18:44]wFMCommunicate request_size=4 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 0D 03 02 [08:18:44]Write to MH i2c: E2 08 00 01 68 80 0D 03 02 00 00 00 00 E4 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 0B 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 0B 00 01 68 00 D7 45 63 0B 1C 1D FA DA 90 00 7C [08:18:44]RAPDU: D7 45 63 0B 1C 1D FA DA 90 00 [08:18:44]wFMCommunicate OK [08:18:44]SAM_PROTO_SignData done [08:18:44]FM_MakeSignedData done [08:18:44]CreateOFDProtocolMessage [08:18:44]wFMCommunicate request_size=4 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 11 00 00 [08:18:44]Write to MH i2c: E2 08 00 02 68 80 11 00 00 00 00 00 00 E4 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 17 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 17 00 02 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 36 [08:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:18:44]wFMCommunicate OK [08:18:44]CreateOFDProtocolMessage done [08:18:44]OFDSenderStorePacket 112410 [08:18:44]StoreOFDPacket docnum=112410 [08:18:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 1E 07 01 06 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 95 DA 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B7 01 00 35 04 06 00 B3 6D 79 66 29 5F D7 45 63 0B 1C 1D FA DA [08:18:44]CheckFolder [08:18:44]dirname=/storage/ofd_packets [08:18:44]CheckFolder done [08:18:44]ProducePacketName [08:18:44]name=ofd_packets/00112410 [08:18:44]NVStorageSaveData ofd_packets/00112410 [08:18:44]File name is /storage/ofd_packets/00112410 [08:18:44]Write 301 bytes [08:18:44]NVStorageSaveData done [08:18:44]OFDSenderStorePacket done [08:18:44]KKMCreateOFDPacket done [08:18:44]NVStorageSaveData kkm_last_timestamp [08:18:44]File name is /storage/kkm_last_timestamp [08:18:44]Write 4 bytes [08:18:44]NVStorageSaveData done [08:18:44]ExternCall_PrintAddStr [08:18:44]wPrintStart [08:18:44]Write to MH i2c: 01 00 00 03 68 6B [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 07 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 07 00 03 68 00 00 00 00 00 FF 0F 80 [08:18:44]RasterBufferAndPrint [08:18:44]line Счет N : (1)321088 [08:18:44]line ИНН: 02508201610067 [08:18:44]line Контрольно-Кассовый Чек [08:18:44]line ПРОДАЖА [08:18:44]line ТРК (МРК, ГНК) : 11 [08:18:44]line Товар: 2710124130 [08:18:44]line Аи-92-К-5 [08:18:44]line 3.920 * 66.40 [08:18:44]line = 260.29 [08:18:44]line НДС 12% НСП 1% [08:18:44]line > о реализуемом товаре [08:18:44]line ОКРУГЛЕНИЕ: -0.29 [08:18:44]line ИТОГО: 260.00 [08:18:44]line Внесено: 260.00 [08:18:44]line СДАЧА: 0.00 [08:18:44]line НСП 1% : 2.30 [08:18:44]line НДС 12% : 27.64 [08:18:44]line Наличными: 260.00 [08:18:44]line Безнал.: 0.00 [08:18:44]line Место: АЗС № 65 "Партнер Нефть" [08:18:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:18:44]line СНО: Общий режим [08:18:44]line Чек 11 23.06.2024 08:19 [08:18:44]line Смена: 392 ФФД: 1.0 [08:18:44]line ЗНМ: 0300000198 [08:18:44]line РНМ: 0000000000092771 [08:18:44]line Версия ККМ: 001 [08:18:44]line ФМ: 0000000000875083 [08:18:44]line ФД: 112410 [08:18:44]line ФПД: 197282769545567 [08:18:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T081933&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112410&fm=197282769545567&tin=02508201610067®Number=0000000000092771&sum=26000 [08:18:45]OFD Sender: Processing packet 112410 [packets to send 38, broken 37] [08:18:45]ProducePacketName [08:18:45]name=ofd_packets/00112410 [08:18:45]OFD Sender: To server: pG, [08:18:45]CommunicateWithHost lk.salyk.kg:30040 [08:18:45]ConnectInit lk.salyk.kg [08:18:45]written 0, free lines is 4095 [08:18:45]Connected sock=10 [08:18:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 1E 07 01 06 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 95 DA 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B7 01 00 35 04 06 00 B3 6D 79 66 29 5F D7 45 63 0B 1C 1D FA DA [08:18:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1E 51 47 00 C4 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B7 01 00 F4 03 04 00 88 71 77 66 B6 04 01 00 00 5E 19 4A AA 77 66 32 42 [08:18:45]CommunicateWithHost err = 0 [08:18:45]CheckOFDResponse [08:18:45]1017 (14) - 77093643461234 [08:18:45]1041 (16) - 0000000000875083 [08:18:45]1040 (4) - 112410 [08:18:45]1012 (4) - 23.06.2024 00:51 [08:18:45]1206 (1) - 0 [08:18:45]OFD Sender: Remove packet 112410 [08:18:45]ProducePacketName [08:18:45]name=ofd_packets/00112410 [08:18:45]NVStorageDeleteData [08:18:45]Write to MH i2c: 01 00 00 2E 68 96 [08:18:45]Write i2c OK [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: 01 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: 01 07 00 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: 01 07 00 2E 68 00 00 00 00 00 CD 0C 76 [08:18:45]RasterBufferAndPrint [08:18:45]line [08:18:45]line [08:18:45]line [08:18:45]line [08:18:45]line [08:18:45]written 0, free lines is 3288 [08:18:45]MH_Cut [08:18:45]Write to MH i2c: D1 01 00 35 68 01 6F [08:18:45]Write i2c OK [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: D1 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: D1 01 00 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: D1 01 00 35 68 00 6E [08:18:45]Write to MH i2c: 01 00 00 36 68 9E [08:18:45]Write i2c OK [08:18:45]MH_I2C_Read... [08:18:45]OFD Sender: No OFD packet to send [08:18:46]*** Cut start [08:18:46]*** Partial cut [08:18:46]*** CUTSNS_PIN = 1 [08:18:46]*** CUTSNS_PIN = 0 [08:18:46]*** Brake cut motor [08:18:46]Read from MH i2c: 01 [08:18:46]MH_I2C_Read... [08:18:46]*** Stop cut motor [08:18:46]*** Cut end [08:18:46]Read from MH i2c: 01 07 00 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: 01 07 00 36 68 00 00 00 00 00 FF 0F B3 [08:18:46]process_action close_receipt done [08:18:46]requested_data is exist [08:18:46]produce_requested_data [08:18:46]requested_item fm.sn is exist - process it [08:18:46]wFMCommunicate request_size=4 [08:18:46]MH_SAM_APDU [08:18:46]CAPDU: 80 11 00 00 [08:18:46]Write to MH i2c: E2 08 00 37 68 80 11 00 00 00 00 00 00 19 [08:18:46]Write i2c OK [08:18:46]MH_I2C_Read... [08:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:46]Read from MH i2c: E2 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: E2 17 00 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: E2 17 00 37 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6B [08:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:18:46]wFMCommunicate OK [08:18:46]requested_item fd.num is exist - process it [08:18:46]SAM_PROTO_GetFieldsCounters [08:18:46]wFMCommunicate request_size=4 [08:18:46]MH_SAM_APDU [08:18:46]CAPDU: 80 13 00 00 [08:18:46]Write to MH i2c: E2 08 00 38 68 80 13 00 00 00 00 00 00 1C [08:18:46]Write i2c OK [08:18:46]MH_I2C_Read... [08:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:47]Read from MH i2c: E2 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 62 00 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 62 00 38 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [08:18:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:47]wFMCommunicate OK [08:18:47]SAM_PROTO_GetFieldsCounters done [08:18:47]requested_item shift.num is exist - process it [08:18:47]requested_item shift.opened is exist - process it [08:18:47]req_shift_opened [08:18:47]FM_GetShiftState [08:18:47]SAM_PROTO_GetShiftState [08:18:47]wFMCommunicate request_size=4 [08:18:47]MH_SAM_APDU [08:18:47]CAPDU: 80 13 01 00 [08:18:47]Write to MH i2c: E2 08 00 39 68 80 13 01 00 00 00 00 00 1E [08:18:47]Write i2c OK [08:18:47]MH_I2C_Read... [08:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:47]Read from MH i2c: E2 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 0E 00 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 0E 00 39 68 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3C [08:18:47]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:18:47]wFMCommunicate OK [08:18:47]SAM_PROTO_GetShiftState done [08:18:47]FM_GetShiftState done [08:18:47]req_shift_opened done [08:18:47]requested_item shift.open_date is exist - process it [08:18:47]req_shift_open_date [08:18:47]req_shift_open_date done [08:18:47]produce_requested_data done [08:18:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112410,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:18:47]process_action_free close_receipt [08:18:47]json_value_free [08:18:47]json_value_free done [08:18:47]process_json_proto returns [08:18:47]Send response to host [08:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112410,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:18:47]free response buf [08:18:47]execute_script done [08:18:47]execute_script returns [08:18:47]free content buf [08:18:47]Sock 7.Close socket [08:18:47]Sock 7.Thread stoped [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:22]accept exits with 9 [08:21:22]New connection [08:21:22]New thread 3066813796 created [08:21:22]Thread 3066957156 joined [08:21:22]Waiting for new connection... [08:21:22] Sock 9.Parse request [08:21:22]Sock 9.Check first char [08:21:22]Sock 9.First char is OK [08:21:22]request: POST /json_proto HTTP/1.0 [08:21:22]Method: POST [08:21:22]URL: /json_proto [08:21:22]Method is POST - this is cgi request [08:21:22]url: /json_proto [08:21:22]query_string will be loaded in cgi processing [08:21:22]execute_cgi json_proto POST (null) [08:21:22]execute_cgi path=json_proto method=POST [08:21:22]POST find Content-Length [08:21:22]Host: 172.17.59.68:8080 [08:21:22]Content-Length: 677 [08:21:22]Content-Type: application/json [08:21:22] [08:21:22]POST finish read [08:21:22]Found Content-Length = 677 [08:21:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:21:22]execute_script... [08:21: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)321089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:21:22]POST & json_proto [08:21:22]process_json_proto [08:21:22]json parsed OK: [08:21:22]protocol is kg_v1.0 [08:21:22]action value=close_receipt [08:21:22]process_action close_receipt [08:21:22]cmd_close_receipt [08:21:22]MH_GetDate [08:21:22]Write to MH i2c: F0 00 00 3A 68 91 [08:21:22]Write i2c OK [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: F0 [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: F0 09 00 [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: F0 09 00 3A 68 00 35 DB 77 66 BC EC 60 65 F4 [08:21:22]GetLastDocTimeStamp 1719130773 [08:21:22]current date 1719130933 [08:21:22]FM_GetShiftState [08:21:22]SAM_PROTO_GetShiftState [08:21:22]wFMCommunicate request_size=4 [08:21:22]MH_SAM_APDU [08:21:22]CAPDU: 80 13 01 00 [08:21:22]Write to MH i2c: E2 08 00 3B 68 80 13 01 00 00 00 00 00 20 [08:21:22]Write i2c OK [08:21:22]MH_I2C_Read... [08:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:22]Read from MH i2c: E2 [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: E2 0E 00 [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: E2 0E 00 3B 68 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3E [08:21:22]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:21:22]wFMCommunicate OK [08:21:22]SAM_PROTO_GetShiftState done [08:21:22]FM_GetShiftState done [08:21:22]opened in 1719106490 [08:21:22]opened+sec_in_day 1719192890 [08:21:22]quantity*price = 50065 [08:21:22]sum+1 = 50067 [08:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 12 23.06.2024 08:22 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112411 ФПД: 171675667404886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T082213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112411&fm=171675667404886&tin=02508201610067®Number=0000000000092771&sum=50000 [08:21:23]StoreToDocumentArchive [08:21:23]shift 392 fd 112411 [08:21:23]save to /storage/0392/doc_00112411 [08:21:23]save last doc name /storage/0392/doc_00112411 to /storage/kkm_last_doc_name [08:21:23]save OK [08:21:23]Clear old archive folders... [08:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:23]tlvbuf is 012C23E0 [08:21:23]SAM_PROTO_ClearQueue [08:21:23]wFMCommunicate request_size=4 [08:21:23]MH_SAM_APDU [08:21:23]CAPDU: 80 09 00 00 [08:21:23]Write to MH i2c: E2 08 00 48 68 80 09 00 00 00 00 00 00 22 [08:21:23]Write i2c OK [08:21:23]MH_I2C_Read... [08:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:23]Read from MH i2c: E2 [08:21:23]MH_I2C_Read... [08:21:23]Read from MH i2c: E2 03 00 [08:21:23]MH_I2C_Read... [08:21:23]Read from MH i2c: E2 03 00 48 68 00 90 00 24 [08:21:23]RAPDU: 90 00 [08:21:23]wFMCommunicate OK [08:21:23]SAM_PROTO_ClearQueue done [08:21:23]KKMCreateOFDPacket [08:21:23]OFDProtocolAddRootSTLVToBuf [08:21:23]FM_MakeSignedData [08:21:23]FM_MakeSignedData [08:21:23]SAM_PROTO_SignData [08:21:23]wFMCommunicate request_size=4 [08:21:23]MH_SAM_APDU [08:21:23]CAPDU: 80 0D 01 02 [08:21:23]Write to MH i2c: E2 08 00 49 68 80 0D 01 02 00 00 00 00 2A [08:21:23]Write i2c OK [08:21:23]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 49 68 00 90 00 25 [08:21:24]RAPDU: 90 00 [08:21:24]wFMCommunicate OK [08:21:24]wFMCommunicate request_size=255 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 35 DB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B7 01 00 35 04 06 00 9C [08:21:24]Write to MH i2c: E2 02 01 4A 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 35 DB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B7 01 00 35 04 06 00 9C 00 00 CF [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 4A 68 00 90 00 26 [08:21:24]RAPDU: 90 00 [08:21:24]wFMCommunicate OK [08:21:24]wFMCommunicate request_size=10 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 0D 02 02 05 23 5B 2C 18 56 [08:21:24]Write to MH i2c: E2 0D 00 4B 68 80 0D 02 02 05 00 23 5B 2C 18 56 00 00 4F [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 4B 68 00 90 00 27 [08:21:24]RAPDU: 90 00 [08:21:24]wFMCommunicate OK [08:21:24]wFMCommunicate request_size=4 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 0D 03 02 [08:21:24]Write to MH i2c: E2 08 00 4C 68 80 0D 03 02 00 00 00 00 2F [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 0B 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 0B 00 4C 68 00 6F CD D0 4E FC 50 B8 B9 90 00 47 [08:21:24]RAPDU: 6F CD D0 4E FC 50 B8 B9 90 00 [08:21:24]wFMCommunicate OK [08:21:24]SAM_PROTO_SignData done [08:21:24]FM_MakeSignedData done [08:21:24]CreateOFDProtocolMessage [08:21:24]wFMCommunicate request_size=4 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 11 00 00 [08:21:24]Write to MH i2c: E2 08 00 4D 68 80 11 00 00 00 00 00 00 2F [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 17 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 17 00 4D 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [08:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:21:24]wFMCommunicate OK [08:21:24]CreateOFDProtocolMessage done [08:21:24]OFDSenderStorePacket 112411 [08:21:24]StoreOFDPacket docnum=112411 [08:21:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BF AC 07 01 F6 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 35 DB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B7 01 00 35 04 06 00 9C 23 5B 2C 18 56 6F CD D0 4E FC 50 B8 B9 [08:21:24]CheckFolder [08:21:24]dirname=/storage/ofd_packets [08:21:24]CheckFolder done [08:21:24]ProducePacketName [08:21:24]name=ofd_packets/00112411 [08:21:24]NVStorageSaveData ofd_packets/00112411 [08:21:24]File name is /storage/ofd_packets/00112411 [08:21:24]Write 301 bytes [08:21:24]NVStorageSaveData done [08:21:24]OFDSenderStorePacket done [08:21:24]KKMCreateOFDPacket done [08:21:24]NVStorageSaveData kkm_last_timestamp [08:21:24]File name is /storage/kkm_last_timestamp [08:21:24]Write 4 bytes [08:21:24]NVStorageSaveData done [08:21:24]ExternCall_PrintAddStr [08:21:24]wPrintStart [08:21:24]Write to MH i2c: 01 00 00 4E 68 B6 [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 07 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 07 00 4E 68 00 00 00 00 00 FF 0F CB [08:21:24]RasterBufferAndPrint [08:21:24]line Счет N : (1)321089 [08:21:24]line ИНН: 02508201610067 [08:21:24]line Контрольно-Кассовый Чек [08:21:24]line ПРОДАЖА [08:21:24]line ТРК (МРК, ГНК) : 11 [08:21:24]line Товар: 2710124130 [08:21:24]line Аи-92-К-5 [08:21:24]line 7.540 * 66.40 [08:21:24]line = 500.66 [08:21:24]line НДС 12% НСП 1% [08:21:24]line > о реализуемом товаре [08:21:24]line ОКРУГЛЕНИЕ: -0.66 [08:21:24]line ИТОГО: 500.00 [08:21:24]line Внесено: 500.00 [08:21:24]line СДАЧА: 0.00 [08:21:24]line НСП 1% : 4.43 [08:21:24]line НДС 12% : 53.17 [08:21:24]line Наличными: 500.00 [08:21:24]line Безнал.: 0.00 [08:21:24]line Место: АЗС № 65 "Партнер Нефть" [08:21:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:21:24]line СНО: Общий режим [08:21:24]line Чек 12 23.06.2024 08:22 [08:21:24]line Смена: 392 ФФД: 1.0 [08:21:24]line ЗНМ: 0300000198 [08:21:24]line РНМ: 0000000000092771 [08:21:24]line Версия ККМ: 001 [08:21:24]line ФМ: 0000000000875083 [08:21:24]line ФД: 112411 [08:21:24]line ФПД: 171675667404886 [08:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T082213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112411&fm=171675667404886&tin=02508201610067®Number=0000000000092771&sum=50000 [08:21:24]written 0, free lines is 4095 [08:21:24]OFD Sender: Processing packet 112411 [packets to send 38, broken 37] [08:21:24]ProducePacketName [08:21:24]name=ofd_packets/00112411 [08:21:24]OFD Sender: To server: pG, [08:21:24]CommunicateWithHost lk.salyk.kg:30040 [08:21:24]ConnectInit lk.salyk.kg [08:21:24]Connected sock=11 [08:21:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BF AC 07 01 F6 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 35 DB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B7 01 00 35 04 06 00 9C 23 5B 2C 18 56 6F CD D0 4E FC 50 B8 B9 [08:21:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EA 95 47 00 91 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B7 01 00 F4 03 04 00 27 72 77 66 B6 04 01 00 00 DE A2 FF EF C6 97 15 AA [08:21:24]CommunicateWithHost err = 0 [08:21:24]CheckOFDResponse [08:21:24]1017 (14) - 77093643461234 [08:21:24]1041 (16) - 0000000000875083 [08:21:24]1040 (4) - 112411 [08:21:24]1012 (4) - 23.06.2024 00:53 [08:21:24]1206 (1) - 0 [08:21:24]OFD Sender: Remove packet 112411 [08:21:24]ProducePacketName [08:21:24]name=ofd_packets/00112411 [08:21:24]NVStorageDeleteData [08:21:24]Write to MH i2c: 01 00 00 79 68 E1 [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 07 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 07 00 79 68 00 00 00 00 00 CF 0C C3 [08:21:24]RasterBufferAndPrint [08:21:24]line [08:21:24]line [08:21:24]line [08:21:24]line [08:21:24]line [08:21:24]written 0, free lines is 3287 [08:21:24]MH_Cut [08:21:24]Write to MH i2c: D1 01 00 80 68 01 BA [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: D1 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: D1 01 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: D1 01 00 80 68 00 B9 [08:21:24]Write to MH i2c: 01 00 00 81 68 E9 [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:25]OFD Sender: No OFD packet to send [08:21:25]*** Cut start [08:21:25]*** Partial cut [08:21:25]*** CUTSNS_PIN = 1 [08:21:25]*** CUTSNS_PIN = 0 [08:21:25]*** Brake cut motor [08:21:26]Read from MH i2c: 01 [08:21:26]MH_I2C_Read... [08:21:26]*** Stop cut motor [08:21:26]*** Cut end [08:21:26]Read from MH i2c: 01 07 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: 01 07 00 81 68 00 00 00 00 00 FF 0F FE [08:21:26]process_action close_receipt done [08:21:26]requested_data is exist [08:21:26]produce_requested_data [08:21:26]requested_item fm.sn is exist - process it [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 11 00 00 [08:21:26]Write to MH i2c: E2 08 00 82 68 80 11 00 00 00 00 00 00 64 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 17 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 17 00 82 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B6 [08:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:21:26]wFMCommunicate OK [08:21:26]requested_item fd.num is exist - process it [08:21:26]SAM_PROTO_GetFieldsCounters [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 13 00 00 [08:21:26]Write to MH i2c: E2 08 00 83 68 80 13 00 00 00 00 00 00 67 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 62 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 62 00 83 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1B B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [08:21:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1B B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:26]wFMCommunicate OK [08:21:26]SAM_PROTO_GetFieldsCounters done [08:21:26]requested_item shift.num is exist - process it [08:21:26]requested_item shift.opened is exist - process it [08:21:26]req_shift_opened [08:21:26]FM_GetShiftState [08:21:26]SAM_PROTO_GetShiftState [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 13 01 00 [08:21:26]Write to MH i2c: E2 08 00 84 68 80 13 01 00 00 00 00 00 69 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 0E 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 0E 00 84 68 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 87 [08:21:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:21:26]wFMCommunicate OK [08:21:26]SAM_PROTO_GetShiftState done [08:21:26]FM_GetShiftState done [08:21:26]req_shift_opened done [08:21:26]requested_item shift.open_date is exist - process it [08:21:26]req_shift_open_date [08:21:26]req_shift_open_date done [08:21:26]produce_requested_data done [08:21:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112411,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:21:26]process_action_free close_receipt [08:21:26]json_value_free [08:21:26]json_value_free done [08:21:26]process_json_proto returns [08:21:26]Send response to host [08:21:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112411,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:21:26]free response buf [08:21:26]execute_script done [08:21:26]execute_script returns [08:21:26]free content buf [08:21:26]Sock 9.Close socket [08:21:26]Sock 9.Thread stoped [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:03]accept exits with 7 [08:23:03]New connection [08:23:03]New thread 3066957156 created [08:23:03]Thread 3066813796 joined [08:23:03]Waiting for new connection... [08:23:03] Sock 7.Parse request [08:23:03]Sock 7.Check first char [08:23:03]Sock 7.First char is OK [08:23:03]request: POST /json_proto HTTP/1.0 [08:23:03]Method: POST [08:23:03]URL: /json_proto [08:23:03]Method is POST - this is cgi request [08:23:03]url: /json_proto [08:23:03]query_string will be loaded in cgi processing [08:23:03]execute_cgi json_proto POST (null) [08:23:03]execute_cgi path=json_proto method=POST [08:23:03]POST find Content-Length [08:23:03]Host: 172.17.59.68:8080 [08:23:03]Content-Length: 677 [08:23:03]Content-Type: application/json [08:23:03] [08:23:03]POST finish read [08:23:03]Found Content-Length = 677 [08:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:23:03]execute_script... [08:23: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)321090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:23:03]POST & json_proto [08:23:03]process_json_proto [08:23:03]json parsed OK: [08:23:03]protocol is kg_v1.0 [08:23:03]action value=close_receipt [08:23:03]process_action close_receipt [08:23:03]cmd_close_receipt [08:23:03]MH_GetDate [08:23:03]Write to MH i2c: F0 00 00 85 68 DC [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: F0 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: F0 09 00 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: F0 09 00 85 68 00 99 DB 77 66 BC EC 60 65 A3 [08:23:03]GetLastDocTimeStamp 1719130933 [08:23:03]current date 1719131033 [08:23:03]FM_GetShiftState [08:23:03]SAM_PROTO_GetShiftState [08:23:03]wFMCommunicate request_size=4 [08:23:03]MH_SAM_APDU [08:23:03]CAPDU: 80 13 01 00 [08:23:03]Write to MH i2c: E2 08 00 86 68 80 13 01 00 00 00 00 00 6B [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:03]Read from MH i2c: E2 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: E2 0E 00 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: E2 0E 00 86 68 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 89 [08:23:03]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:23:03]wFMCommunicate OK [08:23:03]SAM_PROTO_GetShiftState done [08:23:03]FM_GetShiftState done [08:23:03]opened in 1719106490 [08:23:03]opened+sec_in_day 1719192890 [08:23:03]quantity*price = 50065 [08:23:03]sum+1 = 50067 [08:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 13 23.06.2024 08:23 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112412 ФПД: 54829186408988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T082354&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112412&fm=54829186408988&tin=02508201610067®Number=0000000000092771&sum=50000 [08:23:04]StoreToDocumentArchive [08:23:04]shift 392 fd 112412 [08:23:04]save to /storage/0392/doc_00112412 [08:23:04]save last doc name /storage/0392/doc_00112412 to /storage/kkm_last_doc_name [08:23:04]save OK [08:23:04]Clear old archive folders... [08:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:04]tlvbuf is 0122CE90 [08:23:04]SAM_PROTO_ClearQueue [08:23:04]wFMCommunicate request_size=4 [08:23:04]MH_SAM_APDU [08:23:04]CAPDU: 80 09 00 00 [08:23:04]Write to MH i2c: E2 08 00 93 68 80 09 00 00 00 00 00 00 6D [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:04]Read from MH i2c: E2 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 93 68 00 90 00 6F [08:23:04]RAPDU: 90 00 [08:23:04]wFMCommunicate OK [08:23:04]SAM_PROTO_ClearQueue done [08:23:04]KKMCreateOFDPacket [08:23:04]OFDProtocolAddRootSTLVToBuf [08:23:04]FM_MakeSignedData [08:23:04]FM_MakeSignedData [08:23:04]SAM_PROTO_SignData [08:23:04]wFMCommunicate request_size=4 [08:23:04]MH_SAM_APDU [08:23:04]CAPDU: 80 0D 01 02 [08:23:04]Write to MH i2c: E2 08 00 94 68 80 0D 01 02 00 00 00 00 75 [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:04]Read from MH i2c: E2 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 94 68 00 90 00 70 [08:23:04]RAPDU: 90 00 [08:23:04]wFMCommunicate OK [08:23:04]wFMCommunicate request_size=255 [08:23:04]MH_SAM_APDU [08:23:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 0D 00 00 00 F4 03 04 00 9A DB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B7 01 00 35 04 06 00 31 [08:23:04]Write to MH i2c: E2 02 01 95 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 0D 00 00 00 F4 03 04 00 9A DB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B7 01 00 35 04 06 00 31 00 00 16 [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 03 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 03 00 95 68 00 90 00 71 [08:23:05]RAPDU: 90 00 [08:23:05]wFMCommunicate OK [08:23:05]wFMCommunicate request_size=10 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 0D 02 02 05 DD EA 2D E2 1C [08:23:05]Write to MH i2c: E2 0D 00 96 68 80 0D 02 02 05 00 DD EA 2D E2 1C 00 00 74 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 03 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 03 00 96 68 00 90 00 72 [08:23:05]RAPDU: 90 00 [08:23:05]wFMCommunicate OK [08:23:05]wFMCommunicate request_size=4 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 0D 03 02 [08:23:05]Write to MH i2c: E2 08 00 97 68 80 0D 03 02 00 00 00 00 7A [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 0B 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 0B 00 97 68 00 98 EA 13 1C B2 47 3E 55 90 00 B8 [08:23:05]RAPDU: 98 EA 13 1C B2 47 3E 55 90 00 [08:23:05]wFMCommunicate OK [08:23:05]SAM_PROTO_SignData done [08:23:05]FM_MakeSignedData done [08:23:05]CreateOFDProtocolMessage [08:23:05]wFMCommunicate request_size=4 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 11 00 00 [08:23:05]Write to MH i2c: E2 08 00 98 68 80 11 00 00 00 00 00 00 7A [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 17 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 17 00 98 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [08:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:23:05]wFMCommunicate OK [08:23:05]CreateOFDProtocolMessage done [08:23:05]OFDSenderStorePacket 112412 [08:23:05]StoreOFDPacket docnum=112412 [08:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 21 07 01 23 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 0D 00 00 00 F4 03 04 00 9A DB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B7 01 00 35 04 06 00 31 DD EA 2D E2 1C 98 EA 13 1C B2 47 3E 55 [08:23:05]CheckFolder [08:23:05]dirname=/storage/ofd_packets [08:23:05]CheckFolder done [08:23:05]ProducePacketName [08:23:05]name=ofd_packets/00112412 [08:23:05]NVStorageSaveData ofd_packets/00112412 [08:23:05]File name is /storage/ofd_packets/00112412 [08:23:05]Write 301 bytes [08:23:05]NVStorageSaveData done [08:23:05]OFDSenderStorePacket done [08:23:05]KKMCreateOFDPacket done [08:23:05]NVStorageSaveData kkm_last_timestamp [08:23:05]File name is /storage/kkm_last_timestamp [08:23:05]Write 4 bytes [08:23:05]NVStorageSaveData done [08:23:05]ExternCall_PrintAddStr [08:23:05]wPrintStart [08:23:05]Write to MH i2c: 01 00 00 99 68 01 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 07 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 07 00 99 68 00 00 00 00 00 FF 0F 16 [08:23:05]RasterBufferAndPrint [08:23:05]line Счет N : (1)321090 [08:23:05]line ИНН: 02508201610067 [08:23:05]line Контрольно-Кассовый Чек [08:23:05]line ПРОДАЖА [08:23:05]line ТРК (МРК, ГНК) : 11 [08:23:05]line Товар: 2710124130 [08:23:05]line Аи-92-К-5 [08:23:05]line 7.540 * 66.40 [08:23:05]line = 500.66 [08:23:05]line НДС 12% НСП 1% [08:23:05]line > о реализуемом товаре [08:23:05]line ОКРУГЛЕНИЕ: -0.66 [08:23:05]line ИТОГО: 500.00 [08:23:05]line Внесено: 500.00 [08:23:05]line СДАЧА: 0.00 [08:23:05]line НСП 1% : 4.43 [08:23:05]line НДС 12% : 53.17 [08:23:05]line Наличными: 500.00 [08:23:05]line Безнал.: 0.00 [08:23:05]line Место: АЗС № 65 "Партнер Нефть" [08:23:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:23:05]line СНО: Общий режим [08:23:05]line Чек 13 23.06.2024 08:23 [08:23:05]line Смена: 392 ФФД: 1.0 [08:23:05]line ЗНМ: 0300000198 [08:23:05]line РНМ: 0000000000092771 [08:23:05]line Версия ККМ: 001 [08:23:05]line ФМ: 0000000000875083 [08:23:05]line ФД: 112412 [08:23:05]line ФПД: 54829186408988 [08:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T082354&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112412&fm=54829186408988&tin=02508201610067®Number=0000000000092771&sum=50000 [08:23:05]OFD Sender: Processing packet 112412 [packets to send 38, broken 37] [08:23:05]ProducePacketName [08:23:05]name=ofd_packets/00112412 [08:23:05]OFD Sender: To server: pG, [08:23:05]CommunicateWithHost lk.salyk.kg:30040 [08:23:05]ConnectInit lk.salyk.kg [08:23:05]written 0, free lines is 4095 [08:23:05]Connected sock=10 [08:23:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 21 07 01 23 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 0D 00 00 00 F4 03 04 00 9A DB 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B7 01 00 35 04 06 00 31 DD EA 2D E2 1C 98 EA 13 1C B2 47 3E 55 [08:23:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 63 C4 47 00 47 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B7 01 00 F4 03 04 00 8C 72 77 66 B6 04 01 00 00 4C 6C 5C F6 80 29 45 A9 [08:23:05]CommunicateWithHost err = 0 [08:23:05]CheckOFDResponse [08:23:05]1017 (14) - 77093643461234 [08:23:05]1041 (16) - 0000000000875083 [08:23:05]1040 (4) - 112412 [08:23:05]1012 (4) - 23.06.2024 00:55 [08:23:05]1206 (1) - 0 [08:23:05]OFD Sender: Remove packet 112412 [08:23:05]ProducePacketName [08:23:05]name=ofd_packets/00112412 [08:23:05]NVStorageDeleteData [08:23:06]Write to MH i2c: 01 00 00 C4 68 2C [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: 01 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: 01 07 00 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: 01 07 00 C4 68 00 00 00 00 00 D0 0C 0F [08:23:06]RasterBufferAndPrint [08:23:06]line [08:23:06]line [08:23:06]line [08:23:06]line [08:23:06]line [08:23:06]written 0, free lines is 3288 [08:23:06]MH_Cut [08:23:06]Write to MH i2c: D1 01 00 CB 68 01 05 [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: D1 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: D1 01 00 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: D1 01 00 CB 68 00 04 [08:23:06]Write to MH i2c: 01 00 00 CC 68 34 [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:06]OFD Sender: No OFD packet to send [08:23:06]*** Cut start [08:23:06]*** Partial cut [08:23:06]*** CUTSNS_PIN = 1 [08:23:06]*** CUTSNS_PIN = 0 [08:23:07]*** Brake cut motor [08:23:07]Read from MH i2c: 01 [08:23:07]MH_I2C_Read... [08:23:07]*** Stop cut motor [08:23:07]*** Cut end [08:23:07]Read from MH i2c: 01 07 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: 01 07 00 CC 68 00 00 00 00 00 FF 0F 49 [08:23:07]process_action close_receipt done [08:23:07]requested_data is exist [08:23:07]produce_requested_data [08:23:07]requested_item fm.sn is exist - process it [08:23:07]wFMCommunicate request_size=4 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 11 00 00 [08:23:07]Write to MH i2c: E2 08 00 CD 68 80 11 00 00 00 00 00 00 AF [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 17 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 17 00 CD 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [08:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:23:07]wFMCommunicate OK [08:23:07]requested_item fd.num is exist - process it [08:23:07]SAM_PROTO_GetFieldsCounters [08:23:07]wFMCommunicate request_size=4 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 13 00 00 [08:23:07]Write to MH i2c: E2 08 00 CE 68 80 13 00 00 00 00 00 00 B2 [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 62 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 62 00 CE 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1C B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [08:23:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1C B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:07]wFMCommunicate OK [08:23:07]SAM_PROTO_GetFieldsCounters done [08:23:07]requested_item shift.num is exist - process it [08:23:07]requested_item shift.opened is exist - process it [08:23:07]req_shift_opened [08:23:07]FM_GetShiftState [08:23:07]SAM_PROTO_GetShiftState [08:23:07]wFMCommunicate request_size=4 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 13 01 00 [08:23:07]Write to MH i2c: E2 08 00 CF 68 80 13 01 00 00 00 00 00 B4 [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 0E 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 0E 00 CF 68 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D2 [08:23:07]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:23:07]wFMCommunicate OK [08:23:07]SAM_PROTO_GetShiftState done [08:23:07]FM_GetShiftState done [08:23:07]req_shift_opened done [08:23:07]requested_item shift.open_date is exist - process it [08:23:07]req_shift_open_date [08:23:07]req_shift_open_date done [08:23:07]produce_requested_data done [08:23:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112412,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:23:07]process_action_free close_receipt [08:23:07]json_value_free [08:23:07]json_value_free done [08:23:07]process_json_proto returns [08:23:07]Send response to host [08:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112412,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:23:07]free response buf [08:23:07]execute_script done [08:23:07]execute_script returns [08:23:07]free content buf [08:23:07]Sock 7.Close socket [08:23:07]Sock 7.Thread stoped [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]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:56]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]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:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:45]accept exits with 9 [08:34:45]New connection [08:34:45]New thread 3066813796 created [08:34:45]Thread 3066957156 joined [08:34:45]Waiting for new connection... [08:34:45] Sock 9.Parse request [08:34:45]Sock 9.Check first char [08:34:45]Sock 9.First char is OK [08:34:45]request: POST /json_proto HTTP/1.0 [08:34:45]Method: POST [08:34:45]URL: /json_proto [08:34:45]Method is POST - this is cgi request [08:34:45]url: /json_proto [08:34:45]query_string will be loaded in cgi processing [08:34:45]execute_cgi json_proto POST (null) [08:34:45]execute_cgi path=json_proto method=POST [08:34:45]POST find Content-Length [08:34:45]Host: 172.17.59.68:8080 [08:34:45]Content-Length: 678 [08:34:45]Content-Type: application/json [08:34:45] [08:34:45]POST finish read [08:34:45]Found Content-Length = 678 [08:34:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [08:34:45]execute_script... [08:34: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)321091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [08:34:45]POST & json_proto [08:34:45]process_json_proto [08:34:45]json parsed OK: [08:34:45]protocol is kg_v1.0 [08:34:45]action value=close_receipt [08:34:45]process_action close_receipt [08:34:45]cmd_close_receipt [08:34:45]MH_GetDate [08:34:45]Write to MH i2c: F0 00 00 D0 68 27 [08:34:45]Write i2c OK [08:34:45]MH_I2C_Read... [08:34:45]Read from MH i2c: F0 [08:34:45]MH_I2C_Read... [08:34:45]Read from MH i2c: F0 09 00 [08:34:45]MH_I2C_Read... [08:34:45]Read from MH i2c: F0 09 00 D0 68 00 58 DE 77 66 BC EC 60 65 B0 [08:34:45]GetLastDocTimeStamp 1719131034 [08:34:45]current date 1719131736 [08:34:45]FM_GetShiftState [08:34:45]SAM_PROTO_GetShiftState [08:34:45]wFMCommunicate request_size=4 [08:34:45]MH_SAM_APDU [08:34:45]CAPDU: 80 13 01 00 [08:34:45]Write to MH i2c: E2 08 00 D1 68 80 13 01 00 00 00 00 00 B6 [08:34:45]Write i2c OK [08:34:45]MH_I2C_Read... [08:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:45]Read from MH i2c: E2 [08:34:45]MH_I2C_Read... [08:34:45]Read from MH i2c: E2 0E 00 [08:34:45]MH_I2C_Read... [08:34:45]Read from MH i2c: E2 0E 00 D1 68 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D4 [08:34:45]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:34:45]wFMCommunicate OK [08:34:45]SAM_PROTO_GetShiftState done [08:34:45]FM_GetShiftState done [08:34:45]opened in 1719106490 [08:34:45]opened+sec_in_day 1719192890 [08:34:45]quantity*price = 70052 [08:34:45]sum+1 = 70053 [08:34:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 14 23.06.2024 08:35 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112413 ФПД: 83820648278382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T083536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112413&fm=83820648278382&tin=02508201610067®Number=0000000000092771&sum=70000 [08:34:47]StoreToDocumentArchive [08:34:47]shift 392 fd 112413 [08:34:47]save to /storage/0392/doc_00112413 [08:34:47]save last doc name /storage/0392/doc_00112413 to /storage/kkm_last_doc_name [08:34:47]save OK [08:34:47]Clear old archive folders... [08:34:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:47]tlvbuf is 012E2FF0 [08:34:47]SAM_PROTO_ClearQueue [08:34:47]wFMCommunicate request_size=4 [08:34:47]MH_SAM_APDU [08:34:47]CAPDU: 80 09 00 00 [08:34:47]Write to MH i2c: E2 08 00 DE 68 80 09 00 00 00 00 00 00 B8 [08:34:47]Write i2c OK [08:34:47]MH_I2C_Read... [08:34:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:47]Read from MH i2c: E2 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 03 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 03 00 DE 68 00 90 00 BA [08:34:47]RAPDU: 90 00 [08:34:47]wFMCommunicate OK [08:34:47]SAM_PROTO_ClearQueue done [08:34:47]KKMCreateOFDPacket [08:34:47]OFDProtocolAddRootSTLVToBuf [08:34:47]FM_MakeSignedData [08:34:47]FM_MakeSignedData [08:34:47]SAM_PROTO_SignData [08:34:47]wFMCommunicate request_size=4 [08:34:47]MH_SAM_APDU [08:34:47]CAPDU: 80 0D 01 02 [08:34:47]Write to MH i2c: E2 08 00 DF 68 80 0D 01 02 00 00 00 00 C0 [08:34:47]Write i2c OK [08:34:47]MH_I2C_Read... [08:34:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:47]Read from MH i2c: E2 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 03 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 03 00 DF 68 00 90 00 BB [08:34:47]RAPDU: 90 00 [08:34:47]wFMCommunicate OK [08:34:47]wFMCommunicate request_size=255 [08:34:47]MH_SAM_APDU [08: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 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 0E 00 00 00 F4 03 04 00 58 DE 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B7 01 00 35 04 06 00 4C [08:34:47]Write to MH i2c: E2 02 01 E0 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 0E 00 00 00 F4 03 04 00 58 DE 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B7 01 00 35 04 06 00 4C 00 00 51 [08:34:47]Write i2c OK [08:34:47]MH_I2C_Read... [08:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:47]Read from MH i2c: E2 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 03 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 03 00 E0 68 00 90 00 BC [08:34:47]RAPDU: 90 00 [08:34:47]wFMCommunicate OK [08:34:47]wFMCommunicate request_size=10 [08:34:47]MH_SAM_APDU [08:34:47]CAPDU: 80 0D 02 02 05 3C 03 F7 29 6E [08:34:47]Write to MH i2c: E2 0D 00 E1 68 80 0D 02 02 05 00 3C 03 F7 29 6E 00 00 9A [08:34:47]Write i2c OK [08:34:47]MH_I2C_Read... [08:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:47]Read from MH i2c: E2 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 03 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 03 00 E1 68 00 90 00 BD [08:34:47]RAPDU: 90 00 [08:34:47]wFMCommunicate OK [08:34:47]wFMCommunicate request_size=4 [08:34:47]MH_SAM_APDU [08:34:47]CAPDU: 80 0D 03 02 [08:34:47]Write to MH i2c: E2 08 00 E2 68 80 0D 03 02 00 00 00 00 C5 [08:34:47]Write i2c OK [08:34:47]MH_I2C_Read... [08:34:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:47]Read from MH i2c: E2 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 0B 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 0B 00 E2 68 00 A0 E0 E4 9D D1 39 C3 9A 90 00 2E [08:34:47]RAPDU: A0 E0 E4 9D D1 39 C3 9A 90 00 [08:34:47]wFMCommunicate OK [08:34:47]SAM_PROTO_SignData done [08:34:47]FM_MakeSignedData done [08:34:47]CreateOFDProtocolMessage [08:34:47]wFMCommunicate request_size=4 [08:34:47]MH_SAM_APDU [08:34:47]CAPDU: 80 11 00 00 [08:34:47]Write to MH i2c: E2 08 00 E3 68 80 11 00 00 00 00 00 00 C5 [08:34:47]Write i2c OK [08:34:47]MH_I2C_Read... [08:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:47]Read from MH i2c: E2 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 17 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 17 00 E3 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 17 [08:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:34:47]wFMCommunicate OK [08:34:47]CreateOFDProtocolMessage done [08:34:47]OFDSenderStorePacket 112413 [08:34:47]StoreOFDPacket docnum=112413 [08:34:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 48 1A 07 01 BF 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 0E 00 00 00 F4 03 04 00 58 DE 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B7 01 00 35 04 06 00 4C 3C 03 F7 29 6E A0 E0 E4 9D D1 39 C3 9A [08:34:47]CheckFolder [08:34:47]dirname=/storage/ofd_packets [08:34:47]CheckFolder done [08:34:47]ProducePacketName [08:34:47]name=ofd_packets/00112413 [08:34:47]NVStorageSaveData ofd_packets/00112413 [08:34:47]File name is /storage/ofd_packets/00112413 [08:34:47]Write 301 bytes [08:34:47]NVStorageSaveData done [08:34:47]OFDSenderStorePacket done [08:34:47]KKMCreateOFDPacket done [08:34:47]NVStorageSaveData kkm_last_timestamp [08:34:47]File name is /storage/kkm_last_timestamp [08:34:47]Write 4 bytes [08:34:47]NVStorageSaveData done [08:34:47]ExternCall_PrintAddStr [08:34:47]wPrintStart [08:34:47]Write to MH i2c: 01 00 00 E4 68 4C [08:34:47]Write i2c OK [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: 01 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: 01 07 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: 01 07 00 E4 68 00 00 00 00 00 FF 0F 61 [08:34:47]RasterBufferAndPrint [08:34:47]line Счет N : (1)321091 [08:34:47]line ИНН: 02508201610067 [08:34:47]line Контрольно-Кассовый Чек [08:34:47]line ПРОДАЖА [08:34:47]line ТРК (МРК, ГНК) : 11 [08:34:47]line Товар: 2710124130 [08:34:47]line Аи-92-К-5 [08:34:47]line 10.550 * 66.40 [08:34:47]line = 700.52 [08:34:47]line НДС 12% НСП 1% [08:34:47]line > о реализуемом товаре [08:34:47]line ОКРУГЛЕНИЕ: -0.52 [08:34:47]line ИТОГО: 700.00 [08:34:47]line Внесено: 700.00 [08:34:47]line СДАЧА: 0.00 [08:34:47]line НСП 1% : 6.20 [08:34:47]line НДС 12% : 74.39 [08:34:47]line Наличными: 700.00 [08:34:47]line Безнал.: 0.00 [08:34:47]line Место: АЗС № 65 "Партнер Нефть" [08:34:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:34:47]line СНО: Общий режим [08:34:47]line Чек 14 23.06.2024 08:35 [08:34:47]line Смена: 392 ФФД: 1.0 [08:34:47]line ЗНМ: 0300000198 [08:34:47]line РНМ: 0000000000092771 [08:34:47]line Версия ККМ: 001 [08:34:47]line ФМ: 0000000000875083 [08:34:47]line ФД: 112413 [08:34:47]line ФПД: 83820648278382 [08:34:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T083536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112413&fm=83820648278382&tin=02508201610067®Number=0000000000092771&sum=70000 [08:34:47]OFD Sender: Processing packet 112413 [packets to send 38, broken 37] [08:34:47]ProducePacketName [08:34:47]name=ofd_packets/00112413 [08:34:47]OFD Sender: To server: pG, [08:34:47]CommunicateWithHost lk.salyk.kg:30040 [08:34:47]ConnectInit lk.salyk.kg [08:34:47]written 0, free lines is 4095 [08:34:48]Connected sock=10 [08:34:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 48 1A 07 01 BF 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 0E 00 00 00 F4 03 04 00 58 DE 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B7 01 00 35 04 06 00 4C 3C 03 F7 29 6E A0 E0 E4 9D D1 39 C3 9A [08:34:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F1 4B 47 00 D7 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B7 01 00 F4 03 04 00 4B 75 77 66 B6 04 01 00 00 BB 1C 0C 90 E9 9F E7 AF [08:34:48]CommunicateWithHost err = 0 [08:34:48]CheckOFDResponse [08:34:48]1017 (14) - 77093643461234 [08:34:48]1041 (16) - 0000000000875083 [08:34:48]1040 (4) - 112413 [08:34:48]1012 (4) - 23.06.2024 01:07 [08:34:48]1206 (1) - 0 [08:34:48]OFD Sender: Remove packet 112413 [08:34:48]ProducePacketName [08:34:48]name=ofd_packets/00112413 [08:34:48]NVStorageDeleteData [08:34:48]Write to MH i2c: 01 00 00 0F 69 78 [08:34:48]Write i2c OK [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: 01 [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: 01 07 00 [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: 01 07 00 0F 69 00 00 00 00 00 CD 0C 58 [08:34:48]RasterBufferAndPrint [08:34:48]line [08:34:48]line [08:34:48]line [08:34:48]line [08:34:48]line [08:34:48]written 0, free lines is 3287 [08:34:48]MH_Cut [08:34:48]Write to MH i2c: D1 01 00 16 69 01 51 [08:34:48]Write i2c OK [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: D1 [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: D1 01 00 [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: D1 01 00 16 69 00 50 [08:34:48]Write to MH i2c: 01 00 00 17 69 80 [08:34:48]Write i2c OK [08:34:48]MH_I2C_Read... [08:34:48]OFD Sender: No OFD packet to send [08:34:49]*** Cut start [08:34:49]*** Partial cut [08:34:49]*** CUTSNS_PIN = 1 [08:34:49]*** CUTSNS_PIN = 0 [08:34:49]*** Brake cut motor [08:34:49]Read from MH i2c: 01 [08:34:49]MH_I2C_Read... [08:34:49]*** Stop cut motor [08:34:49]*** Cut end [08:34:49]Read from MH i2c: 01 07 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: 01 07 00 17 69 00 00 00 00 00 FF 0F 95 [08:34:49]process_action close_receipt done [08:34:49]requested_data is exist [08:34:49]produce_requested_data [08:34:49]requested_item fm.sn is exist - process it [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 11 00 00 [08:34:49]Write to MH i2c: E2 08 00 18 69 80 11 00 00 00 00 00 00 FB [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 17 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 17 00 18 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4D [08:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:34:49]wFMCommunicate OK [08:34:49]requested_item fd.num is exist - process it [08:34:49]SAM_PROTO_GetFieldsCounters [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 13 00 00 [08:34:49]Write to MH i2c: E2 08 00 19 69 80 13 00 00 00 00 00 00 FE [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 62 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 62 00 19 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [08:34:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:49]wFMCommunicate OK [08:34:49]SAM_PROTO_GetFieldsCounters done [08:34:49]requested_item shift.num is exist - process it [08:34:49]requested_item shift.opened is exist - process it [08:34:49]req_shift_opened [08:34:49]FM_GetShiftState [08:34:49]SAM_PROTO_GetShiftState [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 13 01 00 [08:34:49]Write to MH i2c: E2 08 00 1A 69 80 13 01 00 00 00 00 00 00 [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:50]Read from MH i2c: E2 [08:34:50]MH_I2C_Read... [08:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:50]Read from MH i2c: E2 0E 00 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: E2 0E 00 1A 69 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 1E [08:34:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:34:50]wFMCommunicate OK [08:34:50]SAM_PROTO_GetShiftState done [08:34:50]FM_GetShiftState done [08:34:50]req_shift_opened done [08:34:50]requested_item shift.open_date is exist - process it [08:34:50]req_shift_open_date [08:34:50]req_shift_open_date done [08:34:50]produce_requested_data done [08:34:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112413,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:34:50]process_action_free close_receipt [08:34:50]json_value_free [08:34:50]json_value_free done [08:34:50]process_json_proto returns [08:34:50]Send response to host [08:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112413,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:34:50]free response buf [08:34:50]execute_script done [08:34:50]execute_script returns [08:34:50]free content buf [08:34:50]Sock 9.Close socket [08:34:50]Sock 9.Thread stoped [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]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:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:33]accept exits with 7 [08:41:33]New connection [08:41:33]New thread 3066957156 created [08:41:33]Thread 3066813796 joined [08:41:33]Waiting for new connection... [08:41:33] Sock 7.Parse request [08:41:33]Sock 7.Check first char [08:41:33]Sock 7.First char is OK [08:41:33]request: POST /json_proto HTTP/1.0 [08:41:33]Method: POST [08:41:33]URL: /json_proto [08:41:33]Method is POST - this is cgi request [08:41:33]url: /json_proto [08:41:33]query_string will be loaded in cgi processing [08:41:33]execute_cgi json_proto POST (null) [08:41:33]execute_cgi path=json_proto method=POST [08:41:33]POST find Content-Length [08:41:33]Host: 172.17.59.68:8080 [08:41:33]Content-Length: 679 [08:41:33]Content-Type: application/json [08:41:33] [08:41:33]POST finish read [08:41:33]Found Content-Length = 679 [08:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 50.070, "sum" : 3650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3650.00, "total" : 3650.00, "payments": [ { "type": 0, "sum" : 3650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:33]execute_script... [08: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)321092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 50.070, "sum" : 3650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3650.00, "total" : 3650.00, "payments": [ { "type": 0, "sum" : 3650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:33]POST & json_proto [08:41:33]process_json_proto [08:41:33]json parsed OK: [08:41:33]protocol is kg_v1.0 [08:41:33]action value=close_receipt [08:41:33]process_action close_receipt [08:41:33]cmd_close_receipt [08:41:33]MH_GetDate [08:41:33]Write to MH i2c: F0 00 00 1B 69 73 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 09 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 09 00 1B 69 00 F0 DF 77 66 BC EC 60 65 95 [08:41:33]GetLastDocTimeStamp 1719131736 [08:41:33]current date 1719132144 [08:41:33]FM_GetShiftState [08:41:33]SAM_PROTO_GetShiftState [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 13 01 00 [08:41:33]Write to MH i2c: E2 08 00 1C 69 80 13 01 00 00 00 00 00 02 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 1C 69 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 20 [08:41:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:41:33]wFMCommunicate OK [08:41:33]SAM_PROTO_GetShiftState done [08:41:33]FM_GetShiftState done [08:41:33]opened in 1719106490 [08:41:33]opened+sec_in_day 1719192890 [08:41:33]quantity*price = 365010 [08:41:33]sum+1 = 365011 [08:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 3650.00 Внесено: 3650.00 СДАЧА: 0.00 НСП 1% : 32.30 НДС 12% : 387.62 Наличными: 3650.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 15 23.06.2024 08:42 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112414 ФПД: 154196997379574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T084224&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112414&fm=154196997379574&tin=02508201610067®Number=0000000000092771&sum=365000 [08:41:34]StoreToDocumentArchive [08:41:34]shift 392 fd 112414 [08:41:34]save to /storage/0392/doc_00112414 [08:41:34]save last doc name /storage/0392/doc_00112414 to /storage/kkm_last_doc_name [08:41:34]save OK [08:41:34]Clear old archive folders... [08:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:41:34]tlvbuf is 011802A0 [08:41:34]SAM_PROTO_ClearQueue [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 09 00 00 [08:41:34]Write to MH i2c: E2 08 00 29 69 80 09 00 00 00 00 00 00 04 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 29 69 00 90 00 06 [08:41:34]RAPDU: 90 00 [08:41:34]wFMCommunicate OK [08:41:34]SAM_PROTO_ClearQueue done [08:41:34]KKMCreateOFDPacket [08:41:34]OFDProtocolAddRootSTLVToBuf [08:41:34]FM_MakeSignedData [08:41:34]FM_MakeSignedData [08:41:34]SAM_PROTO_SignData [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 0D 01 02 [08:41:34]Write to MH i2c: E2 08 00 2A 69 80 0D 01 02 00 00 00 00 0C [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 2A 69 00 90 00 07 [08:41:34]RAPDU: 90 00 [08:41:34]wFMCommunicate OK [08:41:34]wFMCommunicate request_size=255 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F0 DF 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B7 01 00 35 04 06 00 8C 3D C9 41 [08:41:34]Write to MH i2c: E2 02 01 2B 69 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 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F0 DF 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B7 01 00 35 04 06 00 8C 3D C9 41 00 00 14 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 2B 69 00 90 00 08 [08:41:34]RAPDU: 90 00 [08:41:34]wFMCommunicate OK [08:41:34]wFMCommunicate request_size=7 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 0D 02 02 02 15 F6 [08:41:34]Write to MH i2c: E2 0A 00 2C 69 80 0D 02 02 02 00 15 F6 00 00 1E [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 2C 69 00 90 00 09 [08:41:34]RAPDU: 90 00 [08:41:34]wFMCommunicate OK [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 0D 03 02 [08:41:34]Write to MH i2c: E2 08 00 2D 69 80 0D 03 02 00 00 00 00 11 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 0B 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 0B 00 2D 69 00 25 AF DF 85 C1 E0 34 4C 90 00 6B [08:41:34]RAPDU: 25 AF DF 85 C1 E0 34 4C 90 00 [08:41:34]wFMCommunicate OK [08:41:34]SAM_PROTO_SignData done [08:41:34]FM_MakeSignedData done [08:41:34]CreateOFDProtocolMessage [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 11 00 00 [08:41:34]Write to MH i2c: E2 08 00 2E 69 80 11 00 00 00 00 00 00 11 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 17 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 17 00 2E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [08:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:41:34]wFMCommunicate OK [08:41:34]CreateOFDProtocolMessage done [08:41:34]OFDSenderStorePacket 112414 [08:41:34]StoreOFDPacket docnum=112414 [08:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 8A D4 04 01 FD CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F0 DF 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B7 01 00 35 04 06 00 8C 3D C9 41 15 F6 25 AF DF 85 C1 E0 34 4C [08:41:34]CheckFolder [08:41:34]dirname=/storage/ofd_packets [08:41:34]CheckFolder done [08:41:34]ProducePacketName [08:41:34]name=ofd_packets/00112414 [08:41:34]NVStorageSaveData ofd_packets/00112414 [08:41:34]File name is /storage/ofd_packets/00112414 [08:41:34]Write 298 bytes [08:41:34]NVStorageSaveData done [08:41:34]OFDSenderStorePacket done [08:41:34]KKMCreateOFDPacket done [08:41:34]NVStorageSaveData kkm_last_timestamp [08:41:34]File name is /storage/kkm_last_timestamp [08:41:34]Write 4 bytes [08:41:34]NVStorageSaveData done [08:41:34]ExternCall_PrintAddStr [08:41:34]wPrintStart [08:41:34]Write to MH i2c: 01 00 00 2F 69 98 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: 01 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: 01 07 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: 01 07 00 2F 69 00 00 00 00 00 FF 0F AD [08:41:34]RasterBufferAndPrint [08:41:34]line Счет N : (1)321092 [08:41:34]line ИНН: 02508201610067 [08:41:34]line Контрольно-Кассовый Чек [08:41:34]line ПРОДАЖА [08:41:34]line ТРК (МРК, ГНК) : 22 [08:41:34]line Товар: 2710194210 [08:41:34]line ДТ-К-5 [08:41:34]line 50.070 * 72.90 [08:41:34]line = 3650.10 [08:41:34]line НДС 12% НСП 1% [08:41:34]line > о реализуемом товаре [08:41:34]line ОКРУГЛЕНИЕ: -0.10 [08:41:34]line ИТОГО: 3650.00 [08:41:34]line Внесено: 3650.00 [08:41:34]line СДАЧА: 0.00 [08:41:34]line НСП 1% : 32.30 [08:41:34]line НДС 12% : 387.62 [08:41:34]line Наличными: 3650.00 [08:41:34]line Безнал.: 0.00 [08:41:34]line Место: АЗС № 65 "Партнер Нефть" [08:41:34]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:41:34]line СНО: Общий режим [08:41:34]line Чек 15 23.06.2024 08:42 [08:41:34]line Смена: 392 ФФД: 1.0 [08:41:34]line ЗНМ: 0300000198 [08:41:34]line РНМ: 0000000000092771 [08:41:34]line Версия ККМ: 001 [08:41:34]line ФМ: 0000000000875083 [08:41:34]line ФД: 112414 [08:41:35]line ФПД: 154196997379574 [08:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T084224&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112414&fm=154196997379574&tin=02508201610067®Number=0000000000092771&sum=365000 [08:41:35]OFD Sender: Processing packet 112414 [packets to send 38, broken 37] [08:41:35]ProducePacketName [08:41:35]name=ofd_packets/00112414 [08:41:35]OFD Sender: To server: pG, [08:41:35]CommunicateWithHost lk.salyk.kg:30040 [08:41:35]ConnectInit lk.salyk.kg [08:41:35]written 0, free lines is 4095 [08:41:35]Connected sock=10 [08:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 8A D4 04 01 FD CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F0 DF 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B7 01 00 35 04 06 00 8C 3D C9 41 15 F6 25 AF DF 85 C1 E0 34 4C [08:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 46 74 47 00 2B 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B7 01 00 F4 03 04 00 E2 76 77 66 B6 04 01 00 00 F1 48 16 38 39 B7 76 95 [08:41:35]CommunicateWithHost err = 0 [08:41:35]CheckOFDResponse [08:41:35]1017 (14) - 77093643461234 [08:41:35]1041 (16) - 0000000000875083 [08:41:35]1040 (4) - 112414 [08:41:35]1012 (4) - 23.06.2024 01:14 [08:41:35]1206 (1) - 0 [08:41:35]OFD Sender: Remove packet 112414 [08:41:35]ProducePacketName [08:41:35]name=ofd_packets/00112414 [08:41:35]NVStorageDeleteData [08:41:35]Write to MH i2c: 01 00 00 5A 69 C3 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 07 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 07 00 5A 69 00 00 00 00 00 D4 0C AA [08:41:35]RasterBufferAndPrint [08:41:35]line [08:41:35]line [08:41:35]line [08:41:35]line [08:41:35]line [08:41:35]written 0, free lines is 3290 [08:41:35]MH_Cut [08:41:35]Write to MH i2c: D1 01 00 61 69 01 9C [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: D1 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: D1 01 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: D1 01 00 61 69 00 9B [08:41:35]Write to MH i2c: 01 00 00 62 69 CB [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:36]OFD Sender: No OFD packet to send [08:41:36]*** Cut start [08:41:36]*** Partial cut [08:41:36]*** CUTSNS_PIN = 1 [08:41:36]*** CUTSNS_PIN = 0 [08:41:36]*** Brake cut motor [08:41:37]Read from MH i2c: 01 [08:41:37]MH_I2C_Read... [08:41:37]*** Stop cut motor [08:41:37]*** Cut end [08:41:37]Read from MH i2c: 01 07 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: 01 07 00 62 69 00 00 00 00 00 FF 0F E0 [08:41:37]process_action close_receipt done [08:41:37]requested_data is exist [08:41:37]produce_requested_data [08:41:37]requested_item fm.sn is exist - process it [08:41:37]wFMCommunicate request_size=4 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 11 00 00 [08:41:37]Write to MH i2c: E2 08 00 63 69 80 11 00 00 00 00 00 00 46 [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 17 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 17 00 63 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 98 [08:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:41:37]wFMCommunicate OK [08:41:37]requested_item fd.num is exist - process it [08:41:37]SAM_PROTO_GetFieldsCounters [08:41:37]wFMCommunicate request_size=4 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 13 00 00 [08:41:37]Write to MH i2c: E2 08 00 64 69 80 13 00 00 00 00 00 00 49 [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 62 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 62 00 64 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1E B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [08:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1E B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:37]wFMCommunicate OK [08:41:37]SAM_PROTO_GetFieldsCounters done [08:41:37]requested_item shift.num is exist - process it [08:41:37]requested_item shift.opened is exist - process it [08:41:37]req_shift_opened [08:41:37]FM_GetShiftState [08:41:37]SAM_PROTO_GetShiftState [08:41:37]wFMCommunicate request_size=4 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 13 01 00 [08:41:37]Write to MH i2c: E2 08 00 65 69 80 13 01 00 00 00 00 00 4B [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 0E 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 0E 00 65 69 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 69 [08:41:37]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:41:37]wFMCommunicate OK [08:41:37]SAM_PROTO_GetShiftState done [08:41:37]FM_GetShiftState done [08:41:37]req_shift_opened done [08:41:37]requested_item shift.open_date is exist - process it [08:41:37]req_shift_open_date [08:41:37]req_shift_open_date done [08:41:37]produce_requested_data done [08:41:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112414,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:41:37]process_action_free close_receipt [08:41:37]json_value_free [08:41:37]json_value_free done [08:41:37]process_json_proto returns [08:41:37]Send response to host [08:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112414,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:41:37]free response buf [08:41:37]execute_script done [08:41:37]execute_script returns [08:41:37]free content buf [08:41:37]Sock 7.Close socket [08:41:37]Sock 7.Thread stoped [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:49]accept exits with 9 [08:42:49]New connection [08:42:49]New thread 3066813796 created [08:42:49]Thread 3066957156 joined [08:42:49]Waiting for new connection... [08:42:49] Sock 9.Parse request [08:42:49]Sock 9.Check first char [08:42:49]Sock 9.First char is OK [08:42:49]request: POST /json_proto HTTP/1.0 [08:42:49]Method: POST [08:42:49]URL: /json_proto [08:42:49]Method is POST - this is cgi request [08:42:49]url: /json_proto [08:42:49]query_string will be loaded in cgi processing [08:42:49]execute_cgi json_proto POST (null) [08:42:49]execute_cgi path=json_proto method=POST [08:42:49]POST find Content-Length [08:42:49]Host: 172.17.59.68:8080 [08:42:49]Content-Length: 682 [08:42:49]Content-Type: application/json [08:42:49] [08:42:49]POST finish read [08:42:49]Found Content-Length = 682 [08:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "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" ] } } [08:42:49]execute_script... [08: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)321093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "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" ] } } [08:42:49]POST & json_proto [08:42:49]process_json_proto [08:42:49]json parsed OK: [08:42:49]protocol is kg_v1.0 [08:42:49]action value=close_receipt [08:42:49]process_action close_receipt [08:42:49]cmd_close_receipt [08:42:49]MH_GetDate [08:42:49]Write to MH i2c: F0 00 00 66 69 BE [08:42:49]Write i2c OK [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: F0 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: F0 09 00 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: F0 09 00 66 69 00 3C E0 77 66 BC EC 60 65 2D [08:42:49]GetLastDocTimeStamp 1719132144 [08:42:49]current date 1719132220 [08:42:49]FM_GetShiftState [08:42:49]SAM_PROTO_GetShiftState [08:42:49]wFMCommunicate request_size=4 [08:42:49]MH_SAM_APDU [08:42:49]CAPDU: 80 13 01 00 [08:42:49]Write to MH i2c: E2 08 00 67 69 80 13 01 00 00 00 00 00 4D [08:42:49]Write i2c OK [08:42:49]MH_I2C_Read... [08:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:49]Read from MH i2c: E2 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 0E 00 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 0E 00 67 69 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 6B [08:42:49]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:42:49]wFMCommunicate OK [08:42:49]SAM_PROTO_GetShiftState done [08:42:49]FM_GetShiftState done [08:42:49]opened in 1719106490 [08:42:49]opened+sec_in_day 1719192890 [08:42:49]quantity*price = 250062 [08:42:49]sum+1 = 250063 [08:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 16 23.06.2024 08:43 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112415 ФПД: 218032534171532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T084340&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112415&fm=218032534171532&tin=02508201610067®Number=0000000000092771&sum=250000 [08:42:51]StoreToDocumentArchive [08:42:51]shift 392 fd 112415 [08:42:51]save to /storage/0392/doc_00112415 [08:42:51]save last doc name /storage/0392/doc_00112415 to /storage/kkm_last_doc_name [08:42:51]save OK [08:42:51]Clear old archive folders... [08:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:51]tlvbuf is 011F7250 [08:42:51]SAM_PROTO_ClearQueue [08:42:51]wFMCommunicate request_size=4 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 09 00 00 [08:42:51]Write to MH i2c: E2 08 00 74 69 80 09 00 00 00 00 00 00 4F [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 03 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 03 00 74 69 00 90 00 51 [08:42:51]RAPDU: 90 00 [08:42:51]wFMCommunicate OK [08:42:51]SAM_PROTO_ClearQueue done [08:42:51]KKMCreateOFDPacket [08:42:51]OFDProtocolAddRootSTLVToBuf [08:42:51]FM_MakeSignedData [08:42:51]FM_MakeSignedData [08:42:51]SAM_PROTO_SignData [08:42:51]wFMCommunicate request_size=4 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 0D 01 02 [08:42:51]Write to MH i2c: E2 08 00 75 69 80 0D 01 02 00 00 00 00 57 [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]OFD Sender: No OFD packet to send [08:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 03 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 03 00 75 69 00 90 00 52 [08:42:51]RAPDU: 90 00 [08:42:51]wFMCommunicate OK [08:42:51]wFMCommunicate request_size=255 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE 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 BB 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 10 00 00 00 F4 03 04 00 3C E0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B7 01 00 35 04 06 00 C6 [08:42:51]Write to MH i2c: E2 02 01 76 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE 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 BB 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 10 00 00 00 F4 03 04 00 3C E0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B7 01 00 35 04 06 00 C6 00 00 7E [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 03 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 03 00 76 69 00 90 00 53 [08:42:51]RAPDU: 90 00 [08:42:51]wFMCommunicate OK [08:42:51]wFMCommunicate request_size=10 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 0D 02 02 05 4C A7 BF AF 8C [08:42:51]Write to MH i2c: E2 0D 00 77 69 80 0D 02 02 05 00 4C A7 BF AF 8C 00 00 51 [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 03 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 03 00 77 69 00 90 00 54 [08:42:51]RAPDU: 90 00 [08:42:51]wFMCommunicate OK [08:42:51]wFMCommunicate request_size=4 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 0D 03 02 [08:42:51]Write to MH i2c: E2 08 00 78 69 80 0D 03 02 00 00 00 00 5C [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 0B 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 0B 00 78 69 00 92 C6 C8 75 33 AE F8 06 90 00 D1 [08:42:51]RAPDU: 92 C6 C8 75 33 AE F8 06 90 00 [08:42:51]wFMCommunicate OK [08:42:51]SAM_PROTO_SignData done [08:42:51]FM_MakeSignedData done [08:42:51]CreateOFDProtocolMessage [08:42:51]wFMCommunicate request_size=4 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 11 00 00 [08:42:51]Write to MH i2c: E2 08 00 79 69 80 11 00 00 00 00 00 00 5C [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 17 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 17 00 79 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AE [08:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:42:51]wFMCommunicate OK [08:42:51]CreateOFDProtocolMessage done [08:42:51]OFDSenderStorePacket 112415 [08:42:51]StoreOFDPacket docnum=112415 [08:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 96 07 01 81 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 35 FF 03 08 00 03 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE 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 BB 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 10 00 00 00 F4 03 04 00 3C E0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B7 01 00 35 04 06 00 C6 4C A7 BF AF 8C 92 C6 C8 75 33 AE F8 06 [08:42:51]CheckFolder [08:42:51]dirname=/storage/ofd_packets [08:42:51]CheckFolder done [08:42:51]ProducePacketName [08:42:51]name=ofd_packets/00112415 [08:42:51]NVStorageSaveData ofd_packets/00112415 [08:42:51]File name is /storage/ofd_packets/00112415 [08:42:51]Write 301 bytes [08:42:51]NVStorageSaveData done [08:42:51]OFDSenderStorePacket done [08:42:51]KKMCreateOFDPacket done [08:42:51]NVStorageSaveData kkm_last_timestamp [08:42:51]File name is /storage/kkm_last_timestamp [08:42:51]Write 4 bytes [08:42:51]NVStorageSaveData done [08:42:51]ExternCall_PrintAddStr [08:42:51]wPrintStart [08:42:51]Write to MH i2c: 01 00 00 7A 69 E3 [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: 01 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: 01 07 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: 01 07 00 7A 69 00 00 00 00 00 FF 0F F8 [08:42:51]RasterBufferAndPrint [08:42:51]line Счет N : (1)321093 [08:42:51]line ИНН: 02508201610067 [08:42:51]line Контрольно-Кассовый Чек [08:42:51]line ПРОДАЖА [08:42:51]line ТРК (МРК, ГНК) : 11 [08:42:51]line Товар: 2710124130 [08:42:51]line Аи-92-К-5 [08:42:51]line 37.660 * 66.40 [08:42:51]line = 2500.62 [08:42:51]line НДС 12% НСП 1% [08:42:51]line > о реализуемом товаре [08:42:51]line ОКРУГЛЕНИЕ: -0.62 [08:42:51]line ИТОГО: 2500.00 [08:42:51]line Внесено: 2500.00 [08:42:51]line СДАЧА: 0.00 [08:42:51]line НСП 1% : 22.13 [08:42:51]line НДС 12% : 265.55 [08:42:51]line Наличными: 2500.00 [08:42:51]line Безнал.: 0.00 [08:42:51]line Место: АЗС № 65 "Партнер Нефть" [08:42:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:42:51]line СНО: Общий режим [08:42:51]line Чек 16 23.06.2024 08:43 [08:42:51]line Смена: 392 ФФД: 1.0 [08:42:51]line ЗНМ: 0300000198 [08:42:51]line РНМ: 0000000000092771 [08:42:51]line Версия ККМ: 001 [08:42:51]line ФМ: 0000000000875083 [08:42:51]line ФД: 112415 [08:42:51]line ФПД: 218032534171532 [08:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T084340&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112415&fm=218032534171532&tin=02508201610067®Number=0000000000092771&sum=250000 [08:42:51]OFD Sender: Processing packet 112415 [packets to send 38, broken 37] [08:42:51]ProducePacketName [08:42:51]name=ofd_packets/00112415 [08:42:51]OFD Sender: To server: pG, [08:42:51]CommunicateWithHost lk.salyk.kg:30040 [08:42:51]ConnectInit lk.salyk.kg [08:42:51]written 0, free lines is 4095 [08:42:52]Connected sock=10 [08:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 96 07 01 81 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 35 FF 03 08 00 03 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE 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 BB 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 10 00 00 00 F4 03 04 00 3C E0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B7 01 00 35 04 06 00 C6 4C A7 BF AF 8C 92 C6 C8 75 33 AE F8 06 [08:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 54 ED 47 00 3B 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B7 01 00 F4 03 04 00 2F 77 77 66 B6 04 01 00 00 C0 9A 08 64 BB 86 06 82 [08:42:52]CommunicateWithHost err = 0 [08:42:52]CheckOFDResponse [08:42:52]1017 (14) - 77093643461234 [08:42:52]1041 (16) - 0000000000875083 [08:42:52]1040 (4) - 112415 [08:42:52]1012 (4) - 23.06.2024 01:15 [08:42:52]1206 (1) - 0 [08:42:52]OFD Sender: Remove packet 112415 [08:42:52]ProducePacketName [08:42:52]name=ofd_packets/00112415 [08:42:52]NVStorageDeleteData [08:42:52]Write to MH i2c: 01 00 00 A5 69 0E [08:42:52]Write i2c OK [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: 01 [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: 01 07 00 [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: 01 07 00 A5 69 00 00 00 00 00 CC 0C ED [08:42:52]RasterBufferAndPrint [08:42:52]line [08:42:52]line [08:42:52]line [08:42:52]line [08:42:52]line [08:42:52]written 0, free lines is 3284 [08:42:52]MH_Cut [08:42:52]Write to MH i2c: D1 01 00 AC 69 01 E7 [08:42:52]Write i2c OK [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: D1 [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: D1 01 00 [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: D1 01 00 AC 69 00 E6 [08:42:52]Write to MH i2c: 01 00 00 AD 69 16 [08:42:52]Write i2c OK [08:42:52]MH_I2C_Read... [08:42:52]OFD Sender: No OFD packet to send [08:42:53]*** Cut start [08:42:53]*** Partial cut [08:42:53]*** CUTSNS_PIN = 1 [08:42:53]*** CUTSNS_PIN = 0 [08:42:53]*** Brake cut motor [08:42:53]Read from MH i2c: 01 [08:42:53]MH_I2C_Read... [08:42:53]*** Stop cut motor [08:42:53]*** Cut end [08:42:53]Read from MH i2c: 01 07 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: 01 07 00 AD 69 00 00 00 00 00 FF 0F 2B [08:42:53]process_action close_receipt done [08:42:53]requested_data is exist [08:42:53]produce_requested_data [08:42:53]requested_item fm.sn is exist - process it [08:42:53]wFMCommunicate request_size=4 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 11 00 00 [08:42:53]Write to MH i2c: E2 08 00 AE 69 80 11 00 00 00 00 00 00 91 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 17 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 17 00 AE 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E3 [08:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:42:53]wFMCommunicate OK [08:42:53]requested_item fd.num is exist - process it [08:42:53]SAM_PROTO_GetFieldsCounters [08:42:53]wFMCommunicate request_size=4 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 13 00 00 [08:42:53]Write to MH i2c: E2 08 00 AF 69 80 13 00 00 00 00 00 00 94 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 62 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 62 00 AF 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1F B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [08:42:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1F B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:53]wFMCommunicate OK [08:42:53]SAM_PROTO_GetFieldsCounters done [08:42:53]requested_item shift.num is exist - process it [08:42:53]requested_item shift.opened is exist - process it [08:42:53]req_shift_opened [08:42:53]FM_GetShiftState [08:42:53]SAM_PROTO_GetShiftState [08:42:53]wFMCommunicate request_size=4 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 13 01 00 [08:42:53]Write to MH i2c: E2 08 00 B0 69 80 13 01 00 00 00 00 00 96 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 0E 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 0E 00 B0 69 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B4 [08:42:53]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:42:53]wFMCommunicate OK [08:42:53]SAM_PROTO_GetShiftState done [08:42:53]FM_GetShiftState done [08:42:53]req_shift_opened done [08:42:53]requested_item shift.open_date is exist - process it [08:42:53]req_shift_open_date [08:42:53]req_shift_open_date done [08:42:53]produce_requested_data done [08:42:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112415,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:42:53]process_action_free close_receipt [08:42:53]json_value_free [08:42:53]json_value_free done [08:42:53]process_json_proto returns [08:42:53]Send response to host [08:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112415,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:42:53]free response buf [08:42:53]execute_script done [08:42:53]execute_script returns [08:42:53]free content buf [08:42:53]Sock 9.Close socket [08:42:53]Sock 9.Thread stoped [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]accept exits with 7 [08:45:42]New connection [08:45:42]New thread 3066957156 created [08:45:42]Thread 3066813796 joined [08:45:42]Waiting for new connection... [08:45:42] Sock 7.Parse request [08:45:42]Sock 7.Check first char [08:45:42]Sock 7.First char is OK [08:45:42]request: POST /json_proto HTTP/1.0 [08:45:42]Method: POST [08:45:42]URL: /json_proto [08:45:42]Method is POST - this is cgi request [08:45:42]url: /json_proto [08:45:42]query_string will be loaded in cgi processing [08:45:42]execute_cgi json_proto POST (null) [08:45:42]execute_cgi path=json_proto method=POST [08:45:42]POST find Content-Length [08:45:42]Host: 172.17.59.68:8080 [08:45:42]Content-Length: 674 [08:45:42]Content-Type: application/json [08:45:42] [08:45:42]POST finish read [08:45:42]Found Content-Length = 674 [08:45:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:42]execute_script... [08:45: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)321094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:42]POST & json_proto [08:45:42]process_json_proto [08:45:42]json parsed OK: [08:45:42]protocol is kg_v1.0 [08:45:42]action value=close_receipt [08:45:42]process_action close_receipt [08:45:42]cmd_close_receipt [08:45:42]MH_GetDate [08:45:42]Write to MH i2c: F0 00 00 B1 69 09 [08:45:42]Write i2c OK [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: F0 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: F0 09 00 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: F0 09 00 B1 69 00 E9 E0 77 66 BC EC 60 65 25 [08:45:42]GetLastDocTimeStamp 1719132220 [08:45:42]current date 1719132393 [08:45:42]FM_GetShiftState [08:45:42]SAM_PROTO_GetShiftState [08:45:42]wFMCommunicate request_size=4 [08:45:42]MH_SAM_APDU [08:45:42]CAPDU: 80 13 01 00 [08:45:42]Write to MH i2c: E2 08 00 B2 69 80 13 01 00 00 00 00 00 98 [08:45:42]Write i2c OK [08:45:42]MH_I2C_Read... [08:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:42]Read from MH i2c: E2 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: E2 0E 00 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: E2 0E 00 B2 69 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B6 [08:45:42]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:45:42]wFMCommunicate OK [08:45:42]SAM_PROTO_GetShiftState done [08:45:42]FM_GetShiftState done [08:45:42]opened in 1719106490 [08:45:42]opened+sec_in_day 1719192890 [08:45:42]quantity*price = 40022 [08:45:42]sum+1 = 40023 [08:45:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 17 23.06.2024 08:46 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112416 ФПД: 41173519742528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T084633&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112416&fm=41173519742528&tin=02508201610067®Number=0000000000092771&sum=40000 [08:45:43]StoreToDocumentArchive [08:45:43]shift 392 fd 112416 [08:45:43]save to /storage/0392/doc_00112416 [08:45:43]save last doc name /storage/0392/doc_00112416 to /storage/kkm_last_doc_name [08:45:43]save OK [08:45:43]Clear old archive folders... [08:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:45:43]tlvbuf is 011802B0 [08:45:43]SAM_PROTO_ClearQueue [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 09 00 00 [08:45:43]Write to MH i2c: E2 08 00 BF 69 80 09 00 00 00 00 00 00 9A [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 BF 69 00 90 00 9C [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]SAM_PROTO_ClearQueue done [08:45:43]KKMCreateOFDPacket [08:45:43]OFDProtocolAddRootSTLVToBuf [08:45:43]FM_MakeSignedData [08:45:43]FM_MakeSignedData [08:45:43]SAM_PROTO_SignData [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 01 02 [08:45:43]Write to MH i2c: E2 08 00 C0 69 80 0D 01 02 00 00 00 00 A2 [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 C0 69 00 90 00 9D [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]wFMCommunicate request_size=255 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 11 00 00 00 F4 03 04 00 E9 E0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B7 01 00 35 04 06 00 25 72 75 04 [08:45:43]Write to MH i2c: E2 02 01 C1 69 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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 11 00 00 00 F4 03 04 00 E9 E0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B7 01 00 35 04 06 00 25 72 75 04 00 00 FB [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 C1 69 00 90 00 9E [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]wFMCommunicate request_size=7 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 02 02 02 B6 40 [08:45:43]Write to MH i2c: E2 0A 00 C2 69 80 0D 02 02 02 00 B6 40 00 00 9F [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 C2 69 00 90 00 9F [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 03 02 [08:45:43]Write to MH i2c: E2 08 00 C3 69 80 0D 03 02 00 00 00 00 A7 [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 0B 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 0B 00 C3 69 00 C0 D0 3D C0 99 D0 15 D7 90 00 8A [08:45:43]RAPDU: C0 D0 3D C0 99 D0 15 D7 90 00 [08:45:43]wFMCommunicate OK [08:45:43]SAM_PROTO_SignData done [08:45:43]FM_MakeSignedData done [08:45:43]CreateOFDProtocolMessage [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 11 00 00 [08:45:43]Write to MH i2c: E2 08 00 C4 69 80 11 00 00 00 00 00 00 A7 [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 17 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 17 00 C4 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F9 [08:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:45:43]wFMCommunicate OK [08:45:43]CreateOFDProtocolMessage done [08:45:43]OFDSenderStorePacket 112416 [08:45:43]StoreOFDPacket docnum=112416 [08:45:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 80 56 04 01 20 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 11 00 00 00 F4 03 04 00 E9 E0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B7 01 00 35 04 06 00 25 72 75 04 B6 40 C0 D0 3D C0 99 D0 15 D7 [08:45:43]CheckFolder [08:45:43]dirname=/storage/ofd_packets [08:45:43]CheckFolder done [08:45:43]ProducePacketName [08:45:43]name=ofd_packets/00112416 [08:45:43]NVStorageSaveData ofd_packets/00112416 [08:45:43]File name is /storage/ofd_packets/00112416 [08:45:43]Write 298 bytes [08:45:43]NVStorageSaveData done [08:45:43]OFDSenderStorePacket done [08:45:43]KKMCreateOFDPacket done [08:45:43]NVStorageSaveData kkm_last_timestamp [08:45:43]File name is /storage/kkm_last_timestamp [08:45:43]Write 4 bytes [08:45:43]NVStorageSaveData done [08:45:43]ExternCall_PrintAddStr [08:45:43]wPrintStart [08:45:43]Write to MH i2c: 01 00 00 C5 69 2E [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 07 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 07 00 C5 69 00 00 00 00 00 FF 0F 43 [08:45:43]RasterBufferAndPrint [08:45:43]line Счет N : (1)321094 [08:45:43]line ИНН: 02508201610067 [08:45:43]line Контрольно-Кассовый Чек [08:45:43]line ПРОДАЖА [08:45:43]line ТРК (МРК, ГНК) : 22 [08:45:43]line Товар: 2710194210 [08:45:43]line ДТ-К-5 [08:45:43]line 5.490 * 72.90 [08:45:43]line = 400.22 [08:45:43]line НДС 12% НСП 1% [08:45:43]line > о реализуемом товаре [08:45:43]line ОКРУГЛЕНИЕ: -0.22 [08:45:43]line ИТОГО: 400.00 [08:45:43]line Внесено: 400.00 [08:45:43]line СДАЧА: 0.00 [08:45:43]line НСП 1% : 3.54 [08:45:43]line НДС 12% : 42.50 [08:45:43]line Наличными: 400.00 [08:45:43]line Безнал.: 0.00 [08:45:43]line Место: АЗС № 65 "Партнер Нефть" [08:45:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:45:43]line СНО: Общий режим [08:45:43]line Чек 17 23.06.2024 08:46 [08:45:43]line Смена: 392 ФФД: 1.0 [08:45:43]line ЗНМ: 0300000198 [08:45:43]line РНМ: 0000000000092771 [08:45:43]line Версия ККМ: 001 [08:45:43]line ФМ: 0000000000875083 [08:45:43]line ФД: 112416 [08:45:43]line ФПД: 41173519742528 [08:45:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T084633&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112416&fm=41173519742528&tin=02508201610067®Number=0000000000092771&sum=40000 [08:45:44]OFD Sender: Processing packet 112416 [packets to send 38, broken 37] [08:45:44]ProducePacketName [08:45:44]name=ofd_packets/00112416 [08:45:44]OFD Sender: To server: pG, [08:45:44]CommunicateWithHost lk.salyk.kg:30040 [08:45:44]ConnectInit lk.salyk.kg [08:45:44]written 0, free lines is 4095 [08:45:44]Connected sock=10 [08:45:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 80 56 04 01 20 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 11 00 00 00 F4 03 04 00 E9 E0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B7 01 00 35 04 06 00 25 72 75 04 B6 40 C0 D0 3D C0 99 D0 15 D7 [08:45:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 90 C1 47 00 DA 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B7 01 00 F4 03 04 00 DB 77 77 66 B6 04 01 00 00 FA 3B D3 A4 BD 63 B6 5F [08:45:44]CommunicateWithHost err = 0 [08:45:44]CheckOFDResponse [08:45:44]1017 (14) - 77093643461234 [08:45:44]1041 (16) - 0000000000875083 [08:45:44]1040 (4) - 112416 [08:45:44]1012 (4) - 23.06.2024 01:18 [08:45:44]1206 (1) - 0 [08:45:44]OFD Sender: Remove packet 112416 [08:45:44]ProducePacketName [08:45:44]name=ofd_packets/00112416 [08:45:44]NVStorageDeleteData [08:45:44]Write to MH i2c: 01 00 00 F0 69 59 [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 07 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 07 00 F0 69 00 00 00 00 00 C6 0C 32 [08:45:44]RasterBufferAndPrint [08:45:44]line [08:45:44]line [08:45:44]line [08:45:44]line [08:45:44]line [08:45:44]written 0, free lines is 3279 [08:45:44]MH_Cut [08:45:44]Write to MH i2c: D1 01 00 F7 69 01 32 [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: D1 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: D1 01 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: D1 01 00 F7 69 00 31 [08:45:44]Write to MH i2c: 01 00 00 F8 69 61 [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]OFD Sender: No OFD packet to send [08:45:45]*** Cut start [08:45:45]*** Partial cut [08:45:45]*** CUTSNS_PIN = 1 [08:45:45]*** CUTSNS_PIN = 0 [08:45:45]*** Brake cut motor [08:45:45]Read from MH i2c: 01 [08:45:45]MH_I2C_Read... [08:45:45]*** Stop cut motor [08:45:45]*** Cut end [08:45:45]Read from MH i2c: 01 07 00 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: 01 07 00 F8 69 00 00 00 00 00 FF 0F 76 [08:45:45]process_action close_receipt done [08:45:45]requested_data is exist [08:45:45]produce_requested_data [08:45:45]requested_item fm.sn is exist - process it [08:45:45]wFMCommunicate request_size=4 [08:45:45]MH_SAM_APDU [08:45:45]CAPDU: 80 11 00 00 [08:45:45]Write to MH i2c: E2 08 00 F9 69 80 11 00 00 00 00 00 00 DC [08:45:45]Write i2c OK [08:45:45]MH_I2C_Read... [08:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:45]Read from MH i2c: E2 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: E2 17 00 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: E2 17 00 F9 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2E [08:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:45:45]wFMCommunicate OK [08:45:45]requested_item fd.num is exist - process it [08:45:45]SAM_PROTO_GetFieldsCounters [08:45:45]wFMCommunicate request_size=4 [08:45:45]MH_SAM_APDU [08:45:45]CAPDU: 80 13 00 00 [08:45:45]Write to MH i2c: E2 08 00 FA 69 80 13 00 00 00 00 00 00 DF [08:45:45]Write i2c OK [08:45:45]MH_I2C_Read... [08:45:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:46]Read from MH i2c: E2 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 62 00 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 62 00 FA 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 20 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [08:45:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 20 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:46]wFMCommunicate OK [08:45:46]SAM_PROTO_GetFieldsCounters done [08:45:46]requested_item shift.num is exist - process it [08:45:46]requested_item shift.opened is exist - process it [08:45:46]req_shift_opened [08:45:46]FM_GetShiftState [08:45:46]SAM_PROTO_GetShiftState [08:45:46]wFMCommunicate request_size=4 [08:45:46]MH_SAM_APDU [08:45:46]CAPDU: 80 13 01 00 [08:45:46]Write to MH i2c: E2 08 00 FB 69 80 13 01 00 00 00 00 00 E1 [08:45:46]Write i2c OK [08:45:46]MH_I2C_Read... [08:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:46]Read from MH i2c: E2 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 0E 00 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 0E 00 FB 69 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FF [08:45:46]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [08:45:46]wFMCommunicate OK [08:45:46]SAM_PROTO_GetShiftState done [08:45:46]FM_GetShiftState done [08:45:46]req_shift_opened done [08:45:46]requested_item shift.open_date is exist - process it [08:45:46]req_shift_open_date [08:45:46]req_shift_open_date done [08:45:46]produce_requested_data done [08:45:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112416,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [08:45:46]process_action_free close_receipt [08:45:46]json_value_free [08:45:46]json_value_free done [08:45:46]process_json_proto returns [08:45:46]Send response to host [08:45:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112416,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [08:45:46]free response buf [08:45:46]execute_script done [08:45:46]execute_script returns [08:45:46]free content buf [08:45:46]Sock 7.Close socket [08:45:46]Sock 7.Thread stoped [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:28]accept exits with 9 [09:00:28]New connection [09:00:28]New thread 3066813796 created [09:00:28]Thread 3066957156 joined [09:00:28]Waiting for new connection... [09:00:28] Sock 9.Parse request [09:00:28]Sock 9.Check first char [09:00:28]Sock 9.First char is OK [09:00:28]request: POST /json_proto HTTP/1.0 [09:00:28]Method: POST [09:00:28]URL: /json_proto [09:00:28]Method is POST - this is cgi request [09:00:28]url: /json_proto [09:00:28]query_string will be loaded in cgi processing [09:00:28]execute_cgi json_proto POST (null) [09:00:28]execute_cgi path=json_proto method=POST [09:00:28]POST find Content-Length [09:00:28]Host: 172.17.59.68:8080 [09:00:28]Content-Length: 805 [09:00:28]Content-Type: application/json [09:00:28] [09:00:28]POST finish read [09:00:28]Found Content-Length = 805 [09:00:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:28]execute_script... [09:00:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:28]POST & json_proto [09:00:28]process_json_proto [09:00:28]json parsed OK: [09:00:28]protocol is kg_v1.0 [09:00:28]action value=close_receipt [09:00:28]process_action close_receipt [09:00:28]cmd_close_receipt [09:00:28]MH_GetDate [09:00:28]Write to MH i2c: F0 00 00 FC 69 54 [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: F0 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: F0 09 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: F0 09 00 FC 69 00 5F E4 77 66 BC EC 60 65 EA [09:00:28]GetLastDocTimeStamp 1719132393 [09:00:28]current date 1719133279 [09:00:28]FM_GetShiftState [09:00:28]SAM_PROTO_GetShiftState [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 13 01 00 [09:00:28]Write to MH i2c: E2 08 00 FD 69 80 13 01 00 00 00 00 00 E3 [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 0E 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 0E 00 FD 69 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 01 [09:00:28]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:00:28]wFMCommunicate OK [09:00:28]SAM_PROTO_GetShiftState done [09:00:28]FM_GetShiftState done [09:00:28]opened in 1719106490 [09:00:28]opened+sec_in_day 1719192890 [09:00:28]quantity*price = 100018 [09:00:28]sum+1 = 100020 [09:00:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 18 23.06.2024 09:01 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112417 ФПД: 22169327703542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090119&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112417&fm=22169327703542&tin=02508201610067®Number=0000000000092771&sum=100019 [09:00:29]StoreToDocumentArchive [09:00:29]shift 392 fd 112417 [09:00:29]save to /storage/0392/doc_00112417 [09:00:29]save last doc name /storage/0392/doc_00112417 to /storage/kkm_last_doc_name [09:00:29]save OK [09:00:29]Clear old archive folders... [09:00:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:00:29]tlvbuf is B6F56B00 [09:00:29]SAM_PROTO_ClearQueue [09:00:29]wFMCommunicate request_size=4 [09:00:29]MH_SAM_APDU [09:00:29]CAPDU: 80 09 00 00 [09:00:29]Write to MH i2c: E2 08 00 0A 6A 80 09 00 00 00 00 00 00 E6 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 0A 6A 00 90 00 E8 [09:00:29]RAPDU: 90 00 [09:00:29]wFMCommunicate OK [09:00:29]SAM_PROTO_ClearQueue done [09:00:29]KKMCreateOFDPacket [09:00:29]OFDProtocolAddRootSTLVToBuf [09:00:29]FM_MakeSignedData [09:00:29]FM_MakeSignedData [09:00:29]SAM_PROTO_SignData [09:00:29]wFMCommunicate request_size=4 [09:00:29]MH_SAM_APDU [09:00:29]CAPDU: 80 0D 01 02 [09:00:29]Write to MH i2c: E2 08 00 0B 6A 80 0D 01 02 00 00 00 00 EE [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 0B 6A 00 90 00 E9 [09:00:29]RAPDU: 90 00 [09:00:29]wFMCommunicate OK [09:00:29]wFMCommunicate request_size=255 [09:00:29]MH_SAM_APDU [09:00:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5F E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B7 01 00 35 04 06 00 14 29 B2 E7 [09:00:29]Write to MH i2c: E2 02 01 0C 6A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5F E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B7 01 00 35 04 06 00 14 29 B2 E7 00 00 E4 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:30]Read from MH i2c: E2 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 03 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 03 00 0C 6A 00 90 00 EA [09:00:30]RAPDU: 90 00 [09:00:30]wFMCommunicate OK [09:00:30]wFMCommunicate request_size=7 [09:00:30]MH_SAM_APDU [09:00:30]CAPDU: 80 0D 02 02 02 15 F6 [09:00:30]Write to MH i2c: E2 0A 00 0D 6A 80 0D 02 02 02 00 15 F6 00 00 00 [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:30]Read from MH i2c: E2 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 03 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 03 00 0D 6A 00 90 00 EB [09:00:30]RAPDU: 90 00 [09:00:30]wFMCommunicate OK [09:00:30]wFMCommunicate request_size=4 [09:00:30]MH_SAM_APDU [09:00:30]CAPDU: 80 0D 03 02 [09:00:30]Write to MH i2c: E2 08 00 0E 6A 80 0D 03 02 00 00 00 00 F3 [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:30]Read from MH i2c: E2 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 0B 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 0B 00 0E 6A 00 A7 A0 7E 62 5D 07 5A 8B 90 00 64 [09:00:30]RAPDU: A7 A0 7E 62 5D 07 5A 8B 90 00 [09:00:30]wFMCommunicate OK [09:00:30]SAM_PROTO_SignData done [09:00:30]FM_MakeSignedData done [09:00:30]CreateOFDProtocolMessage [09:00:30]wFMCommunicate request_size=4 [09:00:30]MH_SAM_APDU [09:00:30]CAPDU: 80 11 00 00 [09:00:30]Write to MH i2c: E2 08 00 0F 6A 80 11 00 00 00 00 00 00 F3 [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:30]Read from MH i2c: E2 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 17 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 17 00 0F 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [09:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:00:30]wFMCommunicate OK [09:00:30]CreateOFDProtocolMessage done [09:00:30]OFDSenderStorePacket 112417 [09:00:30]StoreOFDPacket docnum=112417 [09:00:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FA E3 04 01 5E DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5F E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B7 01 00 35 04 06 00 14 29 B2 E7 15 F6 A7 A0 7E 62 5D 07 5A 8B [09:00:30]CheckFolder [09:00:30]dirname=/storage/ofd_packets [09:00:30]CheckFolder done [09:00:30]ProducePacketName [09:00:30]name=ofd_packets/00112417 [09:00:30]NVStorageSaveData ofd_packets/00112417 [09:00:30]File name is /storage/ofd_packets/00112417 [09:00:30]Write 298 bytes [09:00:30]NVStorageSaveData done [09:00:30]OFDSenderStorePacket done [09:00:30]KKMCreateOFDPacket done [09:00:30]NVStorageSaveData kkm_last_timestamp [09:00:30]File name is /storage/kkm_last_timestamp [09:00:30]Write 4 bytes [09:00:30]NVStorageSaveData done [09:00:30]ExternCall_PrintAddStr [09:00:30]wPrintStart [09:00:30]Write to MH i2c: 01 00 00 10 6A 7A [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: 01 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: 01 07 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: 01 07 00 10 6A 00 00 00 00 00 FF 0F 8F [09:00:30]RasterBufferAndPrint [09:00:30]line Счет N : (1)321096 [09:00:30]line ИНН: 02508201610067 [09:00:30]line Контрольно-Кассовый Чек [09:00:30]line ПРОДАЖА [09:00:30]line ТРК (МРК, ГНК) : 22 [09:00:30]line Товар: 2710194210 [09:00:30]line ДТ-К-5 [09:00:30]line 13.720 * 72.90 [09:00:30]line = 1000.19 [09:00:30]line НДС 12% НСП 1% [09:00:30]line > о реализуемом товаре [09:00:30]line ИТОГО: 1000.19 [09:00:30]line НСП 1% : 8.85 [09:00:30]line НДС 12% : 106.21 [09:00:30]line Наличными: 0.00 [09:00:30]line Безнал.: 1000.19 [09:00:30]line Место: АЗС № 65 "Партнер Нефть" [09:00:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:00:30]line СНО: Общий режим [09:00:30]line Чек 18 23.06.2024 09:01 [09:00:30]line Смена: 392 ФФД: 1.0 [09:00:30]line ЗНМ: 0300000198 [09:00:30]line РНМ: 0000000000092771 [09:00:30]line Версия ККМ: 001 [09:00:30]line Платежная система: О! деньги [09:00:30]line ФМ: 0000000000875083 [09:00:30]line ФД: 112417 [09:00:30]line ФПД: 22169327703542 [09:00:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090119&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112417&fm=22169327703542&tin=02508201610067®Number=0000000000092771&sum=100019 [09:00:30]OFD Sender: Processing packet 112417 [packets to send 38, broken 37] [09:00:30]ProducePacketName [09:00:30]name=ofd_packets/00112417 [09:00:30]OFD Sender: To server: pG, [09:00:30]CommunicateWithHost lk.salyk.kg:30040 [09:00:30]ConnectInit lk.salyk.kg [09:00:30]written 0, free lines is 4095 [09:00:30]Connected sock=5 [09:00:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FA E3 04 01 5E DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5F E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B7 01 00 35 04 06 00 14 29 B2 E7 15 F6 A7 A0 7E 62 5D 07 5A 8B [09:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B9 3F 47 00 28 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B7 01 00 F4 03 04 00 51 7B 77 66 B6 04 01 00 00 AB FF 43 54 6B 7D EF 5B [09:00:30]CommunicateWithHost err = 0 [09:00:30]CheckOFDResponse [09:00:30]1017 (14) - 77093643461234 [09:00:30]1041 (16) - 0000000000875083 [09:00:30]1040 (4) - 112417 [09:00:30]1012 (4) - 23.06.2024 01:33 [09:00:30]1206 (1) - 0 [09:00:30]OFD Sender: Remove packet 112417 [09:00:30]ProducePacketName [09:00:30]name=ofd_packets/00112417 [09:00:30]NVStorageDeleteData [09:00:31]Write to MH i2c: 01 00 00 3A 6A A4 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: 01 [09:00:31]MH_I2C_Read... [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 3A 6A 00 00 00 00 00 D9 0C 90 [09:00:31]RasterBufferAndPrint [09:00:31]line [09:00:31]line [09:00:31]line [09:00:31]line [09:00:31]line [09:00:31]written 0, free lines is 3297 [09:00:31]MH_Cut [09:00:31]Write to MH i2c: D1 01 00 41 6A 01 7D [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: D1 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: D1 01 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: D1 01 00 41 6A 00 7C [09:00:31]Write to MH i2c: 01 00 00 42 6A AC [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]OFD Sender: No OFD packet to send [09:00:31]*** Cut start [09:00:31]*** Partial cut [09:00:31]*** CUTSNS_PIN = 1 [09:00:31]*** CUTSNS_PIN = 0 [09:00:32]*** Brake cut motor [09:00:32]Read from MH i2c: 01 [09:00:32]MH_I2C_Read... [09:00:32]*** Stop cut motor [09:00:32]*** Cut end [09:00:32]Read from MH i2c: 01 07 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 07 00 42 6A 00 00 00 00 00 FF 0F C1 [09:00:32]process_action close_receipt done [09:00:32]requested_data is exist [09:00:32]produce_requested_data [09:00:32]requested_item fm.sn is exist - process it [09:00:32]wFMCommunicate request_size=4 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 11 00 00 [09:00:32]Write to MH i2c: E2 08 00 43 6A 80 11 00 00 00 00 00 00 27 [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 17 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 17 00 43 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [09:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:00:32]wFMCommunicate OK [09:00:32]requested_item fd.num is exist - process it [09:00:32]SAM_PROTO_GetFieldsCounters [09:00:32]wFMCommunicate request_size=4 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 13 00 00 [09:00:32]Write to MH i2c: E2 08 00 44 6A 80 13 00 00 00 00 00 00 2A [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 62 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 62 00 44 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 21 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [09:00:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 21 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:32]wFMCommunicate OK [09:00:32]SAM_PROTO_GetFieldsCounters done [09:00:32]requested_item shift.num is exist - process it [09:00:32]requested_item shift.opened is exist - process it [09:00:32]req_shift_opened [09:00:32]FM_GetShiftState [09:00:32]SAM_PROTO_GetShiftState [09:00:32]wFMCommunicate request_size=4 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 13 01 00 [09:00:32]Write to MH i2c: E2 08 00 45 6A 80 13 01 00 00 00 00 00 2C [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 0E 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 0E 00 45 6A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4A [09:00:32]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:00:32]wFMCommunicate OK [09:00:32]SAM_PROTO_GetShiftState done [09:00:32]FM_GetShiftState done [09:00:32]req_shift_opened done [09:00:32]requested_item shift.open_date is exist - process it [09:00:32]req_shift_open_date [09:00:32]req_shift_open_date done [09:00:32]produce_requested_data done [09:00:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112417,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:00:32]process_action_free close_receipt [09:00:32]json_value_free [09:00:32]json_value_free done [09:00:32]process_json_proto returns [09:00:32]Send response to host [09:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112417,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:00:32]free response buf [09:00:32]execute_script done [09:00:32]execute_script returns [09:00:32]free content buf [09:00:32]Sock 9.Close socket [09:00:32]Sock 9.Thread stoped [09:00:32]accept exits with 7 [09:00:32]New connection [09:00:32]New thread 3066957156 created [09:00:32]Thread 3066813796 joined [09:00:32]Waiting for new connection... [09:00:32] Sock 7.Parse request [09:00:32]Sock 7.Check first char [09:00:32]Sock 7.First char is OK [09:00:32]request: POST /json_proto HTTP/1.0 [09:00:32]Method: POST [09:00:32]URL: /json_proto [09:00:32]Method is POST - this is cgi request [09:00:32]url: /json_proto [09:00:32]query_string will be loaded in cgi processing [09:00:32]execute_cgi json_proto POST (null) [09:00:32]execute_cgi path=json_proto method=POST [09:00:32]POST find Content-Length [09:00:32]Host: 172.17.59.68:8080 [09:00:32]Content-Length: 677 [09:00:32]Content-Type: application/json [09:00:32] [09:00:32]POST finish read [09:00:32]Found Content-Length = 677 [09:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.410, "sum" : 226.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 226.00, "total" : 226.00, "payments": [ { "type": 0, "sum" : 226.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:32]execute_script... [09:00: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)321097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.410, "sum" : 226.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 226.00, "total" : 226.00, "payments": [ { "type": 0, "sum" : 226.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:32]POST & json_proto [09:00:32]process_json_proto [09:00:32]json parsed OK: [09:00:32]protocol is kg_v1.0 [09:00:32]action value=close_receipt [09:00:32]process_action close_receipt [09:00:32]cmd_close_receipt [09:00:32]MH_GetDate [09:00:32]Write to MH i2c: F0 00 00 46 6A 9F [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: F0 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: F0 09 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: F0 09 00 46 6A 00 64 E4 77 66 BC EC 60 65 3A [09:00:32]GetLastDocTimeStamp 1719133279 [09:00:32]current date 1719133284 [09:00:32]FM_GetShiftState [09:00:32]SAM_PROTO_GetShiftState [09:00:32]wFMCommunicate request_size=4 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 13 01 00 [09:00:32]Write to MH i2c: E2 08 00 47 6A 80 13 01 00 00 00 00 00 2E [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:33]Read from MH i2c: E2 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 0E 00 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 0E 00 47 6A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4C [09:00:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:00:33]wFMCommunicate OK [09:00:33]SAM_PROTO_GetShiftState done [09:00:33]FM_GetShiftState done [09:00:33]opened in 1719106490 [09:00:33]opened+sec_in_day 1719192890 [09:00:33]quantity*price = 22642 [09:00:33]sum+1 = 22643 [09:00:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 226.00 Внесено: 226.00 СДАЧА: 0.00 НСП 1% : 2.00 НДС 12% : 24.04 Наличными: 226.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 19 23.06.2024 09:01 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112418 ФПД: 113873841139356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112418&fm=113873841139356&tin=02508201610067®Number=0000000000092771&sum=22600 [09:00:34]StoreToDocumentArchive [09:00:34]shift 392 fd 112418 [09:00:34]save to /storage/0392/doc_00112418 [09:00:34]save last doc name /storage/0392/doc_00112418 to /storage/kkm_last_doc_name [09:00:34]save OK [09:00:34]Clear old archive folders... [09:00:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:34]tlvbuf is 0131F030 [09:00:34]SAM_PROTO_ClearQueue [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 09 00 00 [09:00:34]Write to MH i2c: E2 08 00 54 6A 80 09 00 00 00 00 00 00 30 [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 54 6A 00 90 00 32 [09:00:34]RAPDU: 90 00 [09:00:34]wFMCommunicate OK [09:00:34]SAM_PROTO_ClearQueue done [09:00:34]KKMCreateOFDPacket [09:00:34]OFDProtocolAddRootSTLVToBuf [09:00:34]FM_MakeSignedData [09:00:34]FM_MakeSignedData [09:00:34]SAM_PROTO_SignData [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 0D 01 02 [09:00:34]Write to MH i2c: E2 08 00 55 6A 80 0D 01 02 00 00 00 00 38 [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 55 6A 00 90 00 33 [09:00:34]RAPDU: 90 00 [09:00:34]wFMCommunicate OK [09:00:34]wFMCommunicate request_size=255 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 64 E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B7 01 00 35 04 06 00 67 [09:00:34]Write to MH i2c: E2 02 01 56 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 64 E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B7 01 00 35 04 06 00 67 00 00 EB [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 56 6A 00 90 00 34 [09:00:34]RAPDU: 90 00 [09:00:34]wFMCommunicate OK [09:00:34]wFMCommunicate request_size=10 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 0D 02 02 05 91 51 D9 AE 9C [09:00:34]Write to MH i2c: E2 0D 00 57 6A 80 0D 02 02 05 00 91 51 D9 AE 9C 00 00 4A [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:34]E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 57 6A 00 90 00 35 [09:00:34]RAPDU: 90 00 [09:00:34]wFMCommunicate OK [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 0D 03 02 [09:00:34]Write to MH i2c: E2 08 00 58 6A 80 0D 03 02 00 00 00 00 3D [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 0B 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 0B 00 58 6A 00 A4 91 50 51 9B EF D0 05 90 00 73 [09:00:34]RAPDU: A4 91 50 51 9B EF D0 05 90 00 [09:00:34]wFMCommunicate OK [09:00:34]SAM_PROTO_SignData done [09:00:34]FM_MakeSignedData done [09:00:34]CreateOFDProtocolMessage [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 11 00 00 [09:00:34]Write to MH i2c: E2 08 00 59 6A 80 11 00 00 00 00 00 00 3D [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 17 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 17 00 59 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8F [09:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:00:34]wFMCommunicate OK [09:00:34]CreateOFDProtocolMessage done [09:00:34]OFDSenderStorePacket 112418 [09:00:34]StoreOFDPacket docnum=112418 [09:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 02 9C 07 01 0E 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 35 FF 03 08 00 03 52 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 64 E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B7 01 00 35 04 06 00 67 91 51 D9 AE 9C A4 91 50 51 9B EF D0 05 [09:00:34]CheckFolder [09:00:34]dirname=/storage/ofd_packets [09:00:34]CheckFolder done [09:00:34]ProducePacketName [09:00:34]name=ofd_packets/00112418 [09:00:34]NVStorageSaveData ofd_packets/00112418 [09:00:34]File name is /storage/ofd_packets/00112418 [09:00:34]Write 301 bytes [09:00:34]NVStorageSaveData done [09:00:34]OFDSenderStorePacket done [09:00:34]KKMCreateOFDPacket done [09:00:34]NVStorageSaveData kkm_last_timestamp [09:00:34]File name is /storage/kkm_last_timestamp [09:00:34]Write 4 bytes [09:00:34]NVStorageSaveData done [09:00:34]ExternCall_PrintAddStr [09:00:34]wPrintStart [09:00:34]Write to MH i2c: 01 00 00 5A 6A C4 [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: 01 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: 01 07 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: 01 07 00 5A 6A 00 00 00 00 00 FF 0F D9 [09:00:34]RasterBufferAndPrint [09:00:34]line Счет N : (1)321097 [09:00:34]line ИНН: 02508201610067 [09:00:34]line Контрольно-Кассовый Чек [09:00:34]line ПРОДАЖА [09:00:34]line ТРК (МРК, ГНК) : 11 [09:00:35]line Товар: 2710124130 [09:00:35]line Аи-92-К-5 [09:00:35]line 3.410 * 66.40 [09:00:35]line = 226.42 [09:00:35]line НДС 12% НСП 1% [09:00:35]line > о реализуемом товаре [09:00:35]line ОКРУГЛЕНИЕ: -0.42 [09:00:35]line ИТОГО: 226.00 [09:00:35]line Внесено: 226.00 [09:00:35]line СДАЧА: 0.00 [09:00:35]line НСП 1% : 2.00 [09:00:35]line НДС 12% : 24.04 [09:00:35]line Наличными: 226.00 [09:00:35]line Безнал.: 0.00 [09:00:35]line Место: АЗС № 65 "Партнер Нефть" [09:00:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:00:35]line СНО: Общий режим [09:00:35]line Чек 19 23.06.2024 09:01 [09:00:35]line Смена: 392 ФФД: 1.0 [09:00:35]line ЗНМ: 0300000198 [09:00:35]line РНМ: 0000000000092771 [09:00:35]line Версия ККМ: 001 [09:00:35]line ФМ: 0000000000875083 [09:00:35]line ФД: 112418 [09:00:35]line ФПД: 113873841139356 [09:00:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112418&fm=113873841139356&tin=02508201610067®Number=0000000000092771&sum=22600 [09:00:35]OFD Sender: Processing packet 112418 [packets to send 38, broken 37] [09:00:35]ProducePacketName [09:00:35]name=ofd_packets/00112418 [09:00:35]OFD Sender: To server: pG, [09:00:35]CommunicateWithHost lk.salyk.kg:30040 [09:00:35]ConnectInit lk.salyk.kg [09:00:35]written 0, free lines is 4095 [09:00:35]Connected sock=9 [09:00:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 02 9C 07 01 0E 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 35 FF 03 08 00 03 52 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 64 E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B7 01 00 35 04 06 00 67 91 51 D9 AE 9C A4 91 50 51 9B EF D0 05 [09:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 8B 47 00 C1 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B7 01 00 F4 03 04 00 56 7B 77 66 B6 04 01 00 00 11 91 2F 07 9A 82 BF 80 [09:00:35]CommunicateWithHost err = 0 [09:00:35]CheckOFDResponse [09:00:35]1017 (14) - 77093643461234 [09:00:35]1041 (16) - 0000000000875083 [09:00:35]1040 (4) - 112418 [09:00:35]1012 (4) - 23.06.2024 01:33 [09:00:35]1206 (1) - 0 [09:00:35]OFD Sender: Remove packet 112418 [09:00:35]ProducePacketName [09:00:35]name=ofd_packets/00112418 [09:00:35]NVStorageDeleteData [09:00:35]Write to MH i2c: 01 00 00 85 6A EF [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: 01 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: 01 07 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: 01 07 00 85 6A 00 00 00 00 00 E4 0C E6 [09:00:35]RasterBufferAndPrint [09:00:35]line [09:00:35]line [09:00:35]line [09:00:35]line [09:00:35]line [09:00:35]written 0, free lines is 3309 [09:00:35]MH_Cut [09:00:35]Write to MH i2c: D1 01 00 8C 6A 01 C8 [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: D1 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: D1 01 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: D1 01 00 8C 6A 00 C7 [09:00:35]Write to MH i2c: 01 00 00 8D 6A F7 [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:36]OFD Sender: No OFD packet to send [09:00:36]*** Cut start [09:00:36]*** Partial cut [09:00:36]*** CUTSNS_PIN = 1 [09:00:36]*** CUTSNS_PIN = 0 [09:00:36]*** Brake cut motor [09:00:37]Read from MH i2c: 01 [09:00:37]MH_I2C_Read... [09:00:37]*** Stop cut motor [09:00:37]*** Cut end [09:00:37]Read from MH i2c: 01 07 00 [09:00:37]MH_I2C_Read... [09:00:37]Read from MH i2c: 01 07 00 8D 6A 00 00 00 00 00 FF 0F 0C [09:00:37]process_action close_receipt done [09:00:37]requested_data is exist [09:00:37]produce_requested_data [09:00:37]requested_item fm.sn is exist - process it [09:00:37]wFMCommunicate request_size=4 [09:00:37]MH_SAM_APDU [09:00:37]CAPDU: 80 11 00 00 [09:00:37]Write to MH i2c: E2 08 00 8E 6A 80 11 00 00 00 00 00 00 72 [09:00:37]Write i2c OK [09:00:37]MH_I2C_Read... [09:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:37]Read from MH i2c: E2 [09:00:37]MH_I2C_Read... [09:00:37]Read from MH i2c: E2 17 00 [09:00:37]MH_I2C_Read... [09:00:37]Read from MH i2c: E2 17 00 8E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C4 [09:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:00:37]wFMCommunicate OK [09:00:37]requested_item fd.num is exist - process it [09:00:37]SAM_PROTO_GetFieldsCounters [09:00:37]wFMCommunicate request_size=4 [09:00:37]MH_SAM_APDU [09:00:37]CAPDU: 80 13 00 00 [09:00:37]Write to MH i2c: E2 08 00 8F 6A 80 13 00 00 00 00 00 00 75 [09:00:37]Write i2c OK [09:00:37]MH_I2C_Read... [09:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:37]Read from MH i2c: E2 [09:00:37]MH_I2C_Read... [09:00:37]Read from MH i2c: E2 62 00 [09:00:37]MH_I2C_Read... [09:00:37]Read from MH i2c: E2 62 00 8F 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 22 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [09:00:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 22 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:37]wFMCommunicate OK [09:00:37]SAM_PROTO_GetFieldsCounters done [09:00:37]requested_item shift.num is exist - process it [09:00:37]requested_item shift.opened is exist - process it [09:00:37]req_shift_opened [09:00:37]FM_GetShiftState [09:00:37]SAM_PROTO_GetShiftState [09:00:37]wFMCommunicate request_size=4 [09:00:37]MH_SAM_APDU [09:00:37]CAPDU: 80 13 01 00 [09:00:37]Write to MH i2c: E2 08 00 90 6A 80 13 01 00 00 00 00 00 77 [09:00:37]Write i2c OK [09:00:37]MH_I2C_Read... [09:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:37]Read from MH i2c: E2 [09:00:37]MH_I2C_Read... [09:00:37]Read from MH i2c: E2 0E 00 [09:00:37]MH_I2C_Read... [09:00:37]Read from MH i2c: E2 0E 00 90 6A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 95 [09:00:37]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:00:37]wFMCommunicate OK [09:00:37]SAM_PROTO_GetShiftState done [09:00:37]FM_GetShiftState done [09:00:37]req_shift_opened done [09:00:37]requested_item shift.open_date is exist - process it [09:00:37]req_shift_open_date [09:00:37]req_shift_open_date done [09:00:37]produce_requested_data done [09:00:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112418,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:00:37]process_action_free close_receipt [09:00:37]json_value_free [09:00:37]json_value_free done [09:00:37]process_json_proto returns [09:00:37]Send response to host [09:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112418,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:00:37]free response buf [09:00:37]execute_script done [09:00:37]execute_script returns [09:00:37]free content buf [09:00:37]Sock 7.Close socket [09:00:37]Sock 7.Thread stoped [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:00:56]accept exits with 5 [09:00:56]New connection [09:00:56]New thread 3066813796 created [09:00:56]Thread 3066957156 joined [09:00:56]Waiting for new connection... [09:00:56] Sock 5.Parse request [09:00:56]Sock 5.Check first char [09:00:56]Sock 5.First char is OK [09:00:56]request: POST /json_proto HTTP/1.0 [09:00:56]Method: POST [09:00:56]URL: /json_proto [09:00:56]Method is POST - this is cgi request [09:00:56]url: /json_proto [09:00:56]query_string will be loaded in cgi processing [09:00:56]execute_cgi json_proto POST (null) [09:00:56]execute_cgi path=json_proto method=POST [09:00:56]POST find Content-Length [09:00:56]Host: 172.17.59.68:8080 [09:00:56]Content-Length: 674 [09:00:56]Content-Type: application/json [09:00:56] [09:00:56]POST finish read [09:00:56]Found Content-Length = 674 [09:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:00:56]execute_script... [09:00:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:00:56]POST & json_proto [09:00:56]process_json_proto [09:00:56]json parsed OK: [09:00:56]protocol is kg_v1.0 [09:00:56]action value=close_receipt [09:00:56]process_action close_receipt [09:00:56]cmd_close_receipt [09:00:56]MH_GetDate [09:00:56]Write to MH i2c: F0 00 00 91 6A EA [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: F0 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: F0 09 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: F0 09 00 91 6A 00 7B E4 77 66 BC EC 60 65 9C [09:00:56]GetLastDocTimeStamp 1719133284 [09:00:56]current date 1719133307 [09:00:56]FM_GetShiftState [09:00:56]SAM_PROTO_GetShiftState [09:00:56]wFMCommunicate request_size=4 [09:00:56]MH_SAM_APDU [09:00:56]CAPDU: 80 13 01 00 [09:00:56]Write to MH i2c: E2 08 00 92 6A 80 13 01 00 00 00 00 00 79 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:56]Read from MH i2c: E2 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: E2 0E 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: E2 0E 00 92 6A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 97 [09:00:56]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:00:56]wFMCommunicate OK [09:00:56]SAM_PROTO_GetShiftState done [09:00:56]FM_GetShiftState done [09:00:56]opened in 1719106490 [09:00:56]opened+sec_in_day 1719192890 [09:00:56]quantity*price = 50009 [09:00:56]sum+1 = 50010 [09:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 20 23.06.2024 09:01 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112419 ФПД: 5372264714013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090147&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112419&fm=5372264714013&tin=02508201610067®Number=0000000000092771&sum=50000 [09:00:57]StoreToDocumentArchive [09:00:57]shift 392 fd 112419 [09:00:57]save to /storage/0392/doc_00112419 [09:00:57]save last doc name /storage/0392/doc_00112419 to /storage/kkm_last_doc_name [09:00:57]save OK [09:00:57]Clear old archive folders... [09:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:00:57]tlvbuf is 0126A480 [09:00:57]SAM_PROTO_ClearQueue [09:00:57]wFMCommunicate request_size=4 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 09 00 00 [09:00:57]Write to MH i2c: E2 08 00 9F 6A 80 09 00 00 00 00 00 00 7B [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 03 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 03 00 9F 6A 00 90 00 7D [09:00:57]RAPDU: 90 00 [09:00:57]wFMCommunicate OK [09:00:57]SAM_PROTO_ClearQueue done [09:00:57]KKMCreateOFDPacket [09:00:57]OFDProtocolAddRootSTLVToBuf [09:00:57]FM_MakeSignedData [09:00:57]FM_MakeSignedData [09:00:57]SAM_PROTO_SignData [09:00:57]wFMCommunicate request_size=4 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 0D 01 02 [09:00:57]Write to MH i2c: E2 08 00 A0 6A 80 0D 01 02 00 00 00 00 83 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 03 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 03 00 A0 6A 00 90 00 7E [09:00:57]RAPDU: 90 00 [09:00:57]wFMCommunicate OK [09:00:57]wFMCommunicate request_size=255 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 14 00 00 00 F4 03 04 00 7B E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B7 01 00 35 04 06 00 04 E2 D3 EE [09:00:57]Write to MH i2c: E2 02 01 A1 6A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 14 00 00 00 F4 03 04 00 7B E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B7 01 00 35 04 06 00 04 E2 D3 EE 00 00 88 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 03 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 03 00 A1 6A 00 90 00 7F [09:00:57]RAPDU: 90 00 [09:00:57]wFMCommunicate OK [09:00:57]wFMCommunicate request_size=7 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 0D 02 02 02 0F 1D [09:00:57]Write to MH i2c: E2 0A 00 A2 6A 80 0D 02 02 02 00 0F 1D 00 00 B6 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 03 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 03 00 A2 6A 00 90 00 80 [09:00:57]RAPDU: 90 00 [09:00:57]wFMCommunicate OK [09:00:57]wFMCommunicate request_size=4 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 0D 03 02 [09:00:57]Write to MH i2c: E2 08 00 A3 6A 80 0D 03 02 00 00 00 00 88 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 0B 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 0B 00 A3 6A 00 02 A1 E3 7E B2 09 C9 21 90 00 32 [09:00:57]RAPDU: 02 A1 E3 7E B2 09 C9 21 90 00 [09:00:57]wFMCommunicate OK [09:00:57]SAM_PROTO_SignData done [09:00:57]FM_MakeSignedData done [09:00:57]CreateOFDProtocolMessage [09:00:57]wFMCommunicate request_size=4 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 11 00 00 [09:00:57]Write to MH i2c: E2 08 00 A4 6A 80 11 00 00 00 00 00 00 88 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 17 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 17 00 A4 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [09:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:00:57]wFMCommunicate OK [09:00:57]CreateOFDProtocolMessage done [09:00:57]OFDSenderStorePacket 112419 [09:00:57]StoreOFDPacket docnum=112419 [09:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B0 77 04 01 59 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 14 00 00 00 F4 03 04 00 7B E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B7 01 00 35 04 06 00 04 E2 D3 EE 0F 1D 02 A1 E3 7E B2 09 C9 21 [09:00:57]CheckFolder [09:00:57]dirname=/storage/ofd_packets [09:00:57]CheckFolder done [09:00:57]ProducePacketName [09:00:57]name=ofd_packets/00112419 [09:00:57]NVStorageSaveData ofd_packets/00112419 [09:00:57]File name is /storage/ofd_packets/00112419 [09:00:57]Write 298 bytes [09:00:57]NVStorageSaveData done [09:00:57]OFDSenderStorePacket done [09:00:57]KKMCreateOFDPacket done [09:00:57]NVStorageSaveData kkm_last_timestamp [09:00:57]File name is /storage/kkm_last_timestamp [09:00:57]Write 4 bytes [09:00:57]NVStorageSaveData done [09:00:57]ExternCall_PrintAddStr [09:00:57]wPrintStart [09:00:57]Write to MH i2c: 01 00 00 A5 6A 0F [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: 01 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: 01 07 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: 01 07 00 A5 6A 00 00 00 00 00 FF 0F 24 [09:00:57]RasterBufferAndPrint [09:00:57]line Счет N : (1)321098 [09:00:57]line ИНН: 02508201610067 [09:00:57]line Контрольно-Кассовый Чек [09:00:57]line ПРОДАЖА [09:00:57]line ТРК (МРК, ГНК) : 22 [09:00:57]line Товар: 2710194210 [09:00:57]line ДТ-К-5 [09:00:57]line 6.860 * 72.90 [09:00:57]line = 500.09 [09:00:57]line НДС 12% НСП 1% [09:00:57]line > о реализуемом товаре [09:00:57]line ОКРУГЛЕНИЕ: -0.09 [09:00:57]line ИТОГО: 500.00 [09:00:57]line Внесено: 500.00 [09:00:57]line СДАЧА: 0.00 [09:00:57]line НСП 1% : 4.43 [09:00:57]line НДС 12% : 53.11 [09:00:57]line Наличными: 500.00 [09:00:57]line Безнал.: 0.00 [09:00:57]line Место: АЗС № 65 "Партнер Нефть" [09:00:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:00:57]line СНО: Общий режим [09:00:57]line Чек 20 23.06.2024 09:01 [09:00:57]line Смена: 392 ФФД: 1.0 [09:00:57]line ЗНМ: 0300000198 [09:00:57]line РНМ: 0000000000092771 [09:00:57]line Версия ККМ: 001 [09:00:57]line ФМ: 0000000000875083 [09:00:57]line ФД: 112419 [09:00:57]line ФПД: 5372264714013 [09:00:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090147&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112419&fm=5372264714013&tin=02508201610067®Number=0000000000092771&sum=50000 [09:00:58]OFD Sender: Processing packet 112419 [packets to send 38, broken 37] [09:00:58]ProducePacketName [09:00:58]name=ofd_packets/00112419 [09:00:58]OFD Sender: To server: pG, [09:00:58]CommunicateWithHost lk.salyk.kg:30040 [09:00:58]ConnectInit lk.salyk.kg [09:00:58]written 0, free lines is 4095 [09:00:58]Connected sock=10 [09:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B0 77 04 01 59 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 14 00 00 00 F4 03 04 00 7B E4 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B7 01 00 35 04 06 00 04 E2 D3 EE 0F 1D 02 A1 E3 7E B2 09 C9 21 [09:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6A 3E 47 00 70 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B7 01 00 F4 03 04 00 6D 7B 77 66 B6 04 01 00 00 14 A5 E1 15 5C B2 4C A7 [09:00:58]CommunicateWithHost err = 0 [09:00:58]CheckOFDResponse [09:00:58]1017 (14) - 77093643461234 [09:00:58]1041 (16) - 0000000000875083 [09:00:58]1040 (4) - 112419 [09:00:58]1012 (4) - 23.06.2024 01:33 [09:00:58]1206 (1) - 0 [09:00:58]OFD Sender: Remove packet 112419 [09:00:58]ProducePacketName [09:00:58]name=ofd_packets/00112419 [09:00:58]NVStorageDeleteData [09:00:58]Write to MH i2c: 01 00 00 D0 6A 3A [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: 01 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: 01 07 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: 01 07 00 D0 6A 00 00 00 00 00 C2 0C 0F [09:00:58]RasterBufferAndPrint [09:00:58]line [09:00:58]line [09:00:58]line [09:00:58]line [09:00:58]line [09:00:58]written 0, free lines is 3275 [09:00:58]MH_Cut [09:00:58]Write to MH i2c: D1 01 00 D7 6A 01 13 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: D1 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: D1 01 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: D1 01 00 D7 6A 00 12 [09:00:58]Write to MH i2c: 01 00 00 D8 6A 42 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:59]OFD Sender: No OFD packet to send [09:00:59]*** Cut start [09:00:59]*** Partial cut [09:00:59]*** CUTSNS_PIN = 1 [09:00:59]*** CUTSNS_PIN = 0 [09:00:59]*** Brake cut motor [09:01:00]Read from MH i2c: 01 [09:01:00]MH_I2C_Read... [09:01:00]*** Stop cut motor [09:01:00]*** Cut end [09:01:00]Read from MH i2c: 01 07 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: 01 07 00 D8 6A 00 00 00 00 00 FF 0F 57 [09:01:00]process_action close_receipt done [09:01:00]requested_data is exist [09:01:00]produce_requested_data [09:01:00]requested_item fm.sn is exist - process it [09:01:00]wFMCommunicate request_size=4 [09:01:00]MH_SAM_APDU [09:01:00]CAPDU: 80 11 00 00 [09:01:00]Write to MH i2c: E2 08 00 D9 6A 80 11 00 00 00 00 00 00 BD [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:00]Read from MH i2c: E2 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 17 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 17 00 D9 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0F [09:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:01:00]wFMCommunicate OK [09:01:00]requested_item fd.num is exist - process it [09:01:00]SAM_PROTO_GetFieldsCounters [09:01:00]wFMCommunicate request_size=4 [09:01:00]MH_SAM_APDU [09:01:00]CAPDU: 80 13 00 00 [09:01:00]Write to MH i2c: E2 08 00 DA 6A 80 13 00 00 00 00 00 00 C0 [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:00]Read from MH i2c: E2 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 62 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 62 00 DA 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [09:01:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:00]wFMCommunicate OK [09:01:00]SAM_PROTO_GetFieldsCounters done [09:01:00]requested_item shift.num is exist - process it [09:01:00]requested_item shift.opened is exist - process it [09:01:00]req_shift_opened [09:01:00]FM_GetShiftState [09:01:00]SAM_PROTO_GetShiftState [09:01:00]wFMCommunicate request_size=4 [09:01:00]MH_SAM_APDU [09:01:00]CAPDU: 80 13 01 00 [09:01:00]Write to MH i2c: E2 08 00 DB 6A 80 13 01 00 00 00 00 00 C2 [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:00]Read from MH i2c: E2 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 0E 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 0E 00 DB 6A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E0 [09:01:00]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:01:00]wFMCommunicate OK [09:01:00]SAM_PROTO_GetShiftState done [09:01:00]FM_GetShiftState done [09:01:00]req_shift_opened done [09:01:00]requested_item shift.open_date is exist - process it [09:01:00]req_shift_open_date [09:01:00]req_shift_open_date done [09:01:00]produce_requested_data done [09:01:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112419,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:01:00]process_action_free close_receipt [09:01:00]json_value_free [09:01:00]json_value_free done [09:01:00]process_json_proto returns [09:01:00]Send response to host [09:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112419,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:01:00]free response buf [09:01:00]execute_script done [09:01:00]execute_script returns [09:01:00]free content buf [09:01:00]Sock 5.Close socket [09:01:00]Sock 5.Thread stoped [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:57]accept exits with 9 [09:04:57]New connection [09:04:57]New thread 3066957156 created [09:04:57]Thread 3066813796 joined [09:04:57]Waiting for new connection... [09:04:57] Sock 9.Parse request [09:04:57]Sock 9.Check first char [09:04:57]Sock 9.First char is OK [09:04:57]request: POST /json_proto HTTP/1.0 [09:04:57]Method: POST [09:04:57]URL: /json_proto [09:04:57]Method is POST - this is cgi request [09:04:57]url: /json_proto [09:04:57]query_string will be loaded in cgi processing [09:04:57]execute_cgi json_proto POST (null) [09:04:57]execute_cgi path=json_proto method=POST [09:04:57]POST find Content-Length [09:04:57]Host: 172.17.59.68:8080 [09:04:57]Content-Length: 677 [09:04:57]Content-Type: application/json [09:04:57] [09:04:57]POST finish read [09:04:57]Found Content-Length = 677 [09:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:04:57]execute_script... [09: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)321099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:04:57]POST & json_proto [09:04:57]process_json_proto [09:04:57]json parsed OK: [09:04:57]protocol is kg_v1.0 [09:04:57]action value=close_receipt [09:04:57]process_action close_receipt [09:04:57]cmd_close_receipt [09:04:57]MH_GetDate [09:04:57]Write to MH i2c: F0 00 00 DC 6A 35 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: F0 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: F0 09 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: F0 09 00 DC 6A 00 6D E5 77 66 BC EC 60 65 DA [09:04:57]GetLastDocTimeStamp 1719133307 [09:04:57]current date 1719133549 [09:04:57]FM_GetShiftState [09:04:57]SAM_PROTO_GetShiftState [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 13 01 00 [09:04:57]Write to MH i2c: E2 08 00 DD 6A 80 13 01 00 00 00 00 00 C4 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 0E 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 0E 00 DD 6A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E2 [09:04:57]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:04:57]wFMCommunicate OK [09:04:57]SAM_PROTO_GetShiftState done [09:04:57]FM_GetShiftState done [09:04:57]opened in 1719106490 [09:04:57]opened+sec_in_day 1719192890 [09:04:57]quantity*price = 50065 [09:04:57]sum+1 = 50067 [09:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 21 23.06.2024 09:05 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112420 ФПД: 58338946054861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090549&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112420&fm=58338946054861&tin=02508201610067®Number=0000000000092771&sum=50000 [09:04:58]StoreToDocumentArchive [09:04:58]shift 392 fd 112420 [09:04:58]save to /storage/0392/doc_00112420 [09:04:58]save last doc name /storage/0392/doc_00112420 to /storage/kkm_last_doc_name [09:04:58]save OK [09:04:58]Clear old archive folders... [09:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:58]tlvbuf is 01335F80 [09:04:58]SAM_PROTO_ClearQueue [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 09 00 00 [09:04:58]Write to MH i2c: E2 08 00 EA 6A 80 09 00 00 00 00 00 00 C6 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:58]Read from MH i2c: E2 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 03 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 03 00 EA 6A 00 90 00 C8 [09:04:58]RAPDU: 90 00 [09:04:58]wFMCommunicate OK [09:04:58]SAM_PROTO_ClearQueue done [09:04:58]KKMCreateOFDPacket [09:04:58]OFDProtocolAddRootSTLVToBuf [09:04:58]FM_MakeSignedData [09:04:58]FM_MakeSignedData [09:04:58]SAM_PROTO_SignData [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 0D 01 02 [09:04:58]Write to MH i2c: E2 08 00 EB 6A 80 0D 01 02 00 00 00 00 CE [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:58]Read from MH i2c: E2 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 03 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 03 00 EB 6A 00 90 00 C9 [09:04:58]RAPDU: 90 00 [09:04:58]wFMCommunicate OK [09:04:58]wFMCommunicate request_size=255 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 15 00 00 00 F4 03 04 00 6D E5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B7 01 00 35 04 06 00 35 [09:04:58]Write to MH i2c: E2 02 01 EC 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 15 00 00 00 F4 03 04 00 6D E5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B7 01 00 35 04 06 00 35 00 00 60 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 EC 6A 00 90 00 CA [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=10 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 02 02 05 0F 18 27 FA CD [09:04:59]Write to MH i2c: E2 0D 00 ED 6A 80 0D 02 02 05 00 0F 18 27 FA CD 00 00 F0 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 ED 6A 00 90 00 CB [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 03 02 [09:04:59]Write to MH i2c: E2 08 00 EE 6A 80 0D 03 02 00 00 00 00 D3 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:59]OFD Sender: No OFD packet to send [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0B 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0B 00 EE 6A 00 59 21 72 7A 15 C6 83 16 90 00 AE [09:04:59]RAPDU: 59 21 72 7A 15 C6 83 16 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_SignData done [09:04:59]FM_MakeSignedData done [09:04:59]CreateOFDProtocolMessage [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 11 00 00 [09:04:59]Write to MH i2c: E2 08 00 EF 6A 80 11 00 00 00 00 00 00 D3 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 EF 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [09:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:04:59]wFMCommunicate OK [09:04:59]CreateOFDProtocolMessage done [09:04:59]OFDSenderStorePacket 112420 [09:04:59]StoreOFDPacket docnum=112420 [09:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 10 D8 07 01 BC CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 15 00 00 00 F4 03 04 00 6D E5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B7 01 00 35 04 06 00 35 0F 18 27 FA CD 59 21 72 7A 15 C6 83 16 [09:04:59]CheckFolder [09:04:59]dirname=/storage/ofd_packets [09:04:59]CheckFolder done [09:04:59]ProducePacketName [09:04:59]name=ofd_packets/00112420 [09:04:59]NVStorageSaveData ofd_packets/00112420 [09:04:59]File name is /storage/ofd_packets/00112420 [09:04:59]Write 301 bytes [09:04:59]NVStorageSaveData done [09:04:59]OFDSenderStorePacket done [09:04:59]KKMCreateOFDPacket done [09:04:59]NVStorageSaveData kkm_last_timestamp [09:04:59]File name is /storage/kkm_last_timestamp [09:04:59]Write 4 bytes [09:04:59]NVStorageSaveData done [09:04:59]ExternCall_PrintAddStr [09:04:59]wPrintStart [09:04:59]Write to MH i2c: 01 00 00 F0 6A 5A [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 07 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 07 00 F0 6A 00 00 00 00 00 FF 0F 6F [09:04:59]RasterBufferAndPrint [09:04:59]line Счет N : (1)321099 [09:04:59]line ИНН: 02508201610067 [09:04:59]line Контрольно-Кассовый Чек [09:04:59]line ПРОДАЖА [09:04:59]line ТРК (МРК, ГНК) : 11 [09:04:59]line Товар: 2710124130 [09:04:59]line Аи-92-К-5 [09:04:59]line 7.540 * 66.40 [09:04:59]line = 500.66 [09:04:59]line НДС 12% НСП 1% [09:04:59]line > о реализуемом товаре [09:04:59]line ОКРУГЛЕНИЕ: -0.66 [09:04:59]line ИТОГО: 500.00 [09:04:59]line Внесено: 500.00 [09:04:59]line СДАЧА: 0.00 [09:04:59]line НСП 1% : 4.43 [09:04:59]line НДС 12% : 53.17 [09:04:59]line Наличными: 500.00 [09:04:59]line Безнал.: 0.00 [09:04:59]line Место: АЗС № 65 "Партнер Нефть" [09:04:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:04:59]line СНО: Общий режим [09:04:59]line Чек 21 23.06.2024 09:05 [09:04:59]line Смена: 392 ФФД: 1.0 [09:04:59]line ЗНМ: 0300000198 [09:04:59]line РНМ: 0000000000092771 [09:04:59]line Версия ККМ: 001 [09:04:59]line ФМ: 0000000000875083 [09:04:59]line ФД: 112420 [09:04:59]line ФПД: 58338946054861 [09:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090549&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112420&fm=58338946054861&tin=02508201610067®Number=0000000000092771&sum=50000 [09:04:59]OFD Sender: Processing packet 112420 [packets to send 38, broken 37] [09:04:59]ProducePacketName [09:04:59]name=ofd_packets/00112420 [09:04:59]OFD Sender: To server: pG, [09:04:59]CommunicateWithHost lk.salyk.kg:30040 [09:04:59]ConnectInit lk.salyk.kg [09:04:59]written 0, free lines is 4095 [09:04:59]Connected sock=10 [09:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 10 D8 07 01 BC CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 15 00 00 00 F4 03 04 00 6D E5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B7 01 00 35 04 06 00 35 0F 18 27 FA CD 59 21 72 7A 15 C6 83 16 [09:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 63 EC 47 00 1D 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B7 01 00 F4 03 04 00 5F 7C 77 66 B6 04 01 00 00 18 50 32 34 08 64 DE 38 [09:05:00]CommunicateWithHost err = 0 [09:05:00]CheckOFDResponse [09:05:00]1017 (14) - 77093643461234 [09:05:00]1041 (16) - 0000000000875083 [09:05:00]1040 (4) - 112420 [09:05:00]1012 (4) - 23.06.2024 01:37 [09:05:00]1206 (1) - 0 [09:05:00]OFD Sender: Remove packet 112420 [09:05:00]ProducePacketName [09:05:00]name=ofd_packets/00112420 [09:05:00]NVStorageDeleteData [09:05:00]Write to MH i2c: 01 00 00 1B 6B 86 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 1B 6B 00 00 00 00 00 D6 0C 6F [09:05:00]RasterBufferAndPrint [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]written 0, free lines is 3293 [09:05:00]MH_Cut [09:05:00]Write to MH i2c: D1 01 00 22 6B 01 5F [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 01 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 01 00 22 6B 00 5E [09:05:00]Write to MH i2c: 01 00 00 23 6B 8E [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]OFD Sender: No OFD packet to send [09:05:00]*** Cut start [09:05:00]*** Partial cut [09:05:00]*** CUTSNS_PIN = 1 [09:05:01]*** CUTSNS_PIN = 0 [09:05:01]*** Brake cut motor [09:05:01]Read from MH i2c: 01 [09:05:01]MH_I2C_Read... [09:05:01]*** Stop cut motor [09:05:01]*** Cut end [09:05:01]Read from MH i2c: 01 07 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 23 6B 00 00 00 00 00 FF 0F A3 [09:05:01]process_action close_receipt done [09:05:01]requested_data is exist [09:05:01]produce_requested_data [09:05:01]requested_item fm.sn is exist - process it [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 11 00 00 [09:05:01]Write to MH i2c: E2 08 00 24 6B 80 11 00 00 00 00 00 00 09 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 17 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 17 00 24 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [09:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:05:01]wFMCommunicate OK [09:05:01]requested_item fd.num is exist - process it [09:05:01]SAM_PROTO_GetFieldsCounters [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 13 00 00 [09:05:01]Write to MH i2c: E2 08 00 25 6B 80 13 00 00 00 00 00 00 0C [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 62 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 62 00 25 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 24 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [09:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 24 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:01]wFMCommunicate OK [09:05:01]SAM_PROTO_GetFieldsCounters done [09:05:01]requested_item shift.num is exist - process it [09:05:01]requested_item shift.opened is exist - process it [09:05:01]req_shift_opened [09:05:01]FM_GetShiftState [09:05:01]SAM_PROTO_GetShiftState [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 13 01 00 [09:05:01]Write to MH i2c: E2 08 00 26 6B 80 13 01 00 00 00 00 00 0E [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:01]Read from MH i2c: E2 0E 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 0E 00 26 6B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2C [09:05:01]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:05:01]wFMCommunicate OK [09:05:01]SAM_PROTO_GetShiftState done [09:05:01]FM_GetShiftState done [09:05:01]req_shift_opened done [09:05:01]requested_item shift.open_date is exist - process it [09:05:01]req_shift_open_date [09:05:01]req_shift_open_date done [09:05:01]produce_requested_data done [09:05:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112420,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:05:01]process_action_free close_receipt [09:05:01]json_value_free [09:05:01]json_value_free done [09:05:01]process_json_proto returns [09:05:01]Send response to host [09:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112420,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:05:01]free response buf [09:05:01]execute_script done [09:05:01]execute_script returns [09:05:01]free content buf [09:05:01]Sock 9.Close socket [09:05:01]Sock 9.Thread stoped [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:39]accept exits with 7 [09:08:39]New connection [09:08:39]New thread 3066813796 created [09:08:39]Thread 3066957156 joined [09:08:39]Waiting for new connection... [09:08:39] Sock 7.Parse request [09:08:39]Sock 7.Check first char [09:08:39]Sock 7.First char is OK [09:08:39]request: POST /json_proto HTTP/1.0 [09:08:39]Method: POST [09:08:39]URL: /json_proto [09:08:39]Method is POST - this is cgi request [09:08:39]url: /json_proto [09:08:39]query_string will be loaded in cgi processing [09:08:39]execute_cgi json_proto POST (null) [09:08:39]execute_cgi path=json_proto method=POST [09:08:39]POST find Content-Length [09:08:39]Host: 172.17.59.68:8080 [09:08:39]Content-Length: 675 [09:08:39]Content-Type: application/json [09:08:39] [09:08:39]POST finish read [09:08:39]Found Content-Length = 675 [09:08:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:39]execute_script... [09:08: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)321100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:39]POST & json_proto [09:08:39]process_json_proto [09:08:39]json parsed OK: [09:08:39]protocol is kg_v1.0 [09:08:39]action value=close_receipt [09:08:39]process_action close_receipt [09:08:39]cmd_close_receipt [09:08:39]MH_GetDate [09:08:39]Write to MH i2c: F0 00 00 27 6B 81 [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: F0 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: F0 09 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: F0 09 00 27 6B 00 4A E6 77 66 BC EC 60 65 04 [09:08:39]GetLastDocTimeStamp 1719133549 [09:08:39]current date 1719133770 [09:08:39]FM_GetShiftState [09:08:39]SAM_PROTO_GetShiftState [09:08:39]wFMCommunicate request_size=4 [09:08:39]MH_SAM_APDU [09:08:39]CAPDU: 80 13 01 00 [09:08:39]Write to MH i2c: E2 08 00 28 6B 80 13 01 00 00 00 00 00 10 [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:39]Read from MH i2c: E2 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 0E 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 0E 00 28 6B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2E [09:08:39]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:08:39]wFMCommunicate OK [09:08:39]SAM_PROTO_GetShiftState done [09:08:39]FM_GetShiftState done [09:08:39]opened in 1719106490 [09:08:39]opened+sec_in_day 1719192890 [09:08:39]quantity*price = 73045 [09:08:39]sum+1 = 73047 [09:08:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 22 23.06.2024 09:09 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112421 ФПД: 200837659075826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112421&fm=200837659075826&tin=02508201610067®Number=0000000000092771&sum=73000 [09:08:40]StoreToDocumentArchive [09:08:40]shift 392 fd 112421 [09:08:40]save to /storage/0392/doc_00112421 [09:08:40]save last doc name /storage/0392/doc_00112421 to /storage/kkm_last_doc_name [09:08:40]save OK [09:08:40]Clear old archive folders... [09:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:08:40]tlvbuf is 0123B820 [09:08:40]SAM_PROTO_ClearQueue [09:08:40]wFMCommunicate request_size=4 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 09 00 00 [09:08:40]Write to MH i2c: E2 08 00 35 6B 80 09 00 00 00 00 00 00 12 [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 03 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 03 00 35 6B 00 90 00 14 [09:08:40]RAPDU: 90 00 [09:08:40]wFMCommunicate OK [09:08:40]SAM_PROTO_ClearQueue done [09:08:40]KKMCreateOFDPacket [09:08:40]OFDProtocolAddRootSTLVToBuf [09:08:40]FM_MakeSignedData [09:08:40]FM_MakeSignedData [09:08:40]SAM_PROTO_SignData [09:08:40]wFMCommunicate request_size=4 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 0D 01 02 [09:08:40]Write to MH i2c: E2 08 00 36 6B 80 0D 01 02 00 00 00 00 1A [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 03 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 03 00 36 6B 00 90 00 15 [09:08:40]RAPDU: 90 00 [09:08:40]wFMCommunicate OK [09:08:40]wFMCommunicate request_size=255 [09:08:40]MH_SAM_APDU [09:08:40]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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 00 00 00 F4 03 04 00 4A E6 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B7 01 00 35 04 06 00 B6 A9 29 53 [09:08:40]Write to MH i2c: E2 02 01 37 6B 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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 00 00 00 F4 03 04 00 4A E6 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B7 01 00 35 04 06 00 B6 A9 29 53 00 00 AF [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]OFD Sender: No OFD packet to send [09:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 03 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 03 00 37 6B 00 90 00 16 [09:08:40]RAPDU: 90 00 [09:08:40]wFMCommunicate OK [09:08:40]wFMCommunicate request_size=7 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 0D 02 02 02 A4 F2 [09:08:40]Write to MH i2c: E2 0A 00 38 6B 80 0D 02 02 02 00 A4 F2 00 00 B7 [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 03 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 03 00 38 6B 00 90 00 17 [09:08:40]RAPDU: 90 00 [09:08:40]wFMCommunicate OK [09:08:40]wFMCommunicate request_size=4 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 0D 03 02 [09:08:40]Write to MH i2c: E2 08 00 39 6B 80 0D 03 02 00 00 00 00 1F [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 0B 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 0B 00 39 6B 00 02 E7 AF 60 F2 3D 75 5D 90 00 19 [09:08:40]RAPDU: 02 E7 AF 60 F2 3D 75 5D 90 00 [09:08:40]wFMCommunicate OK [09:08:40]SAM_PROTO_SignData done [09:08:40]FM_MakeSignedData done [09:08:40]CreateOFDProtocolMessage [09:08:40]wFMCommunicate request_size=4 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 11 00 00 [09:08:40]Write to MH i2c: E2 08 00 3A 6B 80 11 00 00 00 00 00 00 1F [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 17 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 17 00 3A 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [09:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:08:40]wFMCommunicate OK [09:08:40]CreateOFDProtocolMessage done [09:08:40]OFDSenderStorePacket 112421 [09:08:40]StoreOFDPacket docnum=112421 [09:08:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 49 5F 04 01 0D F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 00 00 00 F4 03 04 00 4A E6 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B7 01 00 35 04 06 00 B6 A9 29 53 A4 F2 02 E7 AF 60 F2 3D 75 5D [09:08:40]CheckFolder [09:08:40]dirname=/storage/ofd_packets [09:08:40]CheckFolder done [09:08:40]ProducePacketName [09:08:40]name=ofd_packets/00112421 [09:08:40]NVStorageSaveData ofd_packets/00112421 [09:08:40]File name is /storage/ofd_packets/00112421 [09:08:40]Write 298 bytes [09:08:40]NVStorageSaveData done [09:08:40]OFDSenderStorePacket done [09:08:40]KKMCreateOFDPacket done [09:08:40]NVStorageSaveData kkm_last_timestamp [09:08:40]File name is /storage/kkm_last_timestamp [09:08:40]Write 4 bytes [09:08:40]NVStorageSaveData done [09:08:40]ExternCall_PrintAddStr [09:08:40]wPrintStart [09:08:40]Write to MH i2c: 01 00 00 3B 6B A6 [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: 01 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: 01 07 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: 01 07 00 3B 6B 00 00 00 00 00 FF 0F BB [09:08:40]RasterBufferAndPrint [09:08:40]line Счет N : (1)321100 [09:08:40]line ИНН: 02508201610067 [09:08:40]line Контрольно-Кассовый Чек [09:08:40]line ПРОДАЖА [09:08:40]line ТРК (МРК, ГНК) : 22 [09:08:40]line Товар: 2710194210 [09:08:40]line ДТ-К-5 [09:08:40]line 10.020 * 72.90 [09:08:40]line = 730.46 [09:08:40]line НДС 12% НСП 1% [09:08:40]line > о реализуемом товаре [09:08:40]line ОКРУГЛЕНИЕ: -0.46 [09:08:40]line ИТОГО: 730.00 [09:08:40]line Внесено: 730.00 [09:08:40]line СДАЧА: 0.00 [09:08:40]line НСП 1% : 6.46 [09:08:40]line НДС 12% : 77.57 [09:08:40]line Наличными: 730.00 [09:08:40]line Безнал.: 0.00 [09:08:40]line Место: АЗС № 65 "Партнер Нефть" [09:08:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:08:40]line СНО: Общий режим [09:08:40]line Чек 22 23.06.2024 09:09 [09:08:40]line Смена: 392 ФФД: 1.0 [09:08:40]line ЗНМ: 0300000198 [09:08:40]line РНМ: 0000000000092771 [09:08:40]line Версия ККМ: 001 [09:08:40]line ФМ: 0000000000875083 [09:08:40]line ФД: 112421 [09:08:40]line ФПД: 200837659075826 [09:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T090930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112421&fm=200837659075826&tin=02508201610067®Number=0000000000092771&sum=73000 [09:08:41]OFD Sender: Processing packet 112421 [packets to send 38, broken 37] [09:08:41]ProducePacketName [09:08:41]name=ofd_packets/00112421 [09:08:41]OFD Sender: To server: pG, [09:08:41]CommunicateWithHost lk.salyk.kg:30040 [09:08:41]ConnectInit lk.salyk.kg [09:08:41]written 0, free lines is 4095 [09:08:41]Connected sock=10 [09:08:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 49 5F 04 01 0D F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 00 00 00 F4 03 04 00 4A E6 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B7 01 00 35 04 06 00 B6 A9 29 53 A4 F2 02 E7 AF 60 F2 3D 75 5D [09:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 5B 47 00 31 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B7 01 00 F4 03 04 00 3C 7D 77 66 B6 04 01 00 00 88 E5 97 44 AA 66 1F 36 [09:08:41]CommunicateWithHost err = 0 [09:08:41]CheckOFDResponse [09:08:41]1017 (14) - 77093643461234 [09:08:41]1041 (16) - 0000000000875083 [09:08:41]1040 (4) - 112421 [09:08:41]1012 (4) - 23.06.2024 01:41 [09:08:41]1206 (1) - 0 [09:08:41]OFD Sender: Remove packet 112421 [09:08:41]ProducePacketName [09:08:41]name=ofd_packets/00112421 [09:08:41]NVStorageDeleteData [09:08:41]Write to MH i2c: 01 00 00 66 6B D1 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: 01 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: 01 07 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: 01 07 00 66 6B 00 00 00 00 00 C5 0C A9 [09:08:41]RasterBufferAndPrint [09:08:41]line [09:08:41]line [09:08:41]line [09:08:41]line [09:08:41]line [09:08:41]written 0, free lines is 3275 [09:08:41]MH_Cut [09:08:41]Write to MH i2c: D1 01 00 6D 6B 01 AA [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: D1 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: D1 01 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: D1 01 00 6D 6B 00 A9 [09:08:41]Write to MH i2c: 01 00 00 6E 6B D9 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:42]OFD Sender: No OFD packet to send [09:08:42]*** Cut start [09:08:42]*** Partial cut [09:08:42]*** CUTSNS_PIN = 1 [09:08:42]*** CUTSNS_PIN = 0 [09:08:42]*** Brake cut motor [09:08:43]Read from MH i2c: 01 [09:08:43]MH_I2C_Read... [09:08:43]*** Stop cut motor [09:08:43]*** Cut end [09:08:43]Read from MH i2c: 01 07 00 [09:08:43]MH_I2C_Read... [09:08:43]Read from MH i2c: 01 07 00 6E 6B 00 00 00 00 00 FF 0F EE [09:08:43]process_action close_receipt done [09:08:43]requested_data is exist [09:08:43]produce_requested_data [09:08:43]requested_item fm.sn is exist - process it [09:08:43]wFMCommunicate request_size=4 [09:08:43]MH_SAM_APDU [09:08:43]CAPDU: 80 11 00 00 [09:08:43]Write to MH i2c: E2 08 00 6F 6B 80 11 00 00 00 00 00 00 54 [09:08:43]Write i2c OK [09:08:43]MH_I2C_Read... [09:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:43]Read from MH i2c: E2 [09:08:43]MH_I2C_Read... [09:08:43]Read from MH i2c: E2 17 00 [09:08:43]MH_I2C_Read... [09:08:43]Read from MH i2c: E2 17 00 6F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [09:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:08:43]wFMCommunicate OK [09:08:43]requested_item fd.num is exist - process it [09:08:43]SAM_PROTO_GetFieldsCounters [09:08:43]wFMCommunicate request_size=4 [09:08:43]MH_SAM_APDU [09:08:43]CAPDU: 80 13 00 00 [09:08:43]Write to MH i2c: E2 08 00 70 6B 80 13 00 00 00 00 00 00 57 [09:08:43]Write i2c OK [09:08:43]MH_I2C_Read... [09:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:43]Read from MH i2c: E2 [09:08:43]MH_I2C_Read... [09:08:43]Read from MH i2c: E2 62 00 [09:08:43]MH_I2C_Read... [09:08:43]Read from MH i2c: E2 62 00 70 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 25 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [09:08:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 25 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:43]wFMCommunicate OK [09:08:43]SAM_PROTO_GetFieldsCounters done [09:08:43]requested_item shift.num is exist - process it [09:08:43]requested_item shift.opened is exist - process it [09:08:43]req_shift_opened [09:08:43]FM_GetShiftState [09:08:43]SAM_PROTO_GetShiftState [09:08:43]wFMCommunicate request_size=4 [09:08:43]MH_SAM_APDU [09:08:43]CAPDU: 80 13 01 00 [09:08:43]Write to MH i2c: E2 08 00 71 6B 80 13 01 00 00 00 00 00 59 [09:08:43]Write i2c OK [09:08:43]MH_I2C_Read... [09:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:43]Read from MH i2c: E2 [09:08:43]MH_I2C_Read... [09:08:43]Read from MH i2c: E2 0E 00 [09:08:43]MH_I2C_Read... [09:08:43]Read from MH i2c: E2 0E 00 71 6B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 77 [09:08:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:08:43]wFMCommunicate OK [09:08:43]SAM_PROTO_GetShiftState done [09:08:43]FM_GetShiftState done [09:08:43]req_shift_opened done [09:08:43]requested_item shift.open_date is exist - process it [09:08:43]req_shift_open_date [09:08:43]req_shift_open_date done [09:08:43]produce_requested_data done [09:08:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112421,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:08:43]process_action_free close_receipt [09:08:43]json_value_free [09:08:43]json_value_free done [09:08:43]process_json_proto returns [09:08:43]Send response to host [09:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112421,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:08:43]free response buf [09:08:43]execute_script done [09:08:43]execute_script returns [09:08:43]free content buf [09:08:43]Sock 7.Close socket [09:08:43]Sock 7.Thread stoped [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:13]accept exits with 9 [09:14:13]New connection [09:14:13]New thread 3066957156 created [09:14:13]Thread 3066813796 joined [09:14:13]Waiting for new connection... [09:14:13] Sock 9.Parse request [09:14:13]Sock 9.Check first char [09:14:13]Sock 9.First char is OK [09:14:13]request: POST /json_proto HTTP/1.0 [09:14:13]Method: POST [09:14:13]URL: /json_proto [09:14:13]Method is POST - this is cgi request [09:14:13]url: /json_proto [09:14:13]query_string will be loaded in cgi processing [09:14:13]execute_cgi json_proto POST (null) [09:14:13]execute_cgi path=json_proto method=POST [09:14:13]POST find Content-Length [09:14:13]Host: 172.17.59.68:8080 [09:14:13]Content-Length: 677 [09:14:13]Content-Type: application/json [09:14:13] [09:14:13]POST finish read [09:14:13]Found Content-Length = 677 [09:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:13]execute_script... [09:14: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)321101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:13]POST & json_proto [09:14:13]process_json_proto [09:14:13]json parsed OK: [09:14:13]protocol is kg_v1.0 [09:14:13]action value=close_receipt [09:14:13]process_action close_receipt [09:14:13]cmd_close_receipt [09:14:13]MH_GetDate [09:14:13]Write to MH i2c: F0 00 00 72 6B CC [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: F0 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: F0 09 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: F0 09 00 72 6B 00 99 E7 77 66 BC EC 60 65 9F [09:14:13]GetLastDocTimeStamp 1719133770 [09:14:13]current date 1719134105 [09:14:13]FM_GetShiftState [09:14:13]SAM_PROTO_GetShiftState [09:14:13]wFMCommunicate request_size=4 [09:14:13]MH_SAM_APDU [09:14:13]CAPDU: 80 13 01 00 [09:14:13]Write to MH i2c: E2 08 00 73 6B 80 13 01 00 00 00 00 00 5B [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 0E 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 0E 00 73 6B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 79 [09:14:13]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:14:13]wFMCommunicate OK [09:14:13]SAM_PROTO_GetShiftState done [09:14:13]FM_GetShiftState done [09:14:13]opened in 1719106490 [09:14:13]opened+sec_in_day 1719192890 [09:14:13]quantity*price = 30012 [09:14:13]sum+1 = 30014 [09:14:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 23 23.06.2024 09:15 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112422 ФПД: 179635161278710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T091505&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112422&fm=179635161278710&tin=02508201610067®Number=0000000000092771&sum=30000 [09:14:15]StoreToDocumentArchive [09:14:15]shift 392 fd 112422 [09:14:15]save to /storage/0392/doc_00112422 [09:14:15]save last doc name /storage/0392/doc_00112422 to /storage/kkm_last_doc_name [09:14:15]save OK [09:14:15]Clear old archive folders... [09:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:15]tlvbuf is 01348A90 [09:14:15]SAM_PROTO_ClearQueue [09:14:15]wFMCommunicate request_size=4 [09:14:15]MH_SAM_APDU [09:14:15]CAPDU: 80 09 00 00 [09:14:15]Write to MH i2c: E2 08 00 80 6B 80 09 00 00 00 00 00 00 5D [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:15]Read from MH i2c: E2 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 03 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 03 00 80 6B 00 90 00 5F [09:14:15]RAPDU: 90 00 [09:14:15]wFMCommunicate OK [09:14:15]SAM_PROTO_ClearQueue done [09:14:15]KKMCreateOFDPacket [09:14:15]OFDProtocolAddRootSTLVToBuf [09:14:15]FM_MakeSignedData [09:14:15]FM_MakeSignedData [09:14:15]SAM_PROTO_SignData [09:14:15]wFMCommunicate request_size=4 [09:14:15]MH_SAM_APDU [09:14:15]CAPDU: 80 0D 01 02 [09:14:15]Write to MH i2c: E2 08 00 81 6B 80 0D 01 02 00 00 00 00 65 [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:15]Read from MH i2c: E2 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 03 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 03 00 81 6B 00 90 00 60 [09:14:15]RAPDU: 90 00 [09:14:15]wFMCommunicate OK [09:14:15]wFMCommunicate request_size=255 [09:14:15]MH_SAM_APDU [09:14:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 17 00 00 00 F4 03 04 00 99 E7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B7 01 00 35 04 06 00 A3 [09:14:15]Write to MH i2c: E2 02 01 82 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 17 00 00 00 F4 03 04 00 99 E7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B7 01 00 35 04 06 00 A3 00 00 35 [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:15]Read from MH i2c: E2 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 03 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 03 00 82 6B 00 90 00 61 [09:14:15]RAPDU: 90 00 [09:14:15]wFMCommunicate OK [09:14:15]wFMCommunicate request_size=10 [09:14:15]MH_SAM_APDU [09:14:15]CAPDU: 80 0D 02 02 05 60 91 FA 28 F6 [09:14:15]Write to MH i2c: E2 0D 00 83 6B 80 0D 02 02 05 00 60 91 FA 28 F6 00 00 7B [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:15]Read from MH i2c: E2 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 03 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 03 00 83 6B 00 90 00 62 [09:14:15]RAPDU: 90 00 [09:14:15]wFMCommunicate OK [09:14:15]wFMCommunicate request_size=4 [09:14:15]MH_SAM_APDU [09:14:15]CAPDU: 80 0D 03 02 [09:14:15]Write to MH i2c: E2 08 00 84 6B 80 0D 03 02 00 00 00 00 6A [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:15]Read from MH i2c: E2 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 0B 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 0B 00 84 6B 00 C6 D5 C1 7D 78 3F 50 ED 90 00 38 [09:14:15]RAPDU: C6 D5 C1 7D 78 3F 50 ED 90 00 [09:14:15]wFMCommunicate OK [09:14:15]SAM_PROTO_SignData done [09:14:15]FM_MakeSignedData done [09:14:15]CreateOFDProtocolMessage [09:14:15]wFMCommunicate request_size=4 [09:14:15]MH_SAM_APDU [09:14:15]CAPDU: 80 11 00 00 [09:14:15]Write to MH i2c: E2 08 00 85 6B 80 11 00 00 00 00 00 00 6A [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:15]Read from MH i2c: E2 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 17 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: E2 17 00 85 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [09:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:14:15]wFMCommunicate OK [09:14:15]CreateOFDProtocolMessage done [09:14:15]OFDSenderStorePacket 112422 [09:14:15]StoreOFDPacket docnum=112422 [09:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 54 07 01 62 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 17 00 00 00 F4 03 04 00 99 E7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B7 01 00 35 04 06 00 A3 60 91 FA 28 F6 C6 D5 C1 7D 78 3F 50 ED [09:14:15]CheckFolder [09:14:15]dirname=/storage/ofd_packets [09:14:15]CheckFolder done [09:14:15]ProducePacketName [09:14:15]name=ofd_packets/00112422 [09:14:15]NVStorageSaveData ofd_packets/00112422 [09:14:15]File name is /storage/ofd_packets/00112422 [09:14:15]Write 301 bytes [09:14:15]NVStorageSaveData done [09:14:15]OFDSenderStorePacket done [09:14:15]KKMCreateOFDPacket done [09:14:15]NVStorageSaveData kkm_last_timestamp [09:14:15]File name is /storage/kkm_last_timestamp [09:14:15]Write 4 bytes [09:14:15]NVStorageSaveData done [09:14:15]ExternCall_PrintAddStr [09:14:15]wPrintStart [09:14:15]Write to MH i2c: 01 00 00 86 6B F1 [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: 01 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: 01 07 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: 01 07 00 86 6B 00 00 00 00 00 FF 0F 06 [09:14:15]RasterBufferAndPrint [09:14:15]line Счет N : (1)321101 [09:14:15]line ИНН: 02508201610067 [09:14:15]line Контрольно-Кассовый Чек [09:14:15]line ПРОДАЖА [09:14:15]line ТРК (МРК, ГНК) : 11 [09:14:15]line Товар: 2710124130 [09:14:15]line Аи-92-К-5 [09:14:15]line 4.520 * 66.40 [09:14:15]line = 300.13 [09:14:15]line НДС 12% НСП 1% [09:14:15]line > о реализуемом товаре [09:14:15]line ОКРУГЛЕНИЕ: -0.13 [09:14:15]line ИТОГО: 300.00 [09:14:15]line Внесено: 300.00 [09:14:15]line СДАЧА: 0.00 [09:14:15]line НСП 1% : 2.66 [09:14:15]line НДС 12% : 31.87 [09:14:15]line Наличными: 300.00 [09:14:15]line Безнал.: 0.00 [09:14:15]line Место: АЗС № 65 "Партнер Нефть" [09:14:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:14:15]line СНО: Общий режим [09:14:15]line Чек 23 23.06.2024 09:15 [09:14:15]line Смена: 392 ФФД: 1.0 [09:14:15]line ЗНМ: 0300000198 [09:14:15]line РНМ: 0000000000092771 [09:14:15]line Версия ККМ: 001 [09:14:15]line ФМ: 0000000000875083 [09:14:15]line ФД: 112422 [09:14:15]line ФПД: 179635161278710 [09:14:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T091505&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112422&fm=179635161278710&tin=02508201610067®Number=0000000000092771&sum=30000 [09:14:15]OFD Sender: Processing packet 112422 [packets to send 38, broken 37] [09:14:15]ProducePacketName [09:14:15]name=ofd_packets/00112422 [09:14:15]OFD Sender: To server: pG, [09:14:15]CommunicateWithHost lk.salyk.kg:30040 [09:14:15]ConnectInit lk.salyk.kg [09:14:15]written 0, free lines is 4095 [09:14:16]Connected sock=10 [09:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 54 07 01 62 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 17 00 00 00 F4 03 04 00 99 E7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B7 01 00 35 04 06 00 A3 60 91 FA 28 F6 C6 D5 C1 7D 78 3F 50 ED [09:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8A AC 47 00 64 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B7 01 00 F4 03 04 00 8B 7E 77 66 B6 04 01 00 00 0E 29 B2 90 A2 04 72 FC [09:14:16]CommunicateWithHost err = 0 [09:14:16]CheckOFDResponse [09:14:16]1017 (14) - 77093643461234 [09:14:16]1041 (16) - 0000000000875083 [09:14:16]1040 (4) - 112422 [09:14:16]1012 (4) - 23.06.2024 01:46 [09:14:16]1206 (1) - 0 [09:14:16]OFD Sender: Remove packet 112422 [09:14:16]ProducePacketName [09:14:16]name=ofd_packets/00112422 [09:14:16]NVStorageDeleteData [09:14:16]Write to MH i2c: 01 00 00 B1 6B 1C [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: 01 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: 01 07 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: 01 07 00 B1 6B 00 00 00 00 00 CD 0C FC [09:14:16]RasterBufferAndPrint [09:14:16]line [09:14:16]line [09:14:16]line [09:14:16]line [09:14:16]line [09:14:16]written 0, free lines is 3283 [09:14:16]MH_Cut [09:14:16]Write to MH i2c: D1 01 00 B8 6B 01 F5 [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: D1 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: D1 01 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: D1 01 00 B8 6B 00 F4 [09:14:16]Write to MH i2c: 01 00 00 B9 6B 24 [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]OFD Sender: No OFD packet to send [09:14:17]*** Cut start [09:14:17]*** Partial cut [09:14:17]*** CUTSNS_PIN = 1 [09:14:17]*** CUTSNS_PIN = 0 [09:14:17]*** Brake cut motor [09:14:17]Read from MH i2c: 01 [09:14:17]MH_I2C_Read... [09:14:17]*** Stop cut motor [09:14:17]*** Cut end [09:14:17]Read from MH i2c: 01 07 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: 01 07 00 B9 6B 00 00 00 00 00 FF 0F 39 [09:14:17]process_action close_receipt done [09:14:17]requested_data is exist [09:14:17]produce_requested_data [09:14:17]requested_item fm.sn is exist - process it [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 11 00 00 [09:14:17]Write to MH i2c: E2 08 00 BA 6B 80 11 00 00 00 00 00 00 9F [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 17 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 17 00 BA 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F1 [09:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:14:17]wFMCommunicate OK [09:14:17]requested_item fd.num is exist - process it [09:14:17]SAM_PROTO_GetFieldsCounters [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 13 00 00 [09:14:17]Write to MH i2c: E2 08 00 BB 6B 80 13 00 00 00 00 00 00 A2 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 62 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 62 00 BB 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 26 B7 01 00 0E 04 04 00 88 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 6F [09:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 26 B7 01 00 0E 04 04 00 88 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 [09:14:17]wFMCommunicate OK [09:14:17]SAM_PROTO_GetFieldsCounters done [09:14:17]requested_item shift.num is exist - process it [09:14:17]requested_item shift.opened is exist - process it [09:14:17]req_shift_opened [09:14:17]FM_GetShiftState [09:14:17]SAM_PROTO_GetShiftState [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 13 01 00 [09:14:17]Write to MH i2c: E2 08 00 BC 6B 80 13 01 00 00 00 00 00 A4 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:18]Read from MH i2c: E2 [09:14:18]MH_I2C_Read... [09:14:18]Read from MH i2c: E2 0E 00 [09:14:18]MH_I2C_Read... [09:14:18]Read from MH i2c: E2 0E 00 BC 6B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C2 [09:14:18]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:14:18]wFMCommunicate OK [09:14:18]SAM_PROTO_GetShiftState done [09:14:18]FM_GetShiftState done [09:14:18]req_shift_opened done [09:14:18]requested_item shift.open_date is exist - process it [09:14:18]req_shift_open_date [09:14:18]req_shift_open_date done [09:14:18]produce_requested_data done [09:14:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112422,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:14:18]process_action_free close_receipt [09:14:18]json_value_free [09:14:18]json_value_free done [09:14:18]process_json_proto returns [09:14:18]Send response to host [09:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112422,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:14:18]free response buf [09:14:18]execute_script done [09:14:18]execute_script returns [09:14:18]free content buf [09:14:18]Sock 9.Close socket [09:14:18]Sock 9.Thread stoped [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:47]accept exits with 7 [09:15:47]New connection [09:15:47]New thread 3066813796 created [09:15:47]Thread 3066957156 joined [09:15:47]Waiting for new connection... [09:15:47] Sock 7.Parse request [09:15:47]Sock 7.Check first char [09:15:47]Sock 7.First char is OK [09:15:47]request: POST /json_proto HTTP/1.0 [09:15:47]Method: POST [09:15:47]URL: /json_proto [09:15:47]Method is POST - this is cgi request [09:15:47]url: /json_proto [09:15:47]query_string will be loaded in cgi processing [09:15:47]execute_cgi json_proto POST (null) [09:15:47]execute_cgi path=json_proto method=POST [09:15:47]POST find Content-Length [09:15:47]Host: 172.17.59.68:8080 [09:15:47]Content-Length: 677 [09:15:47]Content-Type: application/json [09:15:47] [09:15:47]POST finish read [09:15:47]Found Content-Length = 677 [09:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:47]execute_script... [09:15: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)321102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:47]POST & json_proto [09:15:47]process_json_proto [09:15:47]json parsed OK: [09:15:47]protocol is kg_v1.0 [09:15:47]action value=close_receipt [09:15:47]process_action close_receipt [09:15:47]cmd_close_receipt [09:15:47]MH_GetDate [09:15:47]Write to MH i2c: F0 00 00 BD 6B 17 [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: F0 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: F0 09 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: F0 09 00 BD 6B 00 F7 E7 77 66 BC EC 60 65 48 [09:15:47]GetLastDocTimeStamp 1719134105 [09:15:47]current date 1719134199 [09:15:47]FM_GetShiftState [09:15:47]SAM_PROTO_GetShiftState [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 13 01 00 [09:15:47]Write to MH i2c: E2 08 00 BE 6B 80 13 01 00 00 00 00 00 A6 [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 0E 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 0E 00 BE 6B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C4 [09:15:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:15:48]wFMCommunicate OK [09:15:48]SAM_PROTO_GetShiftState done [09:15:48]FM_GetShiftState done [09:15:48]opened in 1719106490 [09:15:48]opened+sec_in_day 1719192890 [09:15:48]quantity*price = 40039 [09:15:48]sum+1 = 40040 [09:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 24 23.06.2024 09:16 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112423 ФПД: 106911048063989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T091639&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112423&fm=106911048063989&tin=02508201610067®Number=0000000000092771&sum=40000 [09:15:49]StoreToDocumentArchive [09:15:49]shift 392 fd 112423 [09:15:49]save to /storage/0392/doc_00112423 [09:15:49]save last doc name /storage/0392/doc_00112423 to /storage/kkm_last_doc_name [09:15:49]save OK [09:15:49]Clear old archive folders... [09:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:49]tlvbuf is 01234570 [09:15:49]SAM_PROTO_ClearQueue [09:15:49]wFMCommunicate request_size=4 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 09 00 00 [09:15:49]Write to MH i2c: E2 08 00 CB 6B 80 09 00 00 00 00 00 00 A8 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 CB 6B 00 90 00 AA [09:15:49]RAPDU: 90 00 [09:15:49]wFMCommunicate OK [09:15:49]SAM_PROTO_ClearQueue done [09:15:49]KKMCreateOFDPacket [09:15:49]OFDProtocolAddRootSTLVToBuf [09:15:49]FM_MakeSignedData [09:15:49]FM_MakeSignedData [09:15:49]SAM_PROTO_SignData [09:15:49]wFMCommunicate request_size=4 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 0D 01 02 [09:15:49]Write to MH i2c: E2 08 00 CC 6B 80 0D 01 02 00 00 00 00 B0 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 CC 6B 00 90 00 AB [09:15:49]RAPDU: 90 00 [09:15:49]wFMCommunicate OK [09:15:49]wFMCommunicate request_size=255 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 18 00 00 00 F4 03 04 00 F7 E7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B7 01 00 35 04 06 00 61 [09:15:49]Write to MH i2c: E2 02 01 CD 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 18 00 00 00 F4 03 04 00 F7 E7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B7 01 00 35 04 06 00 61 00 00 CE [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 CD 6B 00 90 00 AC [09:15:49]RAPDU: 90 00 [09:15:49]wFMCommunicate OK [09:15:49]wFMCommunicate request_size=10 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 0D 02 02 05 3C 2B 0A DB F5 [09:15:49]Write to MH i2c: E2 0D 00 CE 6B 80 0D 02 02 05 00 3C 2B 0A DB F5 00 00 FE [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 CE 6B 00 90 00 AD [09:15:49]RAPDU: 90 00 [09:15:49]wFMCommunicate OK [09:15:49]wFMCommunicate request_size=4 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 0D 03 02 [09:15:49]Write to MH i2c: E2 08 00 CF 6B 80 0D 03 02 00 00 00 00 B5 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 0B 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 0B 00 CF 6B 00 BE DE BF B9 5E D9 46 C0 90 00 07 [09:15:49]RAPDU: BE DE BF B9 5E D9 46 C0 90 00 [09:15:49]wFMCommunicate OK [09:15:49]SAM_PROTO_SignData done [09:15:49]FM_MakeSignedData done [09:15:49]CreateOFDProtocolMessage [09:15:49]wFMCommunicate request_size=4 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 11 00 00 [09:15:49]Write to MH i2c: E2 08 00 D0 6B 80 11 00 00 00 00 00 00 B5 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 17 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 17 00 D0 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 07 [09:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:15:49]wFMCommunicate OK [09:15:49]CreateOFDProtocolMessage done [09:15:49]OFDSenderStorePacket 112423 [09:15:49]StoreOFDPacket docnum=112423 [09:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B3 96 07 01 95 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 18 00 00 00 F4 03 04 00 F7 E7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B7 01 00 35 04 06 00 61 3C 2B 0A DB F5 BE DE BF B9 5E D9 46 C0 [09:15:49]CheckFolder [09:15:49]dirname=/storage/ofd_packets [09:15:49]CheckFolder done [09:15:49]ProducePacketName [09:15:49]name=ofd_packets/00112423 [09:15:49]NVStorageSaveData ofd_packets/00112423 [09:15:49]File name is /storage/ofd_packets/00112423 [09:15:49]Write 301 bytes [09:15:49]NVStorageSaveData done [09:15:49]OFDSenderStorePacket done [09:15:49]KKMCreateOFDPacket done [09:15:49]NVStorageSaveData kkm_last_timestamp [09:15:49]File name is /storage/kkm_last_timestamp [09:15:49]Write 4 bytes [09:15:49]NVStorageSaveData done [09:15:49]ExternCall_PrintAddStr [09:15:49]wPrintStart [09:15:49]Write to MH i2c: 01 00 00 D1 6B 3C [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 07 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 07 00 D1 6B 00 00 00 00 00 FF 0F 51 [09:15:49]RasterBufferAndPrint [09:15:49]line Счет N : (1)321102 [09:15:49]line ИНН: 02508201610067 [09:15:49]line Контрольно-Кассовый Чек [09:15:49]line ПРОДАЖА [09:15:49]line ТРК (МРК, ГНК) : 11 [09:15:49]line Товар: 2710124130 [09:15:49]line Аи-92-К-5 [09:15:49]line 6.030 * 66.40 [09:15:49]line = 400.39 [09:15:49]line НДС 12% НСП 1% [09:15:49]line > о реализуемом товаре [09:15:49]line ОКРУГЛЕНИЕ: -0.39 [09:15:49]line ИТОГО: 400.00 [09:15:49]line Внесено: 400.00 [09:15:49]line СДАЧА: 0.00 [09:15:49]line НСП 1% : 3.54 [09:15:49]line НДС 12% : 42.52 [09:15:49]line Наличными: 400.00 [09:15:49]line Безнал.: 0.00 [09:15:49]line Место: АЗС № 65 "Партнер Нефть" [09:15:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:15:49]line СНО: Общий режим [09:15:49]line Чек 24 23.06.2024 09:16 [09:15:49]line Смена: 392 ФФД: 1.0 [09:15:49]line ЗНМ: 0300000198 [09:15:49]line РНМ: 0000000000092771 [09:15:49]line Версия ККМ: 001 [09:15:49]line ФМ: 0000000000875083 [09:15:49]line ФД: 112423 [09:15:49]line ФПД: 106911048063989 [09:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T091639&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112423&fm=106911048063989&tin=02508201610067®Number=0000000000092771&sum=40000 [09:15:50]OFD Sender: Processing packet 112423 [packets to send 38, broken 37] [09:15:50]ProducePacketName [09:15:50]name=ofd_packets/00112423 [09:15:50]OFD Sender: To server: pG, [09:15:50]CommunicateWithHost lk.salyk.kg:30040 [09:15:50]ConnectInit lk.salyk.kg [09:15:50]written 0, free lines is 4095 [09:15:50]Connected sock=10 [09:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B3 96 07 01 95 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 18 00 00 00 F4 03 04 00 F7 E7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B7 01 00 35 04 06 00 61 3C 2B 0A DB F5 BE DE BF B9 5E D9 46 C0 [09:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EA ED 47 00 1A 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B7 01 00 F4 03 04 00 E9 7E 77 66 B6 04 01 00 00 5B 3C 30 0B AE EC AE 66 [09:15:50]CommunicateWithHost err = 0 [09:15:50]CheckOFDResponse [09:15:50]1017 (14) - 77093643461234 [09:15:50]1041 (16) - 0000000000875083 [09:15:50]1040 (4) - 112423 [09:15:50]1012 (4) - 23.06.2024 01:48 [09:15:50]1206 (1) - 0 [09:15:50]OFD Sender: Remove packet 112423 [09:15:50]ProducePacketName [09:15:50]name=ofd_packets/00112423 [09:15:50]NVStorageDeleteData [09:15:50]Write to MH i2c: 01 00 00 FC 6B 67 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 07 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 07 00 FC 6B 00 00 00 00 00 C8 0C 42 [09:15:50]RasterBufferAndPrint [09:15:50]line [09:15:50]line [09:15:50]line [09:15:50]line [09:15:50]line [09:15:50]written 0, free lines is 3279 [09:15:50]MH_Cut [09:15:50]Write to MH i2c: D1 01 00 03 6C 01 41 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: D1 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: D1 01 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: D1 01 00 03 6C 00 40 [09:15:50]Write to MH i2c: 01 00 00 04 6C 70 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]OFD Sender: No OFD packet to send [09:15:51]*** Cut start [09:15:51]*** Partial cut [09:15:51]*** CUTSNS_PIN = 1 [09:15:51]*** CUTSNS_PIN = 0 [09:15:51]*** Brake cut motor [09:15:51]Read from MH i2c: 01 [09:15:51]MH_I2C_Read... [09:15:51]*** Stop cut motor [09:15:51]*** Cut end [09:15:51]Read from MH i2c: 01 07 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 04 6C 00 00 00 00 00 FF 0F 85 [09:15:51]process_action close_receipt done [09:15:51]requested_data is exist [09:15:51]produce_requested_data [09:15:51]requested_item fm.sn is exist - process it [09:15:51]wFMCommunicate request_size=4 [09:15:51]MH_SAM_APDU [09:15:51]CAPDU: 80 11 00 00 [09:15:51]Write to MH i2c: E2 08 00 05 6C 80 11 00 00 00 00 00 00 EB [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:51]Read from MH i2c: E2 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 17 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 17 00 05 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [09:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:15:51]wFMCommunicate OK [09:15:51]requested_item fd.num is exist - process it [09:15:51]SAM_PROTO_GetFieldsCounters [09:15:51]wFMCommunicate request_size=4 [09:15:51]MH_SAM_APDU [09:15:51]CAPDU: 80 13 00 00 [09:15:51]Write to MH i2c: E2 08 00 06 6C 80 13 00 00 00 00 00 00 EE [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 62 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 62 00 06 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 27 B7 01 00 0E 04 04 00 88 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 BF [09:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 27 B7 01 00 0E 04 04 00 88 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 [09:15:52]wFMCommunicate OK [09:15:52]SAM_PROTO_GetFieldsCounters done [09:15:52]requested_item shift.num is exist - process it [09:15:52]requested_item shift.opened is exist - process it [09:15:52]req_shift_opened [09:15:52]FM_GetShiftState [09:15:52]SAM_PROTO_GetShiftState [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 13 01 00 [09:15:52]Write to MH i2c: E2 08 00 07 6C 80 13 01 00 00 00 00 00 F0 [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 0E 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 0E 00 07 6C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0E [09:15:52]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:15:52]wFMCommunicate OK [09:15:52]SAM_PROTO_GetShiftState done [09:15:52]FM_GetShiftState done [09:15:52]req_shift_opened done [09:15:52]requested_item shift.open_date is exist - process it [09:15:52]req_shift_open_date [09:15:52]req_shift_open_date done [09:15:52]produce_requested_data done [09:15:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112423,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:15:52]process_action_free close_receipt [09:15:52]json_value_free [09:15:52]json_value_free done [09:15:52]process_json_proto returns [09:15:52]Send response to host [09:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112423,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:15:52]free response buf [09:15:52]execute_script done [09:15:52]execute_script returns [09:15:52]free content buf [09:15:52]Sock 7.Close socket [09:15:52]Sock 7.Thread stoped [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]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:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:35]accept exits with 9 [09:19:35]New connection [09:19:35]New thread 3066957156 created [09:19:35]Thread 3066813796 joined [09:19:35]Waiting for new connection... [09:19:35] Sock 9.Parse request [09:19:35]Sock 9.Check first char [09:19:35]Sock 9.First char is OK [09:19:35]request: POST /json_proto HTTP/1.0 [09:19:35]Method: POST [09:19:35]URL: /json_proto [09:19:35]Method is POST - this is cgi request [09:19:35]url: /json_proto [09:19:35]query_string will be loaded in cgi processing [09:19:35]execute_cgi json_proto POST (null) [09:19:35]execute_cgi path=json_proto method=POST [09:19:35]POST find Content-Length [09:19:35]Host: 172.17.59.68:8080 [09:19:35]Content-Length: 674 [09:19:35]Content-Type: application/json [09:19:35] [09:19:35]POST finish read [09:19:35]Found Content-Length = 674 [09:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:35]execute_script... [09:19: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)321103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:35]POST & json_proto [09:19:35]process_json_proto [09:19:35]json parsed OK: [09:19:35]protocol is kg_v1.0 [09:19:35]action value=close_receipt [09:19:35]process_action close_receipt [09:19:35]cmd_close_receipt [09:19:35]MH_GetDate [09:19:35]Write to MH i2c: F0 00 00 08 6C 63 [09:19:35]Write i2c OK [09:19:35]MH_I2C_Read... [09:19:35]Read from MH i2c: F0 [09:19:35]MH_I2C_Read... [09:19:35]Read from MH i2c: F0 09 00 [09:19:35]MH_I2C_Read... [09:19:35]Read from MH i2c: F0 09 00 08 6C 00 DB E8 77 66 BC EC 60 65 79 [09:19:35]GetLastDocTimeStamp 1719134199 [09:19:35]current date 1719134427 [09:19:35]FM_GetShiftState [09:19:35]SAM_PROTO_GetShiftState [09:19:35]wFMCommunicate request_size=4 [09:19:35]MH_SAM_APDU [09:19:35]CAPDU: 80 13 01 00 [09:19:35]Write to MH i2c: E2 08 00 09 6C 80 13 01 00 00 00 00 00 F2 [09:19:35]Write i2c OK [09:19:35]MH_I2C_Read... [09:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:35]Read from MH i2c: E2 [09:19:35]MH_I2C_Read... [09:19:35]Read from MH i2c: E2 0E 00 [09:19:35]MH_I2C_Read... [09:19:35]Read from MH i2c: E2 0E 00 09 6C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 10 [09:19:35]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:19:35]wFMCommunicate OK [09:19:35]SAM_PROTO_GetShiftState done [09:19:35]FM_GetShiftState done [09:19:35]opened in 1719106490 [09:19:35]opened+sec_in_day 1719192890 [09:19:35]quantity*price = 20047 [09:19:35]sum+1 = 20049 [09:19:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 25 23.06.2024 09:20 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112424 ФПД: 136449451909189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T092027&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112424&fm=136449451909189&tin=02508201610067®Number=0000000000092771&sum=20000 [09:19:36]StoreToDocumentArchive [09:19:36]shift 392 fd 112424 [09:19:36]save to /storage/0392/doc_00112424 [09:19:36]save last doc name /storage/0392/doc_00112424 to /storage/kkm_last_doc_name [09:19:36]save OK [09:19:36]Clear old archive folders... [09:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:19:36]tlvbuf is 01153260 [09:19:36]SAM_PROTO_ClearQueue [09:19:36]wFMCommunicate request_size=4 [09:19:36]MH_SAM_APDU [09:19:36]CAPDU: 80 09 00 00 [09:19:36]Write to MH i2c: E2 08 00 16 6C 80 09 00 00 00 00 00 00 F4 [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:36]Read from MH i2c: E2 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 03 00 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 03 00 16 6C 00 90 00 F6 [09:19:36]RAPDU: 90 00 [09:19:36]wFMCommunicate OK [09:19:36]SAM_PROTO_ClearQueue done [09:19:36]KKMCreateOFDPacket [09:19:36]OFDProtocolAddRootSTLVToBuf [09:19:36]FM_MakeSignedData [09:19:36]FM_MakeSignedData [09:19:36]SAM_PROTO_SignData [09:19:36]wFMCommunicate request_size=4 [09:19:36]MH_SAM_APDU [09:19:36]CAPDU: 80 0D 01 02 [09:19:36]Write to MH i2c: E2 08 00 17 6C 80 0D 01 02 00 00 00 00 FC [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:36]Read from MH i2c: E2 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 03 00 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 03 00 17 6C 00 90 00 F7 [09:19:36]RAPDU: 90 00 [09:19:36]wFMCommunicate OK [09:19:36]wFMCommunicate request_size=255 [09:19:36]MH_SAM_APDU [09:19:36]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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 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 19 00 00 00 F4 03 04 00 DB E8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B7 01 00 35 04 06 00 7C 19 9D 1C [09:19:36]Write to MH i2c: E2 02 01 18 6C 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 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 19 00 00 00 F4 03 04 00 DB E8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B7 01 00 35 04 06 00 7C 19 9D 1C 00 00 AB [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:37]Read from MH i2c: E2 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 03 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 03 00 18 6C 00 90 00 F8 [09:19:37]RAPDU: 90 00 [09:19:37]wFMCommunicate OK [09:19:37]wFMCommunicate request_size=7 [09:19:37]MH_SAM_APDU [09:19:37]CAPDU: 80 0D 02 02 02 60 45 [09:19:37]Write to MH i2c: E2 0A 00 19 6C 80 0D 02 02 02 00 60 45 00 00 A8 [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:37]Read from MH i2c: E2 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 03 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 03 00 19 6C 00 90 00 F9 [09:19:37]RAPDU: 90 00 [09:19:37]wFMCommunicate OK [09:19:37]wFMCommunicate request_size=4 [09:19:37]MH_SAM_APDU [09:19:37]CAPDU: 80 0D 03 02 [09:19:37]Write to MH i2c: E2 08 00 1A 6C 80 0D 03 02 00 00 00 00 01 [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:37]Read from MH i2c: E2 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 0B 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 0B 00 1A 6C 00 3C 22 C4 7C F9 15 7E BC 90 00 E8 [09:19:37]RAPDU: 3C 22 C4 7C F9 15 7E BC 90 00 [09:19:37]wFMCommunicate OK [09:19:37]SAM_PROTO_SignData done [09:19:37]FM_MakeSignedData done [09:19:37]CreateOFDProtocolMessage [09:19:37]wFMCommunicate request_size=4 [09:19:37]MH_SAM_APDU [09:19:37]CAPDU: 80 11 00 00 [09:19:37]Write to MH i2c: E2 08 00 1B 6C 80 11 00 00 00 00 00 00 01 [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:37]Read from MH i2c: E2 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 17 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 17 00 1B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [09:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:19:37]wFMCommunicate OK [09:19:37]CreateOFDProtocolMessage done [09:19:37]OFDSenderStorePacket 112424 [09:19:37]StoreOFDPacket docnum=112424 [09:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 61 CC 04 01 47 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 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 19 00 00 00 F4 03 04 00 DB E8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B7 01 00 35 04 06 00 7C 19 9D 1C 60 45 3C 22 C4 7C F9 15 7E BC [09:19:37]CheckFolder [09:19:37]dirname=/storage/ofd_packets [09:19:37]CheckFolder done [09:19:37]ProducePacketName [09:19:37]name=ofd_packets/00112424 [09:19:37]NVStorageSaveData ofd_packets/00112424 [09:19:37]File name is /storage/ofd_packets/00112424 [09:19:37]Write 298 bytes [09:19:37]NVStorageSaveData done [09:19:37]OFDSenderStorePacket done [09:19:37]KKMCreateOFDPacket done [09:19:37]NVStorageSaveData kkm_last_timestamp [09:19:37]File name is /storage/kkm_last_timestamp [09:19:37]Write 4 bytes [09:19:37]NVStorageSaveData done [09:19:37]ExternCall_PrintAddStr [09:19:37]wPrintStart [09:19:37]Write to MH i2c: 01 00 00 1C 6C 88 [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: 01 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: 01 07 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: 01 07 00 1C 6C 00 00 00 00 00 FF 0F 9D [09:19:37]RasterBufferAndPrint [09:19:37]line Счет N : (1)321103 [09:19:37]line ИНН: 02508201610067 [09:19:37]line Контрольно-Кассовый Чек [09:19:37]line ПРОДАЖА [09:19:37]line ТРК (МРК, ГНК) : 22 [09:19:37]line Товар: 2710194210 [09:19:37]line ДТ-К-5 [09:19:37]line 2.750 * 72.90 [09:19:37]line = 200.48 [09:19:37]line НДС 12% НСП 1% [09:19:37]line > о реализуемом товаре [09:19:37]line ОКРУГЛЕНИЕ: -0.48 [09:19:37]line ИТОГО: 200.00 [09:19:37]line Внесено: 200.00 [09:19:37]line СДАЧА: 0.00 [09:19:37]line НСП 1% : 1.77 [09:19:37]line НДС 12% : 21.29 [09:19:37]line Наличными: 200.00 [09:19:37]line Безнал.: 0.00 [09:19:37]line Место: АЗС № 65 "Партнер Нефть" [09:19:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:19:37]line СНО: Общий режим [09:19:37]line Чек 25 23.06.2024 09:20 [09:19:37]line Смена: 392 ФФД: 1.0 [09:19:37]line ЗНМ: 0300000198 [09:19:37]line РНМ: 0000000000092771 [09:19:37]line Версия ККМ: 001 [09:19:37]line ФМ: 0000000000875083 [09:19:37]line ФД: 112424 [09:19:37]line ФПД: 136449451909189 [09:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T092027&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112424&fm=136449451909189&tin=02508201610067®Number=0000000000092771&sum=20000 [09:19:37]OFD Sender: Processing packet 112424 [packets to send 38, broken 37] [09:19:37]ProducePacketName [09:19:37]name=ofd_packets/00112424 [09:19:37]OFD Sender: To server: pG, [09:19:37]CommunicateWithHost lk.salyk.kg:30040 [09:19:37]ConnectInit lk.salyk.kg [09:19:37]written 0, free lines is 4095 [09:19:37]Connected sock=10 [09:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 61 CC 04 01 47 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 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 19 00 00 00 F4 03 04 00 DB E8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B7 01 00 35 04 06 00 7C 19 9D 1C 60 45 3C 22 C4 7C F9 15 7E BC [09:19:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 53 B9 47 00 EB 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B7 01 00 F4 03 04 00 CC 7F 77 66 B6 04 01 00 00 0F 47 BE F6 58 D6 CF 76 [09:19:37]CommunicateWithHost err = 0 [09:19:37]CheckOFDResponse [09:19:37]1017 (14) - 77093643461234 [09:19:37]1041 (16) - 0000000000875083 [09:19:37]1040 (4) - 112424 [09:19:37]1012 (4) - 23.06.2024 01:52 [09:19:37]1206 (1) - 0 [09:19:37]OFD Sender: Remove packet 112424 [09:19:37]ProducePacketName [09:19:37]name=ofd_packets/00112424 [09:19:37]NVStorageDeleteData [09:19:38]Write to MH i2c: 01 00 00 47 6C B3 [09:19:38]Write i2c OK [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: 01 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: 01 07 00 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: 01 07 00 47 6C 00 00 00 00 00 D4 0C 9A [09:19:38]RasterBufferAndPrint [09:19:38]line [09:19:38]line [09:19:38]line [09:19:38]line [09:19:38]line [09:19:38]written 0, free lines is 3292 [09:19:38]MH_Cut [09:19:38]Write to MH i2c: D1 01 00 4E 6C 01 8C [09:19:38]Write i2c OK [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: D1 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: D1 01 00 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: D1 01 00 4E 6C 00 8B [09:19:38]Write to MH i2c: 01 00 00 4F 6C BB [09:19:38]Write i2c OK [09:19:38]MH_I2C_Read... [09:19:38]OFD Sender: No OFD packet to send [09:19:38]*** Cut start [09:19:38]*** Partial cut [09:19:38]*** CUTSNS_PIN = 1 [09:19:38]*** CUTSNS_PIN = 0 [09:19:39]*** Brake cut motor [09:19:39]Read from MH i2c: 01 [09:19:39]MH_I2C_Read... [09:19:39]*** Stop cut motor [09:19:39]*** Cut end [09:19:39]Read from MH i2c: 01 07 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: 01 07 00 4F 6C 00 00 00 00 00 FF 0F D0 [09:19:39]process_action close_receipt done [09:19:39]requested_data is exist [09:19:39]produce_requested_data [09:19:39]requested_item fm.sn is exist - process it [09:19:39]wFMCommunicate request_size=4 [09:19:39]MH_SAM_APDU [09:19:39]CAPDU: 80 11 00 00 [09:19:39]Write to MH i2c: E2 08 00 50 6C 80 11 00 00 00 00 00 00 36 [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:39]Read from MH i2c: E2 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 17 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 17 00 50 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [09:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:19:39]wFMCommunicate OK [09:19:39]requested_item fd.num is exist - process it [09:19:39]SAM_PROTO_GetFieldsCounters [09:19:39]wFMCommunicate request_size=4 [09:19:39]MH_SAM_APDU [09:19:39]CAPDU: 80 13 00 00 [09:19:39]Write to MH i2c: E2 08 00 51 6C 80 13 00 00 00 00 00 00 39 [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:39]Read from MH i2c: E2 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 62 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 62 00 51 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 28 B7 01 00 0E 04 04 00 88 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 0E [09:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 28 B7 01 00 0E 04 04 00 88 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 [09:19:39]wFMCommunicate OK [09:19:39]SAM_PROTO_GetFieldsCounters done [09:19:39]requested_item shift.num is exist - process it [09:19:39]requested_item shift.opened is exist - process it [09:19:39]req_shift_opened [09:19:39]FM_GetShiftState [09:19:39]SAM_PROTO_GetShiftState [09:19:39]wFMCommunicate request_size=4 [09:19:39]MH_SAM_APDU [09:19:39]CAPDU: 80 13 01 00 [09:19:39]Write to MH i2c: E2 08 00 52 6C 80 13 01 00 00 00 00 00 3B [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:39]Read from MH i2c: E2 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 0E 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 0E 00 52 6C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 59 [09:19:39]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:19:39]wFMCommunicate OK [09:19:39]SAM_PROTO_GetShiftState done [09:19:39]FM_GetShiftState done [09:19:39]req_shift_opened done [09:19:39]requested_item shift.open_date is exist - process it [09:19:39]req_shift_open_date [09:19:39]req_shift_open_date done [09:19:39]produce_requested_data done [09:19:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112424,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:19:39]process_action_free close_receipt [09:19:39]json_value_free [09:19:39]json_value_free done [09:19:39]process_json_proto returns [09:19:39]Send response to host [09:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112424,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:19:39]free response buf [09:19:39]execute_script done [09:19:39]execute_script returns [09:19:39]free content buf [09:19:39]Sock 9.Close socket [09:19:39]Sock 9.Thread stoped [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:12]accept exits with 7 [09:52:12]New connection [09:52:12]New thread 3066813796 created [09:52:12]Thread 3066957156 joined [09:52:12]Waiting for new connection... [09:52:12] Sock 7.Parse request [09:52:12]Sock 7.Check first char [09:52:12]Sock 7.First char is OK [09:52:12]request: POST /json_proto HTTP/1.0 [09:52:12]Method: POST [09:52:12]URL: /json_proto [09:52:12]Method is POST - this is cgi request [09:52:12]url: /json_proto [09:52:12]query_string will be loaded in cgi processing [09:52:12]execute_cgi json_proto POST (null) [09:52:12]execute_cgi path=json_proto method=POST [09:52:12]POST find Content-Length [09:52:12]Host: 172.17.59.68:8080 [09:52:12]Content-Length: 682 [09:52:12]Content-Type: application/json [09:52:12] [09:52:12]POST finish read [09:52:12]Found Content-Length = 682 [09:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "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" ] } } [09:52:12]execute_script... [09:52: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)321104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "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" ] } } [09:52:12]POST & json_proto [09:52:12]process_json_proto [09:52:12]json parsed OK: [09:52:12]protocol is kg_v1.0 [09:52:12]action value=close_receipt [09:52:12]process_action close_receipt [09:52:12]cmd_close_receipt [09:52:12]MH_GetDate [09:52:12]Write to MH i2c: F0 00 00 53 6C AE [09:52:12]Write i2c OK [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: F0 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: F0 09 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: F0 09 00 53 6C 00 81 F0 77 66 BC EC 60 65 72 [09:52:12]GetLastDocTimeStamp 1719134427 [09:52:12]current date 1719136385 [09:52:12]FM_GetShiftState [09:52:12]SAM_PROTO_GetShiftState [09:52:12]wFMCommunicate request_size=4 [09:52:12]MH_SAM_APDU [09:52:12]CAPDU: 80 13 01 00 [09:52:12]Write to MH i2c: E2 08 00 54 6C 80 13 01 00 00 00 00 00 3D [09:52:12]Write i2c OK [09:52:12]MH_I2C_Read... [09:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:12]Read from MH i2c: E2 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 0E 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 0E 00 54 6C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 5B [09:52:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:52:12]wFMCommunicate OK [09:52:12]SAM_PROTO_GetShiftState done [09:52:12]FM_GetShiftState done [09:52:12]opened in 1719106490 [09:52:12]opened+sec_in_day 1719192890 [09:52:12]quantity*price = 120051 [09:52:12]sum+1 = 120052 [09:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 26 23.06.2024 09:53 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112425 ФПД: 124075181208276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T095305&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112425&fm=124075181208276&tin=02508201610067®Number=0000000000092771&sum=120000 [09:52:13]StoreToDocumentArchive [09:52:13]shift 392 fd 112425 [09:52:13]save to /storage/0392/doc_00112425 [09:52:13]save last doc name /storage/0392/doc_00112425 to /storage/kkm_last_doc_name [09:52:13]save OK [09:52:13]Clear old archive folders... [09:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:13]tlvbuf is 013488B0 [09:52:13]SAM_PROTO_ClearQueue [09:52:13]wFMCommunicate request_size=4 [09:52:13]MH_SAM_APDU [09:52:13]CAPDU: 80 09 00 00 [09:52:13]Write to MH i2c: E2 08 00 61 6C 80 09 00 00 00 00 00 00 3F [09:52:13]Write i2c OK [09:52:13]MH_I2C_Read... [09:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:13]Read from MH i2c: E2 [09:52:13]MH_I2C_Read... [09:52:13]Read from MH i2c: E2 03 00 [09:52:13]MH_I2C_Read... [09:52:13]Read from MH i2c: E2 03 00 61 6C 00 90 00 41 [09:52:13]RAPDU: 90 00 [09:52:13]wFMCommunicate OK [09:52:13]SAM_PROTO_ClearQueue done [09:52:13]KKMCreateOFDPacket [09:52:13]OFDProtocolAddRootSTLVToBuf [09:52:13]FM_MakeSignedData [09:52:13]FM_MakeSignedData [09:52:13]SAM_PROTO_SignData [09:52:13]wFMCommunicate request_size=4 [09:52:13]MH_SAM_APDU [09:52:13]CAPDU: 80 0D 01 02 [09:52:13]Write to MH i2c: E2 08 00 62 6C 80 0D 01 02 00 00 00 00 47 [09:52:13]Write i2c OK [09:52:13]MH_I2C_Read... [09:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:14]Read from MH i2c: E2 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 62 6C 00 90 00 42 [09:52:14]RAPDU: 90 00 [09:52:14]wFMCommunicate OK [09:52:14]wFMCommunicate request_size=255 [09:52:14]MH_SAM_APDU [09:52:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 81 F0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B7 01 00 35 04 06 00 70 [09:52:14]Write to MH i2c: E2 02 01 63 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 81 F0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B7 01 00 35 04 06 00 70 00 00 9C [09:52:14]Write i2c OK [09:52:14]MH_I2C_Read... [09:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:14]Read from MH i2c: E2 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 63 6C 00 90 00 43 [09:52:14]RAPDU: 90 00 [09:52:14]wFMCommunicate OK [09:52:14]wFMCommunicate request_size=10 [09:52:14]MH_SAM_APDU [09:52:14]CAPDU: 80 0D 02 02 05 D8 81 19 F2 D4 [09:52:14]Write to MH i2c: E2 0D 00 64 6C 80 0D 02 02 05 00 D8 81 19 F2 D4 00 00 8C [09:52:14]Write i2c OK [09:52:14]MH_I2C_Read... [09:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:14]Read from MH i2c: E2 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 64 6C 00 90 00 44 [09:52:14]RAPDU: 90 00 [09:52:14]wFMCommunicate OK [09:52:14]wFMCommunicate request_size=4 [09:52:14]MH_SAM_APDU [09:52:14]CAPDU: 80 0D 03 02 [09:52:14]Write to MH i2c: E2 08 00 65 6C 80 0D 03 02 00 00 00 00 4C [09:52:14]Write i2c OK [09:52:14]MH_I2C_Read... [09:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:14]Read from MH i2c: E2 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 0B 00 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 0B 00 65 6C 00 62 AC 5F D2 24 7D BE A4 90 00 8F [09:52:14]RAPDU: 62 AC 5F D2 24 7D BE A4 90 00 [09:52:14]wFMCommunicate OK [09:52:14]SAM_PROTO_SignData done [09:52:14]FM_MakeSignedData done [09:52:14]CreateOFDProtocolMessage [09:52:14]wFMCommunicate request_size=4 [09:52:14]MH_SAM_APDU [09:52:14]CAPDU: 80 11 00 00 [09:52:14]Write to MH i2c: E2 08 00 66 6C 80 11 00 00 00 00 00 00 4C [09:52:14]Write i2c OK [09:52:14]MH_I2C_Read... [09:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:14]Read from MH i2c: E2 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 17 00 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 17 00 66 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [09:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:52:14]wFMCommunicate OK [09:52:14]CreateOFDProtocolMessage done [09:52:14]OFDSenderStorePacket 112425 [09:52:14]StoreOFDPacket docnum=112425 [09:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 40 69 07 01 F7 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 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 81 F0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B7 01 00 35 04 06 00 70 D8 81 19 F2 D4 62 AC 5F D2 24 7D BE A4 [09:52:14]CheckFolder [09:52:14]dirname=/storage/ofd_packets [09:52:14]CheckFolder done [09:52:14]ProducePacketName [09:52:14]name=ofd_packets/00112425 [09:52:14]NVStorageSaveData ofd_packets/00112425 [09:52:14]File name is /storage/ofd_packets/00112425 [09:52:14]Write 301 bytes [09:52:14]NVStorageSaveData done [09:52:14]OFDSenderStorePacket done [09:52:14]KKMCreateOFDPacket done [09:52:14]NVStorageSaveData kkm_last_timestamp [09:52:14]File name is /storage/kkm_last_timestamp [09:52:14]Write 4 bytes [09:52:14]NVStorageSaveData done [09:52:14]ExternCall_PrintAddStr [09:52:14]wPrintStart [09:52:14]Write to MH i2c: 01 00 00 67 6C D3 [09:52:14]Write i2c OK [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: 01 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: 01 07 00 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: 01 07 00 67 6C 00 00 00 00 00 FF 0F E8 [09:52:14]RasterBufferAndPrint [09:52:14]line Счет N : (1)321104 [09:52:14]line ИНН: 02508201610067 [09:52:14]line Контрольно-Кассовый Чек [09:52:14]line ПРОДАЖА [09:52:14]line ТРК (МРК, ГНК) : 11 [09:52:14]line Товар: 2710124130 [09:52:14]line Аи-92-К-5 [09:52:14]line 18.080 * 66.40 [09:52:14]line = 1200.51 [09:52:14]line НДС 12% НСП 1% [09:52:14]line > о реализуемом товаре [09:52:14]line ОКРУГЛЕНИЕ: -0.51 [09:52:14]line ИТОГО: 1200.00 [09:52:14]line Внесено: 1200.00 [09:52:14]line СДАЧА: 0.00 [09:52:14]line НСП 1% : 10.62 [09:52:14]line НДС 12% : 127.49 [09:52:14]line Наличными: 1200.00 [09:52:14]line Безнал.: 0.00 [09:52:14]line Место: АЗС № 65 "Партнер Нефть" [09:52:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:52:14]line СНО: Общий режим [09:52:14]line Чек 26 23.06.2024 09:53 [09:52:14]line Смена: 392 ФФД: 1.0 [09:52:14]line ЗНМ: 0300000198 [09:52:14]line РНМ: 0000000000092771 [09:52:14]line Версия ККМ: 001 [09:52:14]line ФМ: 0000000000875083 [09:52:14]line ФД: 112425 [09:52:14]line ФПД: 124075181208276 [09:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T095305&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112425&fm=124075181208276&tin=02508201610067®Number=0000000000092771&sum=120000 [09:52:14]OFD Sender: Processing packet 112425 [packets to send 38, broken 37] [09:52:14]ProducePacketName [09:52:14]name=ofd_packets/00112425 [09:52:14]OFD Sender: To server: pG, [09:52:14]CommunicateWithHost lk.salyk.kg:30040 [09:52:14]ConnectInit lk.salyk.kg [09:52:14]written 0, free lines is 4095 [09:52:14]Connected sock=10 [09:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 40 69 07 01 F7 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 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 81 F0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B7 01 00 35 04 06 00 70 D8 81 19 F2 D4 62 AC 5F D2 24 7D BE A4 [09:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FD 7E 47 00 36 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B7 01 00 F4 03 04 00 72 87 77 66 B6 04 01 00 00 D6 24 90 93 B8 02 8B A5 [09:52:15]CommunicateWithHost err = 0 [09:52:15]CheckOFDResponse [09:52:15]1017 (14) - 77093643461234 [09:52:15]1041 (16) - 0000000000875083 [09:52:15]1040 (4) - 112425 [09:52:15]1012 (4) - 23.06.2024 02:24 [09:52:15]1206 (1) - 0 [09:52:15]OFD Sender: Remove packet 112425 [09:52:15]ProducePacketName [09:52:15]name=ofd_packets/00112425 [09:52:15]NVStorageDeleteData [09:52:15]Write to MH i2c: 01 00 00 92 6C FE [09:52:15]Write i2c OK [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: 01 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: 01 07 00 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: 01 07 00 92 6C 00 00 00 00 00 CF 0C E0 [09:52:15]RasterBufferAndPrint [09:52:15]line [09:52:15]line [09:52:15]line [09:52:15]line [09:52:15]line [09:52:15]written 0, free lines is 3287 [09:52:15]MH_Cut [09:52:15]Write to MH i2c: D1 01 00 99 6C 01 D7 [09:52:15]Write i2c OK [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: D1 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: D1 01 00 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: D1 01 00 99 6C 00 D6 [09:52:15]Write to MH i2c: 01 00 00 9A 6C 06 [09:52:15]Write i2c OK [09:52:15]MH_I2C_Read... [09:52:15]OFD Sender: No OFD packet to send [09:52:16]*** Cut start [09:52:16]*** Partial cut [09:52:16]*** CUTSNS_PIN = 1 [09:52:16]*** CUTSNS_PIN = 0 [09:52:16]*** Brake cut motor [09:52:16]Read from MH i2c: 01 [09:52:16]MH_I2C_Read... [09:52:16]*** Stop cut motor [09:52:16]*** Cut end [09:52:16]Read from MH i2c: 01 07 00 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: 01 07 00 9A 6C 00 00 00 00 00 FF 0F 1B [09:52:16]process_action close_receipt done [09:52:16]requested_data is exist [09:52:16]produce_requested_data [09:52:16]requested_item fm.sn is exist - process it [09:52:16]wFMCommunicate request_size=4 [09:52:16]MH_SAM_APDU [09:52:16]CAPDU: 80 11 00 00 [09:52:16]Write to MH i2c: E2 08 00 9B 6C 80 11 00 00 00 00 00 00 81 [09:52:16]Write i2c OK [09:52:16]MH_I2C_Read... [09:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:16]Read from MH i2c: E2 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: E2 17 00 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: E2 17 00 9B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [09:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:52:16]wFMCommunicate OK [09:52:16]requested_item fd.num is exist - process it [09:52:16]SAM_PROTO_GetFieldsCounters [09:52:16]wFMCommunicate request_size=4 [09:52:16]MH_SAM_APDU [09:52:16]CAPDU: 80 13 00 00 [09:52:16]Write to MH i2c: E2 08 00 9C 6C 80 13 00 00 00 00 00 00 84 [09:52:16]Write i2c OK [09:52:16]MH_I2C_Read... [09:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:16]Read from MH i2c: E2 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: E2 62 00 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: E2 62 00 9C 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B7 01 00 0E 04 04 00 88 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 5D [09:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B7 01 00 0E 04 04 00 88 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 [09:52:16]wFMCommunicate OK [09:52:16]SAM_PROTO_GetFieldsCounters done [09:52:16]requested_item shift.num is exist - process it [09:52:16]requested_item shift.opened is exist - process it [09:52:16]req_shift_opened [09:52:16]FM_GetShiftState [09:52:16]SAM_PROTO_GetShiftState [09:52:16]wFMCommunicate request_size=4 [09:52:16]MH_SAM_APDU [09:52:16]CAPDU: 80 13 01 00 [09:52:16]Write to MH i2c: E2 08 00 9D 6C 80 13 01 00 00 00 00 00 86 [09:52:16]Write i2c OK [09:52:16]MH_I2C_Read... [09:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:16]Read from MH i2c: E2 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: E2 0E 00 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: E2 0E 00 9D 6C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A4 [09:52:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:52:16]wFMCommunicate OK [09:52:16]SAM_PROTO_GetShiftState done [09:52:16]FM_GetShiftState done [09:52:16]req_shift_opened done [09:52:16]requested_item shift.open_date is exist - process it [09:52:16]req_shift_open_date [09:52:16]req_shift_open_date done [09:52:16]produce_requested_data done [09:52:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112425,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:52:16]process_action_free close_receipt [09:52:16]json_value_free [09:52:16]json_value_free done [09:52:16]process_json_proto returns [09:52:16]Send response to host [09:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112425,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:52:16]free response buf [09:52:16]execute_script done [09:52:16]execute_script returns [09:52:16]free content buf [09:52:16]Sock 7.Close socket [09:52:16]Sock 7.Thread stoped [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [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:52]accept exits with 9 [09:53:52]New connection [09:53:52]New thread 3066957156 created [09:53:52]Thread 3066813796 joined [09:53:52]Waiting for new connection... [09:53:52] Sock 9.Parse request [09:53:52]Sock 9.Check first char [09:53:52]Sock 9.First char is OK [09:53:52]request: POST /json_proto HTTP/1.0 [09:53:52]Method: POST [09:53:52]URL: /json_proto [09:53:52]Method is POST - this is cgi request [09:53:52]url: /json_proto [09:53:52]query_string will be loaded in cgi processing [09:53:52]execute_cgi json_proto POST (null) [09:53:52]execute_cgi path=json_proto method=POST [09:53:52]POST find Content-Length [09:53:52]Host: 172.17.59.68:8080 [09:53:52]Content-Length: 677 [09:53:52]Content-Type: application/json [09:53:52] [09:53:52]POST finish read [09:53:52]Found Content-Length = 677 [09:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:53:52]execute_script... [09:53: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)321106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:53:52]POST & json_proto [09:53:52]process_json_proto [09:53:52]json parsed OK: [09:53:52]protocol is kg_v1.0 [09:53:52]action value=close_receipt [09:53:52]process_action close_receipt [09:53:52]cmd_close_receipt [09:53:52]MH_GetDate [09:53:52]Write to MH i2c: F0 00 00 9E 6C F9 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: F0 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: F0 09 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: F0 09 00 9E 6C 00 E4 F0 77 66 BC EC 60 65 20 [09:53:52]GetLastDocTimeStamp 1719136385 [09:53:52]current date 1719136484 [09:53:52]FM_GetShiftState [09:53:52]SAM_PROTO_GetShiftState [09:53:52]wFMCommunicate request_size=4 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 13 01 00 [09:53:52]Write to MH i2c: E2 08 00 9F 6C 80 13 01 00 00 00 00 00 88 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 0E 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 0E 00 9F 6C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A6 [09:53:52]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:53:52]wFMCommunicate OK [09:53:52]SAM_PROTO_GetShiftState done [09:53:52]FM_GetShiftState done [09:53:52]opened in 1719106490 [09:53:52]opened+sec_in_day 1719192890 [09:53:52]quantity*price = 50065 [09:53:52]sum+1 = 50067 [09:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 27 23.06.2024 09:54 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112426 ФПД: 97088751489354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T095444&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112426&fm=97088751489354&tin=02508201610067®Number=0000000000092771&sum=50000 [09:53:53]StoreToDocumentArchive [09:53:53]shift 392 fd 112426 [09:53:53]save to /storage/0392/doc_00112426 [09:53:53]save last doc name /storage/0392/doc_00112426 to /storage/kkm_last_doc_name [09:53:53]save OK [09:53:53]Clear old archive folders... [09:53:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:53]tlvbuf is 011752E0 [09:53:53]SAM_PROTO_ClearQueue [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 09 00 00 [09:53:53]Write to MH i2c: E2 08 00 AC 6C 80 09 00 00 00 00 00 00 8A [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 AC 6C 00 90 00 8C [09:53:53]RAPDU: 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_ClearQueue done [09:53:53]KKMCreateOFDPacket [09:53:53]OFDProtocolAddRootSTLVToBuf [09:53:53]FM_MakeSignedData [09:53:53]FM_MakeSignedData [09:53:53]SAM_PROTO_SignData [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 0D 01 02 [09:53:53]Write to MH i2c: E2 08 00 AD 6C 80 0D 01 02 00 00 00 00 92 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 AD 6C 00 90 00 8D [09:53:53]RAPDU: 90 00 [09:53:53]wFMCommunicate OK [09:53:53]wFMCommunicate request_size=255 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 1B 00 00 00 F4 03 04 00 E4 F0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B7 01 00 35 04 06 00 58 [09:53:53]Write to MH i2c: E2 02 01 AE 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 1B 00 00 00 F4 03 04 00 E4 F0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B7 01 00 35 04 06 00 58 00 00 D5 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 AE 6C 00 90 00 8E [09:53:53]RAPDU: 90 00 [09:53:53]wFMCommunicate OK [09:53:53]wFMCommunicate request_size=10 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 0D 02 02 05 4D 3C 8B 51 4A [09:53:53]Write to MH i2c: E2 0D 00 AF 6C 80 0D 02 02 05 00 4D 3C 8B 51 4A 00 00 4E [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 AF 6C 00 90 00 8F [09:53:53]RAPDU: 90 00 [09:53:53]wFMCommunicate OK [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 0D 03 02 [09:53:53]Write to MH i2c: E2 08 00 B0 6C 80 0D 03 02 00 00 00 00 97 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0B 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0B 00 B0 6C 00 E9 31 69 D9 31 F4 02 E1 90 00 FC [09:53:53]RAPDU: E9 31 69 D9 31 F4 02 E1 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_SignData done [09:53:53]FM_MakeSignedData done [09:53:53]CreateOFDProtocolMessage [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 11 00 00 [09:53:53]Write to MH i2c: E2 08 00 B1 6C 80 11 00 00 00 00 00 00 97 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 B1 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E9 [09:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:53:53]wFMCommunicate OK [09:53:53]CreateOFDProtocolMessage done [09:53:53]OFDSenderStorePacket 112426 [09:53:53]StoreOFDPacket docnum=112426 [09:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 7E 07 01 29 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 1B 00 00 00 F4 03 04 00 E4 F0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B7 01 00 35 04 06 00 58 4D 3C 8B 51 4A E9 31 69 D9 31 F4 02 E1 [09:53:53]CheckFolder [09:53:53]dirname=/storage/ofd_packets [09:53:53]CheckFolder done [09:53:53]ProducePacketName [09:53:53]name=ofd_packets/00112426 [09:53:53]NVStorageSaveData ofd_packets/00112426 [09:53:53]File name is /storage/ofd_packets/00112426 [09:53:53]Write 301 bytes [09:53:53]NVStorageSaveData done [09:53:53]OFDSenderStorePacket done [09:53:53]KKMCreateOFDPacket done [09:53:53]NVStorageSaveData kkm_last_timestamp [09:53:53]File name is /storage/kkm_last_timestamp [09:53:53]Write 4 bytes [09:53:53]NVStorageSaveData done [09:53:53]ExternCall_PrintAddStr [09:53:53]wPrintStart [09:53:53]Write to MH i2c: 01 00 00 B2 6C 1E [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 07 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 07 00 B2 6C 00 00 00 00 00 FF 0F 33 [09:53:53]RasterBufferAndPrint [09:53:53]line Счет N : (1)321106 [09:53:53]line ИНН: 02508201610067 [09:53:53]line Контрольно-Кассовый Чек [09:53:53]line ПРОДАЖА [09:53:53]line ТРК (МРК, ГНК) : 11 [09:53:53]line Товар: 2710124130 [09:53:53]line Аи-92-К-5 [09:53:53]line 7.540 * 66.40 [09:53:53]line = 500.66 [09:53:53]line НДС 12% НСП 1% [09:53:53]line > о реализуемом товаре [09:53:53]line ОКРУГЛЕНИЕ: -0.66 [09:53:53]line ИТОГО: 500.00 [09:53:53]line Внесено: 500.00 [09:53:53]line СДАЧА: 0.00 [09:53:53]line НСП 1% : 4.43 [09:53:53]line НДС 12% : 53.17 [09:53:53]line Наличными: 500.00 [09:53:53]line Безнал.: 0.00 [09:53:53]line Место: АЗС № 65 "Партнер Нефть" [09:53:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:53:53]line СНО: Общий режим [09:53:53]line Чек 27 23.06.2024 09:54 [09:53:53]line Смена: 392 ФФД: 1.0 [09:53:53]line ЗНМ: 0300000198 [09:53:53]line РНМ: 0000000000092771 [09:53:53]line Версия ККМ: 001 [09:53:53]line ФМ: 0000000000875083 [09:53:53]line ФД: 112426 [09:53:53]line ФПД: 97088751489354 [09:53:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T095444&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112426&fm=97088751489354&tin=02508201610067®Number=0000000000092771&sum=50000 [09:53:54]OFD Sender: Processing packet 112426 [packets to send 38, broken 37] [09:53:54]ProducePacketName [09:53:54]name=ofd_packets/00112426 [09:53:54]OFD Sender: To server: pG, [09:53:54]CommunicateWithHost lk.salyk.kg:30040 [09:53:54]ConnectInit lk.salyk.kg [09:53:54]written 0, free lines is 4095 [09:53:54]Connected sock=10 [09:53:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 7E 07 01 29 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 1B 00 00 00 F4 03 04 00 E4 F0 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B7 01 00 35 04 06 00 58 4D 3C 8B 51 4A E9 31 69 D9 31 F4 02 E1 [09:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A2 18 47 00 96 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B7 01 00 F4 03 04 00 D5 87 77 66 B6 04 01 00 00 0D 80 C6 62 4C 63 86 7A [09:53:54]CommunicateWithHost err = 0 [09:53:54]CheckOFDResponse [09:53:54]1017 (14) - 77093643461234 [09:53:54]1041 (16) - 0000000000875083 [09:53:54]1040 (4) - 112426 [09:53:54]1012 (4) - 23.06.2024 02:26 [09:53:54]1206 (1) - 0 [09:53:54]OFD Sender: Remove packet 112426 [09:53:54]ProducePacketName [09:53:54]name=ofd_packets/00112426 [09:53:54]NVStorageDeleteData [09:53:54]Write to MH i2c: 01 00 00 DD 6C 49 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 DD 6C 00 00 00 00 00 C8 0C 24 [09:53:54]RasterBufferAndPrint [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]written 0, free lines is 3279 [09:53:54]MH_Cut [09:53:54]Write to MH i2c: D1 01 00 E4 6C 01 22 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 01 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 01 00 E4 6C 00 21 [09:53:54]Write to MH i2c: 01 00 00 E5 6C 51 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]OFD Sender: No OFD packet to send [09:53:55]*** Cut start [09:53:55]*** Partial cut [09:53:55]*** CUTSNS_PIN = 1 [09:53:55]*** CUTSNS_PIN = 0 [09:53:55]*** Brake cut motor [09:53:55]Read from MH i2c: 01 [09:53:55]MH_I2C_Read... [09:53:55]*** Stop cut motor [09:53:55]*** Cut end [09:53:55]Read from MH i2c: 01 07 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 E5 6C 00 00 00 00 00 FF 0F 66 [09:53:55]process_action close_receipt done [09:53:55]requested_data is exist [09:53:55]produce_requested_data [09:53:55]requested_item fm.sn is exist - process it [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 11 00 00 [09:53:55]Write to MH i2c: E2 08 00 E6 6C 80 11 00 00 00 00 00 00 CC [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 E6 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [09:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:53:55]wFMCommunicate OK [09:53:55]requested_item fd.num is exist - process it [09:53:55]SAM_PROTO_GetFieldsCounters [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 13 00 00 [09:53:55]Write to MH i2c: E2 08 00 E7 6C 80 13 00 00 00 00 00 00 CF [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:56]Read from MH i2c: E2 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 62 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 62 00 E7 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2A B7 01 00 0E 04 04 00 88 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 AC [09:53:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2A B7 01 00 0E 04 04 00 88 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 [09:53:56]wFMCommunicate OK [09:53:56]SAM_PROTO_GetFieldsCounters done [09:53:56]requested_item shift.num is exist - process it [09:53:56]requested_item shift.opened is exist - process it [09:53:56]req_shift_opened [09:53:56]FM_GetShiftState [09:53:56]SAM_PROTO_GetShiftState [09:53:56]wFMCommunicate request_size=4 [09:53:56]MH_SAM_APDU [09:53:56]CAPDU: 80 13 01 00 [09:53:56]Write to MH i2c: E2 08 00 E8 6C 80 13 01 00 00 00 00 00 D1 [09:53:56]Write i2c OK [09:53:56]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:56]Read from MH i2c: E2 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 0E 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 0E 00 E8 6C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EF [09:53:56]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:53:56]wFMCommunicate OK [09:53:56]SAM_PROTO_GetShiftState done [09:53:56]FM_GetShiftState done [09:53:56]req_shift_opened done [09:53:56]requested_item shift.open_date is exist - process it [09:53:56]req_shift_open_date [09:53:56]req_shift_open_date done [09:53:56]produce_requested_data done [09:53:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112426,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:53:56]process_action_free close_receipt [09:53:56]json_value_free [09:53:56]json_value_free done [09:53:56]process_json_proto returns [09:53:56]Send response to host [09:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112426,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:53:56]free response buf [09:53:56]execute_script done [09:53:56]execute_script returns [09:53:56]free content buf [09:53:56]Sock 9.Close socket [09:53:56]Sock 9.Thread stoped [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:31]accept exits with 7 [09:54:31]New connection [09:54:31]New thread 3066813796 created [09:54:31]Thread 3066957156 joined [09:54:31]Waiting for new connection... [09:54:31] Sock 7.Parse request [09:54:31]Sock 7.Check first char [09:54:31]Sock 7.First char is OK [09:54:31]request: POST /json_proto HTTP/1.0 [09:54:31]Method: POST [09:54:31]URL: /json_proto [09:54:31]Method is POST - this is cgi request [09:54:31]url: /json_proto [09:54:31]query_string will be loaded in cgi processing [09:54:31]execute_cgi json_proto POST (null) [09:54:31]execute_cgi path=json_proto method=POST [09:54:31]POST find Content-Length [09:54:31]Host: 172.17.59.68:8080 [09:54:31]Content-Length: 679 [09:54:31]Content-Type: application/json [09:54:31] [09:54:31]POST finish read [09:54:31]Found Content-Length = 679 [09:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "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" ] } } [09:54:31]execute_script... [09:54: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)321105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "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" ] } } [09:54:31]POST & json_proto [09:54:31]process_json_proto [09:54:31]json parsed OK: [09:54:31]protocol is kg_v1.0 [09:54:31]action value=close_receipt [09:54:31]process_action close_receipt [09:54:31]cmd_close_receipt [09:54:31]MH_GetDate [09:54:31]Write to MH i2c: F0 00 00 E9 6C 44 [09:54:31]Write i2c OK [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: F0 [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: F0 09 00 [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: F0 09 00 E9 6C 00 0C F1 77 66 BC EC 60 65 94 [09:54:31]GetLastDocTimeStamp 1719136484 [09:54:31]current date 1719136524 [09:54:31]FM_GetShiftState [09:54:31]SAM_PROTO_GetShiftState [09:54:31]wFMCommunicate request_size=4 [09:54:31]MH_SAM_APDU [09:54:31]CAPDU: 80 13 01 00 [09:54:31]Write to MH i2c: E2 08 00 EA 6C 80 13 01 00 00 00 00 00 D3 [09:54:31]Write i2c OK [09:54:31]MH_I2C_Read... [09:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:31]Read from MH i2c: E2 [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: E2 0E 00 [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: E2 0E 00 EA 6C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F1 [09:54:31]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:54:31]wFMCommunicate OK [09:54:31]SAM_PROTO_GetShiftState done [09:54:31]FM_GetShiftState done [09:54:31]opened in 1719106490 [09:54:31]opened+sec_in_day 1719192890 [09:54:31]quantity*price = 350065 [09:54:31]sum+1 = 350067 [09:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 28 23.06.2024 09:55 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112427 ФПД: 11862059406116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T095524&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112427&fm=11862059406116&tin=02508201610067®Number=0000000000092771&sum=350000 [09:54:32]StoreToDocumentArchive [09:54:32]shift 392 fd 112427 [09:54:32]save to /storage/0392/doc_00112427 [09:54:32]save last doc name /storage/0392/doc_00112427 to /storage/kkm_last_doc_name [09:54:32]save OK [09:54:32]Clear old archive folders... [09:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:54:32]tlvbuf is 011968A0 [09:54:32]SAM_PROTO_ClearQueue [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 09 00 00 [09:54:32]Write to MH i2c: E2 08 00 F7 6C 80 09 00 00 00 00 00 00 D5 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 F7 6C 00 90 00 D7 [09:54:32]RAPDU: 90 00 [09:54:32]wFMCommunicate OK [09:54:32]SAM_PROTO_ClearQueue done [09:54:32]KKMCreateOFDPacket [09:54:32]OFDProtocolAddRootSTLVToBuf [09:54:32]FM_MakeSignedData [09:54:32]FM_MakeSignedData [09:54:32]SAM_PROTO_SignData [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 0D 01 02 [09:54:32]Write to MH i2c: E2 08 00 F8 6C 80 0D 01 02 00 00 00 00 DD [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 F8 6C 00 90 00 D8 [09:54:32]RAPDU: 90 00 [09:54:32]wFMCommunicate OK [09:54:32]wFMCommunicate request_size=255 [09:54:32]MH_SAM_APDU [09:54: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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 37 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 1C 00 00 00 F4 03 04 00 0C F1 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B7 01 00 35 04 06 00 0A C9 D9 D6 [09:54:32]Write to MH i2c: E2 02 01 F9 6C 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 37 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 1C 00 00 00 F4 03 04 00 0C F1 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B7 01 00 35 04 06 00 0A C9 D9 D6 00 00 D7 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:33]Read from MH i2c: E2 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 03 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 03 00 F9 6C 00 90 00 D9 [09:54:33]RAPDU: 90 00 [09:54:33]wFMCommunicate OK [09:54:33]wFMCommunicate request_size=7 [09:54:33]MH_SAM_APDU [09:54:33]CAPDU: 80 0D 02 02 02 53 24 [09:54:33]Write to MH i2c: E2 0A 00 FA 6C 80 0D 02 02 02 00 53 24 00 00 5B [09:54:33]Write i2c OK [09:54:33]MH_I2C_Read... [09:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:33]Read from MH i2c: E2 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 03 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 03 00 FA 6C 00 90 00 DA [09:54:33]RAPDU: 90 00 [09:54:33]wFMCommunicate OK [09:54:33]wFMCommunicate request_size=4 [09:54:33]MH_SAM_APDU [09:54:33]CAPDU: 80 0D 03 02 [09:54:33]Write to MH i2c: E2 08 00 FB 6C 80 0D 03 02 00 00 00 00 E2 [09:54:33]Write i2c OK [09:54:33]MH_I2C_Read... [09:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:33]Read from MH i2c: E2 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 0B 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 0B 00 FB 6C 00 4C AD 10 6B 86 BF ED 53 90 00 DC [09:54:33]RAPDU: 4C AD 10 6B 86 BF ED 53 90 00 [09:54:33]wFMCommunicate OK [09:54:33]SAM_PROTO_SignData done [09:54:33]FM_MakeSignedData done [09:54:33]CreateOFDProtocolMessage [09:54:33]wFMCommunicate request_size=4 [09:54:33]MH_SAM_APDU [09:54:33]CAPDU: 80 11 00 00 [09:54:33]Write to MH i2c: E2 08 00 FC 6C 80 11 00 00 00 00 00 00 E2 [09:54:33]Write i2c OK [09:54:33]MH_I2C_Read... [09:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:33]Read from MH i2c: E2 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 17 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 17 00 FC 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [09:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:54:33]wFMCommunicate OK [09:54:33]CreateOFDProtocolMessage done [09:54:33]OFDSenderStorePacket 112427 [09:54:33]StoreOFDPacket docnum=112427 [09:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 0F 5D 04 01 0F C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 37 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 1C 00 00 00 F4 03 04 00 0C F1 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B7 01 00 35 04 06 00 0A C9 D9 D6 53 24 4C AD 10 6B 86 BF ED 53 [09:54:33]CheckFolder [09:54:33]dirname=/storage/ofd_packets [09:54:33]CheckFolder done [09:54:33]ProducePacketName [09:54:33]name=ofd_packets/00112427 [09:54:33]NVStorageSaveData ofd_packets/00112427 [09:54:33]File name is /storage/ofd_packets/00112427 [09:54:33]Write 298 bytes [09:54:33]NVStorageSaveData done [09:54:33]OFDSenderStorePacket done [09:54:33]KKMCreateOFDPacket done [09:54:33]NVStorageSaveData kkm_last_timestamp [09:54:33]File name is /storage/kkm_last_timestamp [09:54:33]Write 4 bytes [09:54:33]NVStorageSaveData done [09:54:33]ExternCall_PrintAddStr [09:54:33]wPrintStart [09:54:33]Write to MH i2c: 01 00 00 FD 6C 69 [09:54:33]Write i2c OK [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 07 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 07 00 FD 6C 00 00 00 00 00 FF 0F 7E [09:54:33]RasterBufferAndPrint [09:54:33]line Счет N : (1)321105 [09:54:33]line ИНН: 02508201610067 [09:54:33]line Контрольно-Кассовый Чек [09:54:33]line ПРОДАЖА [09:54:33]line ТРК (МРК, ГНК) : 22 [09:54:33]line Товар: 2710194210 [09:54:33]line ДТ-К-5 [09:54:33]line 48.020 * 72.90 [09:54:33]line = 3500.66 [09:54:33]line НДС 12% НСП 1% [09:54:33]line > о реализуемом товаре [09:54:33]line ОКРУГЛЕНИЕ: -0.66 [09:54:33]line ИТОГО: 3500.00 [09:54:33]line Внесено: 3500.00 [09:54:33]line СДАЧА: 0.00 [09:54:33]line НСП 1% : 30.98 [09:54:33]line НДС 12% : 371.75 [09:54:33]line Наличными: 3500.00 [09:54:33]line Безнал.: 0.00 [09:54:33]line Место: АЗС № 65 "Партнер Нефть" [09:54:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:54:33]line СНО: Общий режим [09:54:33]line Чек 28 23.06.2024 09:55 [09:54:33]line Смена: 392 ФФД: 1.0 [09:54:33]line ЗНМ: 0300000198 [09:54:33]line РНМ: 0000000000092771 [09:54:33]line Версия ККМ: 001 [09:54:33]line ФМ: 0000000000875083 [09:54:33]line ФД: 112427 [09:54:33]line ФПД: 11862059406116 [09:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T095524&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112427&fm=11862059406116&tin=02508201610067®Number=0000000000092771&sum=350000 [09:54:33]OFD Sender: Processing packet 112427 [packets to send 38, broken 37] [09:54:33]ProducePacketName [09:54:33]name=ofd_packets/00112427 [09:54:33]OFD Sender: To server: pG, [09:54:33]CommunicateWithHost lk.salyk.kg:30040 [09:54:33]ConnectInit lk.salyk.kg [09:54:33]written 0, free lines is 4095 [09:54:33]Connected sock=10 [09:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 0F 5D 04 01 0F C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 37 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 1C 00 00 00 F4 03 04 00 0C F1 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B7 01 00 35 04 06 00 0A C9 D9 D6 53 24 4C AD 10 6B 86 BF ED 53 [09:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CD 17 47 00 B7 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B7 01 00 F4 03 04 00 FC 87 77 66 B6 04 01 00 00 76 49 10 25 70 BB 6B 4F [09:54:33]CommunicateWithHost err = 0 [09:54:33]CheckOFDResponse [09:54:33]1017 (14) - 77093643461234 [09:54:33]1041 (16) - 0000000000875083 [09:54:33]1040 (4) - 112427 [09:54:33]1012 (4) - 23.06.2024 02:27 [09:54:33]1206 (1) - 0 [09:54:33]OFD Sender: Remove packet 112427 [09:54:33]ProducePacketName [09:54:33]name=ofd_packets/00112427 [09:54:33]NVStorageDeleteData [09:54:34]Write to MH i2c: 01 00 00 28 6D 95 [09:54:34]Write i2c OK [09:54:34]MH_I2C_Read... [09:54:34]Read from MH i2c: 01 [09:54:34]MH_I2C_Read... [09:54:34]Read from MH i2c: 01 07 00 [09:54:34]MH_I2C_Read... [09:54:34]Read from MH i2c: 01 07 00 28 6D 00 00 00 00 00 D9 0C 81 [09:54:34]RasterBufferAndPrint [09:54:34]line [09:54:34]line [09:54:34]line [09:54:34]line [09:54:34]line [09:54:34]written 0, free lines is 3296 [09:54:34]MH_Cut [09:54:34]Write to MH i2c: D1 01 00 2F 6D 01 6E [09:54:34]Write i2c OK [09:54:34]MH_I2C_Read... [09:54:34]Read from MH i2c: D1 [09:54:34]MH_I2C_Read... [09:54:34]Read from MH i2c: D1 01 00 [09:54:34]MH_I2C_Read... [09:54:34]Read from MH i2c: D1 01 00 2F 6D 00 6D [09:54:34]Write to MH i2c: 01 00 00 30 6D 9D [09:54:34]Write i2c OK [09:54:34]MH_I2C_Read... [09:54:34]OFD Sender: No OFD packet to send [09:54:34]*** Cut start [09:54:34]*** Partial cut [09:54:34]*** CUTSNS_PIN = 1 [09:54:34]*** CUTSNS_PIN = 0 [09:54:35]*** Brake cut motor [09:54:35]Read from MH i2c: 01 [09:54:35]MH_I2C_Read... [09:54:35]*** Stop cut motor [09:54:35]*** Cut end [09:54:35]Read from MH i2c: 01 07 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: 01 07 00 30 6D 00 00 00 00 00 FF 0F B2 [09:54:35]process_action close_receipt done [09:54:35]requested_data is exist [09:54:35]produce_requested_data [09:54:35]requested_item fm.sn is exist - process it [09:54:35]wFMCommunicate request_size=4 [09:54:35]MH_SAM_APDU [09:54:35]CAPDU: 80 11 00 00 [09:54:35]Write to MH i2c: E2 08 00 31 6D 80 11 00 00 00 00 00 00 18 [09:54:35]Write i2c OK [09:54:35]MH_I2C_Read... [09:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:35]Read from MH i2c: E2 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 17 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 17 00 31 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [09:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:54:35]wFMCommunicate OK [09:54:35]requested_item fd.num is exist - process it [09:54:35]SAM_PROTO_GetFieldsCounters [09:54:35]wFMCommunicate request_size=4 [09:54:35]MH_SAM_APDU [09:54:35]CAPDU: 80 13 00 00 [09:54:35]Write to MH i2c: E2 08 00 32 6D 80 13 00 00 00 00 00 00 1B [09:54:35]Write i2c OK [09:54:35]MH_I2C_Read... [09:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:35]Read from MH i2c: E2 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 62 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 62 00 32 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B7 01 00 0E 04 04 00 88 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 FC [09:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B7 01 00 0E 04 04 00 88 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 [09:54:35]wFMCommunicate OK [09:54:35]SAM_PROTO_GetFieldsCounters done [09:54:35]requested_item shift.num is exist - process it [09:54:35]requested_item shift.opened is exist - process it [09:54:35]req_shift_opened [09:54:35]FM_GetShiftState [09:54:35]SAM_PROTO_GetShiftState [09:54:35]wFMCommunicate request_size=4 [09:54:35]MH_SAM_APDU [09:54:35]CAPDU: 80 13 01 00 [09:54:35]Write to MH i2c: E2 08 00 33 6D 80 13 01 00 00 00 00 00 1D [09:54:35]Write i2c OK [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 [09:54:35]MH_I2C_Read... [09:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:35]Read from MH i2c: E2 0E 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 0E 00 33 6D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3B [09:54:35]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:54:35]wFMCommunicate OK [09:54:35]SAM_PROTO_GetShiftState done [09:54:35]FM_GetShiftState done [09:54:35]req_shift_opened done [09:54:35]requested_item shift.open_date is exist - process it [09:54:35]req_shift_open_date [09:54:35]req_shift_open_date done [09:54:35]produce_requested_data done [09:54:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112427,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:54:35]process_action_free close_receipt [09:54:35]json_value_free [09:54:35]json_value_free done [09:54:35]process_json_proto returns [09:54:35]Send response to host [09:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112427,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:54:35]free response buf [09:54:35]execute_script done [09:54:35]execute_script returns [09:54:35]free content buf [09:54:35]Sock 7.Close socket [09:54:35]Sock 7.Thread stoped [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:29]accept exits with 9 [09:59:29]New connection [09:59:29]New thread 3066957156 created [09:59:29]Thread 3066813796 joined [09:59:29]Waiting for new connection... [09:59:29] Sock 9.Parse request [09:59:29]Sock 9.Check first char [09:59:29]Sock 9.First char is OK [09:59:29]request: POST /json_proto HTTP/1.0 [09:59:29]Method: POST [09:59:29]URL: /json_proto [09:59:29]Method is POST - this is cgi request [09:59:29]url: /json_proto [09:59:29]query_string will be loaded in cgi processing [09:59:29]execute_cgi json_proto POST (null) [09:59:29]execute_cgi path=json_proto method=POST [09:59:29]POST find Content-Length [09:59:29]Host: 172.17.59.68:8080 [09:59:29]Content-Length: 678 [09:59:29]Content-Type: application/json [09:59:29] [09:59:29]POST finish read [09:59:29]Found Content-Length = 678 [09:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [09:59:29]execute_script... [09:59:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [09:59:29]POST & json_proto [09:59:29]process_json_proto [09:59:29]json parsed OK: [09:59:29]protocol is kg_v1.0 [09:59:29]action value=close_receipt [09:59:29]process_action close_receipt [09:59:29]cmd_close_receipt [09:59:29]MH_GetDate [09:59:29]Write to MH i2c: F0 00 00 34 6D 90 [09:59:29]Write i2c OK [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: F0 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: F0 09 00 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: F0 09 00 34 6D 00 36 F2 77 66 BC EC 60 65 0B [09:59:29]GetLastDocTimeStamp 1719136524 [09:59:29]current date 1719136822 [09:59:29]FM_GetShiftState [09:59:29]SAM_PROTO_GetShiftState [09:59:29]wFMCommunicate request_size=4 [09:59:29]MH_SAM_APDU [09:59:29]CAPDU: 80 13 01 00 [09:59:29]Write to MH i2c: E2 08 00 35 6D 80 13 01 00 00 00 00 00 1F [09:59:29]Write i2c OK [09:59:29]MH_I2C_Read... [09:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:29]Read from MH i2c: E2 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 0E 00 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 0E 00 35 6D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3D [09:59:29]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:59:29]wFMCommunicate OK [09:59:29]SAM_PROTO_GetShiftState done [09:59:29]FM_GetShiftState done [09:59:29]opened in 1719106490 [09:59:29]opened+sec_in_day 1719192890 [09:59:29]quantity*price = 70052 [09:59:29]sum+1 = 70053 [09:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 29 23.06.2024 10:00 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112428 ФПД: 4961763452534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T100022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112428&fm=4961763452534&tin=02508201610067®Number=0000000000092771&sum=70000 [09:59:31]StoreToDocumentArchive [09:59:31]shift 392 fd 112428 [09:59:31]save to /storage/0392/doc_00112428 [09:59:31]save last doc name /storage/0392/doc_00112428 to /storage/kkm_last_doc_name [09:59:31]save OK [09:59:31]Clear old archive folders... [09:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:31]tlvbuf is 0123B600 [09:59:31]SAM_PROTO_ClearQueue [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 09 00 00 [09:59:31]Write to MH i2c: E2 08 00 42 6D 80 09 00 00 00 00 00 00 21 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 42 6D 00 90 00 23 [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]SAM_PROTO_ClearQueue done [09:59:31]KKMCreateOFDPacket [09:59:31]OFDProtocolAddRootSTLVToBuf [09:59:31]FM_MakeSignedData [09:59:31]FM_MakeSignedData [09:59:31]SAM_PROTO_SignData [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 01 02 [09:59:31]Write to MH i2c: E2 08 00 43 6D 80 0D 01 02 00 00 00 00 29 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 43 6D 00 90 00 24 [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]wFMCommunicate request_size=255 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 1D 00 00 00 F4 03 04 00 36 F2 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B7 01 00 35 04 06 00 04 [09:59:31]Write to MH i2c: E2 02 01 44 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 1D 00 00 00 F4 03 04 00 36 F2 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B7 01 00 35 04 06 00 04 00 00 82 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 44 6D 00 90 00 25 [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]wFMCommunicate request_size=10 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 02 02 05 83 40 25 E6 76 [09:59:31]Write to MH i2c: E2 0D 00 45 6D 80 0D 02 02 05 00 83 40 25 E6 76 00 00 7A [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 45 6D 00 90 00 26 [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 03 02 [09:59:31]Write to MH i2c: E2 08 00 46 6D 80 0D 03 02 00 00 00 00 2E [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 0B 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 0B 00 46 6D 00 A1 CF 46 3D 22 F8 B9 10 90 00 05 [09:59:31]RAPDU: A1 CF 46 3D 22 F8 B9 10 90 00 [09:59:31]wFMCommunicate OK [09:59:31]SAM_PROTO_SignData done [09:59:31]FM_MakeSignedData done [09:59:31]CreateOFDProtocolMessage [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 11 00 00 [09:59:31]Write to MH i2c: E2 08 00 47 6D 80 11 00 00 00 00 00 00 2E [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 17 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 17 00 47 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 80 [09:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:59:31]wFMCommunicate OK [09:59:31]CreateOFDProtocolMessage done [09:59:31]OFDSenderStorePacket 112428 [09:59:31]StoreOFDPacket docnum=112428 [09:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 91 D1 07 01 FF BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 1D 00 00 00 F4 03 04 00 36 F2 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B7 01 00 35 04 06 00 04 83 40 25 E6 76 A1 CF 46 3D 22 F8 B9 10 [09:59:31]CheckFolder [09:59:31]dirname=/storage/ofd_packets [09:59:31]CheckFolder done [09:59:31]ProducePacketName [09:59:31]name=ofd_packets/00112428 [09:59:31]NVStorageSaveData ofd_packets/00112428 [09:59:31]File name is /storage/ofd_packets/00112428 [09:59:31]Write 301 bytes [09:59:31]NVStorageSaveData done [09:59:31]OFDSenderStorePacket done [09:59:31]KKMCreateOFDPacket done [09:59:31]NVStorageSaveData kkm_last_timestamp [09:59:31]File name is /storage/kkm_last_timestamp [09:59:31]Write 4 bytes [09:59:31]NVStorageSaveData done [09:59:31]ExternCall_PrintAddStr [09:59:31]wPrintStart [09:59:31]Write to MH i2c: 01 00 00 48 6D B5 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: 01 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: 01 07 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: 01 07 00 48 6D 00 00 00 00 00 FF 0F CA [09:59:31]RasterBufferAndPrint [09:59:31]line Счет N : (1)321107 [09:59:31]line ИНН: 02508201610067 [09:59:31]line Контрольно-Кассовый Чек [09:59:31]line ПРОДАЖА [09:59:31]line ТРК (МРК, ГНК) : 11 [09:59:31]line Товар: 2710124130 [09:59:31]line Аи-92-К-5 [09:59:31]line 10.550 * 66.40 [09:59:31]line = 700.52 [09:59:31]line НДС 12% НСП 1% [09:59:31]line > о реализуемом товаре [09:59:31]line ОКРУГЛЕНИЕ: -0.52 [09:59:31]line ИТОГО: 700.00 [09:59:31]line Внесено: 700.00 [09:59:31]line СДАЧА: 0.00 [09:59:31]line НСП 1% : 6.20 [09:59:31]line НДС 12% : 74.39 [09:59:31]line Наличными: 700.00 [09:59:31]line Безнал.: 0.00 [09:59:31]line Место: АЗС № 65 "Партнер Нефть" [09:59:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:59:31]line СНО: Общий режим [09:59:31]line Чек 29 23.06.2024 10:00 [09:59:31]line Смена: 392 ФФД: 1.0 [09:59:31]line ЗНМ: 0300000198 [09:59:31]line РНМ: 0000000000092771 [09:59:31]line Версия ККМ: 001 [09:59:31]line ФМ: 0000000000875083 [09:59:31]line ФД: 112428 [09:59:31]line ФПД: 4961763452534 [09:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T100022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112428&fm=4961763452534&tin=02508201610067®Number=0000000000092771&sum=70000 [09:59:31]OFD Sender: Processing packet 112428 [packets to send 38, broken 37] [09:59:31]ProducePacketName [09:59:31]name=ofd_packets/00112428 [09:59:31]OFD Sender: To server: pG, [09:59:31]CommunicateWithHost lk.salyk.kg:30040 [09:59:31]ConnectInit lk.salyk.kg [09:59:31]written 0, free lines is 4095 [09:59:32]Connected sock=10 [09:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 91 D1 07 01 FF BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 1D 00 00 00 F4 03 04 00 36 F2 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B7 01 00 35 04 06 00 04 83 40 25 E6 76 A1 CF 46 3D 22 F8 B9 10 [09:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4D 46 47 00 1C 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B7 01 00 F4 03 04 00 27 89 77 66 B6 04 01 00 00 47 36 BA 08 97 30 D0 55 [09:59:32]CommunicateWithHost err = 0 [09:59:32]CheckOFDResponse [09:59:32]1017 (14) - 77093643461234 [09:59:32]1041 (16) - 0000000000875083 [09:59:32]1040 (4) - 112428 [09:59:32]1012 (4) - 23.06.2024 02:32 [09:59:32]1206 (1) - 0 [09:59:32]OFD Sender: Remove packet 112428 [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00112428 [09:59:32]NVStorageDeleteData [09:59:32]Write to MH i2c: 01 00 00 73 6D E0 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 07 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 07 00 73 6D 00 00 00 00 00 CC 0C BF [09:59:32]RasterBufferAndPrint [09:59:32]line [09:59:32]line [09:59:32]line [09:59:32]line [09:59:32]line [09:59:32]written 0, free lines is 3282 [09:59:32]MH_Cut [09:59:32]Write to MH i2c: D1 01 00 7A 6D 01 B9 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: D1 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: D1 01 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: D1 01 00 7A 6D 00 B8 [09:59:32]Write to MH i2c: 01 00 00 7B 6D E8 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]OFD Sender: No OFD packet to send [09:59:33]*** Cut start [09:59:33]*** Partial cut [09:59:33]*** CUTSNS_PIN = 1 [09:59:33]*** CUTSNS_PIN = 0 [09:59:33]*** Brake cut motor [09:59:33]Read from MH i2c: 01 [09:59:33]MH_I2C_Read... [09:59:33]*** Stop cut motor [09:59:33]*** Cut end [09:59:33]Read from MH i2c: 01 07 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: 01 07 00 7B 6D 00 00 00 00 00 FF 0F FD [09:59:33]process_action close_receipt done [09:59:33]requested_data is exist [09:59:33]produce_requested_data [09:59:33]requested_item fm.sn is exist - process it [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 11 00 00 [09:59:33]Write to MH i2c: E2 08 00 7C 6D 80 11 00 00 00 00 00 00 63 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:33]Read from MH i2c: E2 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 17 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 17 00 7C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [09:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:59:33]wFMCommunicate OK [09:59:33]requested_item fd.num is exist - process it [09:59:33]SAM_PROTO_GetFieldsCounters [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 13 00 00 [09:59:33]Write to MH i2c: E2 08 00 7D 6D 80 13 00 00 00 00 00 00 66 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:33]Read from MH i2c: E2 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 62 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 62 00 7D 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2C B7 01 00 0E 04 04 00 88 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 4B [09:59:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2C B7 01 00 0E 04 04 00 88 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 [09:59:33]wFMCommunicate OK [09:59:33]SAM_PROTO_GetFieldsCounters done [09:59:33]requested_item shift.num is exist - process it [09:59:33]requested_item shift.opened is exist - process it [09:59:33]req_shift_opened [09:59:33]FM_GetShiftState [09:59:33]SAM_PROTO_GetShiftState [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 13 01 00 [09:59:33]Write to MH i2c: E2 08 00 7E 6D 80 13 01 00 00 00 00 00 68 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0E 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0E 00 7E 6D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 86 [09:59:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [09:59:34]wFMCommunicate OK [09:59:34]SAM_PROTO_GetShiftState done [09:59:34]FM_GetShiftState done [09:59:34]req_shift_opened done [09:59:34]requested_item shift.open_date is exist - process it [09:59:34]req_shift_open_date [09:59:34]req_shift_open_date done [09:59:34]produce_requested_data done [09:59:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112428,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [09:59:34]process_action_free close_receipt [09:59:34]json_value_free [09:59:34]json_value_free done [09:59:34]process_json_proto returns [09:59:34]Send response to host [09:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112428,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [09:59:34]free response buf [09:59:34]execute_script done [09:59:34]execute_script returns [09:59:34]free content buf [09:59:34]Sock 9.Close socket [09:59:34]Sock 9.Thread stoped [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:30]accept exits with 7 [10:13:30]New connection [10:13:30]New thread 3066813796 created [10:13:30]Thread 3066957156 joined [10:13:30]Waiting for new connection... [10:13:30] Sock 7.Parse request [10:13:30]Sock 7.Check first char [10:13:30]Sock 7.First char is OK [10:13:30]request: POST /json_proto HTTP/1.0 [10:13:30]Method: POST [10:13:30]URL: /json_proto [10:13:30]Method is POST - this is cgi request [10:13:30]url: /json_proto [10:13:30]query_string will be loaded in cgi processing [10:13:30]execute_cgi json_proto POST (null) [10:13:30]execute_cgi path=json_proto method=POST [10:13:30]POST find Content-Length [10:13:30]Host: 172.17.59.68:8080 [10:13:30]Content-Length: 808 [10:13:30]Content-Type: application/json [10:13:30] [10:13:30]POST finish read [10:13:30]Found Content-Length = 808 [10:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:30]execute_script... [10:13: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)321108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:30]POST & json_proto [10:13:30]process_json_proto [10:13:30]json parsed OK: [10:13:30]protocol is kg_v1.0 [10:13:30]action value=close_receipt [10:13:30]process_action close_receipt [10:13:30]cmd_close_receipt [10:13:30]MH_GetDate [10:13:30]Write to MH i2c: F0 00 00 7F 6D DB [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: F0 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: F0 09 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: F0 09 00 7F 6D 00 7F F5 77 66 BC EC 60 65 A2 [10:13:30]GetLastDocTimeStamp 1719136822 [10:13:30]current date 1719137663 [10:13:30]FM_GetShiftState [10:13:30]SAM_PROTO_GetShiftState [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 13 01 00 [10:13:30]Write to MH i2c: E2 08 00 80 6D 80 13 01 00 00 00 00 00 6A [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 0E 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 0E 00 80 6D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 88 [10:13:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:13:30]wFMCommunicate OK [10:13:30]SAM_PROTO_GetShiftState done [10:13:30]FM_GetShiftState done [10:13:30]opened in 1719106490 [10:13:30]opened+sec_in_day 1719192890 [10:13:30]quantity*price = 150064 [10:13:30]sum+1 = 150065 [10:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 30 23.06.2024 10:14 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112429 ФПД: 77357791467020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T101423&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112429&fm=77357791467020&tin=02508201610067®Number=0000000000092771&sum=150064 [10:13:31]StoreToDocumentArchive [10:13:31]shift 392 fd 112429 [10:13:31]save to /storage/0392/doc_00112429 [10:13:31]save last doc name /storage/0392/doc_00112429 to /storage/kkm_last_doc_name [10:13:31]save OK [10:13:31]Clear old archive folders... [10:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:31]tlvbuf is 01322EF0 [10:13:31]SAM_PROTO_ClearQueue [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 09 00 00 [10:13:31]Write to MH i2c: E2 08 00 8D 6D 80 09 00 00 00 00 00 00 6C [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 8D 6D 00 90 00 6E [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]SAM_PROTO_ClearQueue done [10:13:32]KKMCreateOFDPacket [10:13:32]OFDProtocolAddRootSTLVToBuf [10:13:32]FM_MakeSignedData [10:13:32]FM_MakeSignedData [10:13:32]SAM_PROTO_SignData [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 01 02 [10:13:32]Write to MH i2c: E2 08 00 8E 6D 80 0D 01 02 00 00 00 00 74 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 8E 6D 00 90 00 6F [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=255 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 7F F5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B7 01 00 35 04 06 00 46 [10:13:32]Write to MH i2c: E2 02 01 8F 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 7F F5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B7 01 00 35 04 06 00 46 00 00 71 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 8F 6D 00 90 00 70 [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=10 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 02 02 05 5B 43 AE 56 0C [10:13:32]Write to MH i2c: E2 0D 00 90 6D 80 0D 02 02 05 00 5B 43 AE 56 0C 00 00 2F [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 90 6D 00 90 00 71 [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 03 02 [10:13:32]Write to MH i2c: E2 08 00 91 6D 80 0D 03 02 00 00 00 00 79 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 0B 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 0B 00 91 6D 00 15 21 5C AA 6F 02 7C 27 90 00 CA [10:13:32]RAPDU: 15 21 5C AA 6F 02 7C 27 90 00 [10:13:32]wFMCommunicate OK [10:13:32]SAM_PROTO_SignData done [10:13:32]FM_MakeSignedData done [10:13:32]CreateOFDProtocolMessage [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 11 00 00 [10:13:32]Write to MH i2c: E2 08 00 92 6D 80 11 00 00 00 00 00 00 79 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 17 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 17 00 92 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CB [10:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:13:32]wFMCommunicate OK [10:13:32]CreateOFDProtocolMessage done [10:13:32]OFDSenderStorePacket 112429 [10:13:32]StoreOFDPacket docnum=112429 [10:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 03 BA 07 01 A4 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 7F F5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B7 01 00 35 04 06 00 46 5B 43 AE 56 0C 15 21 5C AA 6F 02 7C 27 [10:13:32]CheckFolder [10:13:32]dirname=/storage/ofd_packets [10:13:32]CheckFolder done [10:13:32]ProducePacketName [10:13:32]name=ofd_packets/00112429 [10:13:32]NVStorageSaveData ofd_packets/00112429 [10:13:32]File name is /storage/ofd_packets/00112429 [10:13:32]Write 301 bytes [10:13:32]NVStorageSaveData done [10:13:32]OFDSenderStorePacket done [10:13:32]KKMCreateOFDPacket done [10:13:32]NVStorageSaveData kkm_last_timestamp [10:13:32]File name is /storage/kkm_last_timestamp [10:13:32]Write 4 bytes [10:13:32]NVStorageSaveData done [10:13:32]ExternCall_PrintAddStr [10:13:32]wPrintStart [10:13:32]Write to MH i2c: 01 00 00 93 6D 00 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 07 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 07 00 93 6D 00 00 00 00 00 FF 0F 15 [10:13:32]RasterBufferAndPrint [10:13:32]line Счет N : (1)321108 [10:13:32]line ИНН: 02508201610067 [10:13:32]line Контрольно-Кассовый Чек [10:13:32]line ПРОДАЖА [10:13:32]line ТРК (МРК, ГНК) : 11 [10:13:32]line Товар: 2710124130 [10:13:32]line Аи-92-К-5 [10:13:32]line 22.600 * 66.40 [10:13:32]line = 1500.64 [10:13:32]line НДС 12% НСП 1% [10:13:32]line > о реализуемом товаре [10:13:32]line ИТОГО: 1500.64 [10:13:32]line НСП 1% : 13.28 [10:13:32]line НДС 12% : 159.36 [10:13:32]line Наличными: 0.00 [10:13:32]line Безнал.: 1500.64 [10:13:32]line Место: АЗС № 65 "Партнер Нефть" [10:13:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:13:32]line СНО: Общий режим [10:13:32]line Чек 30 23.06.2024 10:14 [10:13:32]line Смена: 392 ФФД: 1.0 [10:13:32]line ЗНМ: 0300000198 [10:13:32]line РНМ: 0000000000092771 [10:13:32]line Версия ККМ: 001 [10:13:32]line Платежная система: О! деньги [10:13:32]line ФМ: 0000000000875083 [10:13:32]line ФД: 112429 [10:13:32]line ФПД: 77357791467020 [10:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T101423&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112429&fm=77357791467020&tin=02508201610067®Number=0000000000092771&sum=150064 [10:13:32]OFD Sender: Processing packet 112429 [packets to send 38, broken 37] [10:13:32]ProducePacketName [10:13:32]name=ofd_packets/00112429 [10:13:32]OFD Sender: To server: pG, [10:13:32]CommunicateWithHost lk.salyk.kg:30040 [10:13:32]ConnectInit lk.salyk.kg [10:13:32]written 0, free lines is 4095 [10:13:32]Connected sock=10 [10:13:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 03 BA 07 01 A4 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 7F F5 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B7 01 00 35 04 06 00 46 5B 43 AE 56 0C 15 21 5C AA 6F 02 7C 27 [10:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D7 E3 47 00 29 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B7 01 00 F4 03 04 00 70 8C 77 66 B6 04 01 00 00 62 86 77 19 27 62 6B 1F [10:13:33]CommunicateWithHost err = 0 [10:13:33]CheckOFDResponse [10:13:33]1017 (14) - 77093643461234 [10:13:33]1041 (16) - 0000000000875083 [10:13:33]1040 (4) - 112429 [10:13:33]1012 (4) - 23.06.2024 02:46 [10:13:33]1206 (1) - 0 [10:13:33]OFD Sender: Remove packet 112429 [10:13:33]ProducePacketName [10:13:33]name=ofd_packets/00112429 [10:13:33]NVStorageDeleteData [10:13:33]Write to MH i2c: 01 00 00 BD 6D 2A [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 07 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 07 00 BD 6D 00 00 00 00 00 EE 0C 2B [10:13:33]RasterBufferAndPrint [10:13:33]line [10:13:33]line [10:13:33]line [10:13:33]line [10:13:33]line [10:13:33]written 0, free lines is 3317 [10:13:33]MH_Cut [10:13:33]Write to MH i2c: D1 01 00 C4 6D 01 03 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: D1 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: D1 01 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: D1 01 00 C4 6D 00 02 [10:13:33]Write to MH i2c: 01 00 00 C5 6D 32 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]OFD Sender: No OFD packet to send [10:13:34]*** Cut start [10:13:34]*** Partial cut [10:13:34]*** CUTSNS_PIN = 1 [10:13:34]*** CUTSNS_PIN = 0 [10:13:34]*** Brake cut motor [10:13:34]Read from MH i2c: 01 [10:13:34]MH_I2C_Read... [10:13:34]*** Stop cut motor [10:13:34]*** Cut end [10:13:34]Read from MH i2c: 01 07 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: 01 07 00 C5 6D 00 00 00 00 00 FF 0F 47 [10:13:34]process_action close_receipt done [10:13:34]requested_data is exist [10:13:34]produce_requested_data [10:13:34]requested_item fm.sn is exist - process it [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 11 00 00 [10:13:34]Write to MH i2c: E2 08 00 C6 6D 80 11 00 00 00 00 00 00 AD [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 17 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 17 00 C6 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [10:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:13:34]wFMCommunicate OK [10:13:34]requested_item fd.num is exist - process it [10:13:34]SAM_PROTO_GetFieldsCounters [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 13 00 00 [10:13:34]Write to MH i2c: E2 08 00 C7 6D 80 13 00 00 00 00 00 00 B0 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 62 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 62 00 C7 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2D B7 01 00 0E 04 04 00 88 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 99 [10:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2D B7 01 00 0E 04 04 00 88 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 [10:13:34]wFMCommunicate OK [10:13:34]SAM_PROTO_GetFieldsCounters done [10:13:34]requested_item shift.num is exist - process it [10:13:34]requested_item shift.opened is exist - process it [10:13:34]req_shift_opened [10:13:34]FM_GetShiftState [10:13:34]SAM_PROTO_GetShiftState [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 13 01 00 [10:13:34]Write to MH i2c: E2 08 00 C8 6D 80 13 01 00 00 00 00 00 B2 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 0E 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 0E 00 C8 6D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D0 [10:13:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:13:34]wFMCommunicate OK [10:13:34]SAM_PROTO_GetShiftState done [10:13:34]FM_GetShiftState done [10:13:34]req_shift_opened done [10:13:34]requested_item shift.open_date is exist - process it [10:13:34]req_shift_open_date [10:13:34]req_shift_open_date done [10:13:34]produce_requested_data done [10:13:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112429,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:13:34]process_action_free close_receipt [10:13:34]json_value_free [10:13:34]json_value_free done [10:13:34]process_json_proto returns [10:13:34]Send response to host [10:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112429,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:13:34]free response buf [10:13:34]execute_script done [10:13:34]execute_script returns [10:13:34]free content buf [10:13:34]Sock 7.Close socket [10:13:34]Sock 7.Thread stoped [10:13:38]OFD Sender: No OFD packet to send [10:13:40]int [10:13:40]Write to MH i2c: 01 00 00 C9 6D 36 [10:13:40]*** FLAG_PRN_PAP1 set [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 07 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 07 00 C9 6D 00 01 00 00 00 FF 0F 4C [10:13:40]state=0 [10:13:40]No paper [10:13:40]int [10:13:40]Write to MH i2c: 01 00 00 CA 6D 37 [10:13:40]*** FLAG_PRN_PAP2 set [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 07 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 07 00 CA 6D 00 03 00 00 00 FF 0F 4F [10:13:40]state=0 [10:13:40]No paper [10:13:40]Cover opened [10:13:41]int [10:13:41]Write to MH i2c: 01 00 00 CB 6D 38 [10:13:41]*** FLAG_PRN_PAP2 reset [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 07 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 07 00 CB 6D 00 01 00 00 00 FF 0F 4E [10:13:41]state=3 [10:13:41]No paper [10:13:41]Cover closed [10:13:41]int [10:13:41]Write to MH i2c: 01 00 00 CC 6D 39 [10:13:41]*** FLAG_PRN_PAP2 set [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 07 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 07 00 CC 6D 00 03 00 00 00 FF 0F 51 [10:13:41]state=0 [10:13:41]No paper [10:13:41]Cover opened [10:13:43]OFD Sender: No OFD packet to send [10:13:45]int [10:13:45]Write to MH i2c: 01 00 00 CD 6D 3A [10:13:45]*** FLAG_PRN_PAP2 reset [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 07 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 07 00 CD 6D 00 01 00 00 00 FF 0F 50 [10:13:45]state=3 [10:13:45]No paper [10:13:45]Cover closed [10:13:45]int [10:13:45]Write to MH i2c: 01 00 00 CE 6D 3B [10:13:45]*** FLAG_PRN_PAP1 reset [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 07 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 07 00 CE 6D 00 00 00 00 00 FF 0F 50 [10:13:45]state=0 [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:54]accept exits with 9 [10:15:54]New connection [10:15:54]New thread 3066957156 created [10:15:54]Thread 3066813796 joined [10:15:54]Waiting for new connection... [10:15:54] Sock 9.Parse request [10:15:54]Sock 9.Check first char [10:15:54]Sock 9.First char is OK [10:15:54]request: POST /json_proto HTTP/1.0 [10:15:54]Method: POST [10:15:54]URL: /json_proto [10:15:54]Method is POST - this is cgi request [10:15:54]url: /json_proto [10:15:54]query_string will be loaded in cgi processing [10:15:54]execute_cgi json_proto POST (null) [10:15:54]execute_cgi path=json_proto method=POST [10:15:54]POST find Content-Length [10:15:54]Host: 172.17.59.68:8080 [10:15:54]Content-Length: 678 [10:15:54]Content-Type: application/json [10:15:54] [10:15:54]POST finish read [10:15:54]Found Content-Length = 678 [10:15:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "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" ] } } [10:15:54]execute_script... [10:15:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "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" ] } } [10:15:54]POST & json_proto [10:15:54]process_json_proto [10:15:54]json parsed OK: [10:15:54]protocol is kg_v1.0 [10:15:54]action value=close_receipt [10:15:54]process_action close_receipt [10:15:54]cmd_close_receipt [10:15:54]MH_GetDate [10:15:54]Write to MH i2c: F0 00 00 CF 6D 2B [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: F0 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: F0 09 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: F0 09 00 CF 6D 00 0F F6 77 66 BC EC 60 65 83 [10:15:54]GetLastDocTimeStamp 1719137663 [10:15:54]current date 1719137807 [10:15:54]FM_GetShiftState [10:15:54]SAM_PROTO_GetShiftState [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 13 01 00 [10:15:54]Write to MH i2c: E2 08 00 D0 6D 80 13 01 00 00 00 00 00 BA [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0E 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0E 00 D0 6D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D8 [10:15:54]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:15:54]wFMCommunicate OK [10:15:54]SAM_PROTO_GetShiftState done [10:15:54]FM_GetShiftState done [10:15:54]opened in 1719106490 [10:15:54]opened+sec_in_day 1719192890 [10:15:54]quantity*price = 67064 [10:15:54]sum+1 = 67065 [10:15:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 31 23.06.2024 10:16 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112430 ФПД: 40511827260342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T101647&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112430&fm=40511827260342&tin=02508201610067®Number=0000000000092771&sum=67000 [10:15:55]StoreToDocumentArchive [10:15:55]shift 392 fd 112430 [10:15:55]save to /storage/0392/doc_00112430 [10:15:55]save last doc name /storage/0392/doc_00112430 to /storage/kkm_last_doc_name [10:15:55]save OK [10:15:55]Clear old archive folders... [10:15:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:55]tlvbuf is 0114BB70 [10:15:55]SAM_PROTO_ClearQueue [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 09 00 00 [10:15:55]Write to MH i2c: E2 08 00 DD 6D 80 09 00 00 00 00 00 00 BC [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:55]Read from MH i2c: E2 03 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 DD 6D 00 90 00 BE [10:15:55]RAPDU: 90 00 [10:15:55]wFMCommunicate OK [10:15:55]SAM_PROTO_ClearQueue done [10:15:55]KKMCreateOFDPacket [10:15:55]OFDProtocolAddRootSTLVToBuf [10:15:55]FM_MakeSignedData [10:15:55]FM_MakeSignedData [10:15:55]SAM_PROTO_SignData [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 0D 01 02 [10:15:55]Write to MH i2c: E2 08 00 DE 6D 80 0D 01 02 00 00 00 00 C4 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 DE 6D 00 90 00 BF [10:15:55]RAPDU: 90 00 [10:15:55]wFMCommunicate OK [10:15:55]wFMCommunicate request_size=255 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 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 D2 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 1F 00 00 00 F4 03 04 00 0F F6 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B7 01 00 35 04 06 00 24 [10:15:55]Write to MH i2c: E2 02 01 DF 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 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 D2 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 1F 00 00 00 F4 03 04 00 0F F6 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B7 01 00 35 04 06 00 24 00 00 C0 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 03 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 03 00 DF 6D 00 90 00 C0 [10:15:56]RAPDU: 90 00 [10:15:56]wFMCommunicate OK [10:15:56]wFMCommunicate request_size=10 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 0D 02 02 05 D8 65 12 B3 B6 [10:15:56]Write to MH i2c: E2 0D 00 E0 6D 80 0D 02 02 05 00 D8 65 12 B3 B6 00 00 89 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 03 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 03 00 E0 6D 00 90 00 C1 [10:15:56]RAPDU: 90 00 [10:15:56]wFMCommunicate OK [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 0D 03 02 [10:15:56]Write to MH i2c: E2 08 00 E1 6D 80 0D 03 02 00 00 00 00 C9 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0B 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0B 00 E1 6D 00 BF 5A 96 E6 CD 62 16 F3 90 00 97 [10:15:56]RAPDU: BF 5A 96 E6 CD 62 16 F3 90 00 [10:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_SignData done [10:15:56]FM_MakeSignedData done [10:15:56]CreateOFDProtocolMessage [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 11 00 00 [10:15:56]Write to MH i2c: E2 08 00 E2 6D 80 11 00 00 00 00 00 00 C9 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 17 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 17 00 E2 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [10:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:15:56]wFMCommunicate OK [10:15:56]CreateOFDProtocolMessage done [10:15:56]OFDSenderStorePacket 112430 [10:15:56]StoreOFDPacket docnum=112430 [10:15:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C FF 07 01 55 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 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 D2 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 1F 00 00 00 F4 03 04 00 0F F6 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B7 01 00 35 04 06 00 24 D8 65 12 B3 B6 BF 5A 96 E6 CD 62 16 F3 [10:15:56]CheckFolder [10:15:56]dirname=/storage/ofd_packets [10:15:56]CheckFolder done [10:15:56]ProducePacketName [10:15:56]name=ofd_packets/00112430 [10:15:56]NVStorageSaveData ofd_packets/00112430 [10:15:56]File name is /storage/ofd_packets/00112430 [10:15:56]Write 301 bytes [10:15:56]NVStorageSaveData done [10:15:56]OFDSenderStorePacket done [10:15:56]KKMCreateOFDPacket done [10:15:56]NVStorageSaveData kkm_last_timestamp [10:15:56]File name is /storage/kkm_last_timestamp [10:15:56]Write 4 bytes [10:15:56]NVStorageSaveData done [10:15:56]ExternCall_PrintAddStr [10:15:56]wPrintStart [10:15:56]Write to MH i2c: 01 00 00 E3 6D 50 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: 01 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: 01 07 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: 01 07 00 E3 6D 00 00 00 00 00 FF 0F 65 [10:15:56]RasterBufferAndPrint [10:15:56]line Счет N : (1)321109 [10:15:56]line ИНН: 02508201610067 [10:15:56]line Контрольно-Кассовый Чек [10:15:56]line ПРОДАЖА [10:15:56]line ТРК (МРК, ГНК) : 11 [10:15:56]line Товар: 2710124130 [10:15:56]line Аи-92-К-5 [10:15:56]line 10.100 * 66.40 [10:15:56]line = 670.64 [10:15:56]line НДС 12% НСП 1% [10:15:56]line > о реализуемом товаре [10:15:56]line ОКРУГЛЕНИЕ: -0.64 [10:15:56]line ИТОГО: 670.00 [10:15:56]line Внесено: 670.00 [10:15:56]line СДАЧА: 0.00 [10:15:56]line НСП 1% : 5.93 [10:15:56]line НДС 12% : 71.22 [10:15:56]line Наличными: 670.00 [10:15:56]line Безнал.: 0.00 [10:15:56]line Место: АЗС № 65 "Партнер Нефть" [10:15:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:15:56]line СНО: Общий режим [10:15:56]line Чек 31 23.06.2024 10:16 [10:15:56]line Смена: 392 ФФД: 1.0 [10:15:56]line ЗНМ: 0300000198 [10:15:56]line РНМ: 0000000000092771 [10:15:56]line Версия ККМ: 001 [10:15:56]line ФМ: 0000000000875083 [10:15:56]line ФД: 112430 [10:15:56]line ФПД: 40511827260342 [10:15:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T101647&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112430&fm=40511827260342&tin=02508201610067®Number=0000000000092771&sum=67000 [10:15:56]OFD Sender: Processing packet 112430 [packets to send 38, broken 37] [10:15:56]ProducePacketName [10:15:56]name=ofd_packets/00112430 [10:15:56]OFD Sender: To server: pG, [10:15:56]CommunicateWithHost lk.salyk.kg:30040 [10:15:56]ConnectInit lk.salyk.kg [10:15:56]written 0, free lines is 4095 [10:15:56]Connected sock=10 [10:15:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C FF 07 01 55 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 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 D2 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 1F 00 00 00 F4 03 04 00 0F F6 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B7 01 00 35 04 06 00 24 D8 65 12 B3 B6 BF 5A 96 E6 CD 62 16 F3 [10:15:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 00 E9 47 00 5E 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B7 01 00 F4 03 04 00 00 8D 77 66 B6 04 01 00 00 9A C6 A3 DC 17 5F A4 66 [10:15:57]CommunicateWithHost err = 0 [10:15:57]CheckOFDResponse [10:15:57]1017 (14) - 77093643461234 [10:15:57]1041 (16) - 0000000000875083 [10:15:57]1040 (4) - 112430 [10:15:57]1012 (4) - 23.06.2024 02:48 [10:15:57]1206 (1) - 0 [10:15:57]OFD Sender: Remove packet 112430 [10:15:57]ProducePacketName [10:15:57]name=ofd_packets/00112430 [10:15:57]NVStorageDeleteData [10:15:57]Write to MH i2c: 01 00 00 0E 6E 7C [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 07 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 07 00 0E 6E 00 00 00 00 00 D2 0C 61 [10:15:57]RasterBufferAndPrint [10:15:57]line [10:15:57]line [10:15:57]line [10:15:57]line [10:15:57]line [10:15:57]written 0, free lines is 3290 [10:15:57]MH_Cut [10:15:57]Write to MH i2c: D1 01 00 15 6E 01 55 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: D1 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: D1 01 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: D1 01 00 15 6E 00 54 [10:15:57]Write to MH i2c: 01 00 00 16 6E 84 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]OFD Sender: No OFD packet to send [10:15:57]*** Cut start [10:15:57]*** Partial cut [10:15:57]*** CUTSNS_PIN = 1 [10:15:57]*** CUTSNS_PIN = 0 [10:15:58]*** Brake cut motor [10:15:58]Read from MH i2c: 01 [10:15:58]MH_I2C_Read... [10:15:58]*** Stop cut motor [10:15:58]*** Cut end [10:15:58]Read from MH i2c: 01 07 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 16 6E 00 00 00 00 00 FF 0F 99 [10:15:58]process_action close_receipt done [10:15:58]requested_data is exist [10:15:58]produce_requested_data [10:15:58]requested_item fm.sn is exist - process it [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 11 00 00 [10:15:58]Write to MH i2c: E2 08 00 17 6E 80 11 00 00 00 00 00 00 FF [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 17 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 17 00 17 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 51 [10:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:15:58]wFMCommunicate OK [10:15:58]requested_item fd.num is exist - process it [10:15:58]SAM_PROTO_GetFieldsCounters [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 13 00 00 [10:15:58]Write to MH i2c: E2 08 00 18 6E 80 13 00 00 00 00 00 00 02 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 62 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 62 00 18 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2E B7 01 00 0E 04 04 00 88 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 [10:15:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2E B7 01 00 0E 04 04 00 88 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 [10:15:58]wFMCommunicate OK [10:15:58]SAM_PROTO_GetFieldsCounters done [10:15:58]requested_item shift.num is exist - process it [10:15:58]requested_item shift.opened is exist - process it [10:15:58]req_shift_opened [10:15:58]FM_GetShiftState [10:15:58]SAM_PROTO_GetShiftState [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 13 01 00 [10:15:58]Write to MH i2c: E2 08 00 19 6E 80 13 01 00 00 00 00 00 04 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 0E 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 0E 00 19 6E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 22 [10:15:58]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:15:58]wFMCommunicate OK [10:15:58]SAM_PROTO_GetShiftState done [10:15:58]FM_GetShiftState done [10:15:58]req_shift_opened done [10:15:58]requested_item shift.open_date is exist - process it [10:15:58]req_shift_open_date [10:15:58]req_shift_open_date done [10:15:58]produce_requested_data done [10:15:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112430,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:15:58]process_action_free close_receipt [10:15:58]json_value_free [10:15:58]json_value_free done [10:15:58]process_json_proto returns [10:15:58]Send response to host [10:15:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112430,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:15:58]free response buf [10:15:58]execute_script done [10:15:58]execute_script returns [10:15:58]free content buf [10:15:58]Sock 9.Close socket [10:15:58]Sock 9.Thread stoped [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16: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:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:49]accept exits with 7 [10:23:49]New connection [10:23:49]New thread 3066813796 created [10:23:49]Thread 3066957156 joined [10:23:49]Waiting for new connection... [10:23:49] Sock 7.Parse request [10:23:49]Sock 7.Check first char [10:23:49]Sock 7.First char is OK [10:23:49]request: POST /json_proto HTTP/1.0 [10:23:49]Method: POST [10:23:49]URL: /json_proto [10:23:49]Method is POST - this is cgi request [10:23:49]url: /json_proto [10:23:49]query_string will be loaded in cgi processing [10:23:49]execute_cgi json_proto POST (null) [10:23:49]execute_cgi path=json_proto method=POST [10:23:49]POST find Content-Length [10:23:49]Host: 172.17.59.68:8080 [10:23:49]Content-Length: 805 [10:23:49]Content-Type: application/json [10:23:49] [10:23:49]POST finish read [10:23:49]Found Content-Length = 805 [10:23:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:49]execute_script... [10:23: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)321110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:49]POST & json_proto [10:23:49]process_json_proto [10:23:49]json parsed OK: [10:23:49]protocol is kg_v1.0 [10:23:49]action value=close_receipt [10:23:49]process_action close_receipt [10:23:49]cmd_close_receipt [10:23:49]MH_GetDate [10:23:49]Write to MH i2c: F0 00 00 1A 6E 77 [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 09 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 09 00 1A 6E 00 EA F7 77 66 BC EC 60 65 AB [10:23:49]GetLastDocTimeStamp 1719137807 [10:23:49]current date 1719138282 [10:23:49]FM_GetShiftState [10:23:49]SAM_PROTO_GetShiftState [10:23:49]wFMCommunicate request_size=4 [10:23:49]MH_SAM_APDU [10:23:49]CAPDU: 80 13 01 00 [10:23:49]Write to MH i2c: E2 08 00 1B 6E 80 13 01 00 00 00 00 00 06 [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:49]Read from MH i2c: E2 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 0E 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 0E 00 1B 6E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 24 [10:23:49]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:23:49]wFMCommunicate OK [10:23:49]SAM_PROTO_GetShiftState done [10:23:49]FM_GetShiftState done [10:23:49]opened in 1719106490 [10:23:49]opened+sec_in_day 1719192890 [10:23:49]quantity*price = 40039 [10:23:49]sum+1 = 40040 [10:23:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 32 23.06.2024 10:24 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112431 ФПД: 35576963300785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102442&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112431&fm=35576963300785&tin=02508201610067®Number=0000000000092771&sum=40039 [10:23:50]StoreToDocumentArchive [10:23:50]shift 392 fd 112431 [10:23:50]save to /storage/0392/doc_00112431 [10:23:50]save last doc name /storage/0392/doc_00112431 to /storage/kkm_last_doc_name [10:23:50]save OK [10:23:50]Clear old archive folders... [10:23:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:50]tlvbuf is 011C7A10 [10:23:50]SAM_PROTO_ClearQueue [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 09 00 00 [10:23:50]Write to MH i2c: E2 08 00 28 6E 80 09 00 00 00 00 00 00 08 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 28 6E 00 90 00 0A [10:23:50]RAPDU: 90 00 [10:23:50]wFMCommunicate OK [10:23:50]SAM_PROTO_ClearQueue done [10:23:50]KKMCreateOFDPacket [10:23:50]OFDProtocolAddRootSTLVToBuf [10:23:50]FM_MakeSignedData [10:23:50]FM_MakeSignedData [10:23:50]SAM_PROTO_SignData [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 0D 01 02 [10:23:50]Write to MH i2c: E2 08 00 29 6E 80 0D 01 02 00 00 00 00 10 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 29 6E 00 90 00 0B [10:23:50]RAPDU: 90 00 [10:23:50]wFMCommunicate OK [10:23:50]wFMCommunicate request_size=255 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EA F7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B7 01 00 35 04 06 00 20 [10:23:50]Write to MH i2c: E2 02 01 2A 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EA F7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B7 01 00 35 04 06 00 20 00 00 4E [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 2A 6E 00 90 00 0C [10:23:50]RAPDU: 90 00 [10:23:50]wFMCommunicate OK [10:23:50]wFMCommunicate request_size=10 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 0D 02 02 05 5B 68 42 7D B1 [10:23:50]Write to MH i2c: E2 0D 00 2B 6E 80 0D 02 02 05 00 5B 68 42 7D B1 00 00 50 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 2B 6E 00 90 00 0D [10:23:50]RAPDU: 90 00 [10:23:50]wFMCommunicate OK [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 0D 03 02 [10:23:50]Write to MH i2c: E2 08 00 2C 6E 80 0D 03 02 00 00 00 00 15 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 0B 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 0B 00 2C 6E 00 8C BB 9A F5 24 1D 95 1C 90 00 DE [10:23:50]RAPDU: 8C BB 9A F5 24 1D 95 1C 90 00 [10:23:50]wFMCommunicate OK [10:23:50]SAM_PROTO_SignData done [10:23:50]FM_MakeSignedData done [10:23:50]CreateOFDProtocolMessage [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 11 00 00 [10:23:50]Write to MH i2c: E2 08 00 2D 6E 80 11 00 00 00 00 00 00 15 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 17 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 17 00 2D 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 67 [10:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:23:50]wFMCommunicate OK [10:23:50]CreateOFDProtocolMessage done [10:23:50]OFDSenderStorePacket 112431 [10:23:50]StoreOFDPacket docnum=112431 [10:23:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 97 A6 07 01 AA 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EA F7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B7 01 00 35 04 06 00 20 5B 68 42 7D B1 8C BB 9A F5 24 1D 95 1C [10:23:50]CheckFolder [10:23:50]dirname=/storage/ofd_packets [10:23:50]CheckFolder done [10:23:50]ProducePacketName [10:23:50]name=ofd_packets/00112431 [10:23:50]NVStorageSaveData ofd_packets/00112431 [10:23:50]File name is /storage/ofd_packets/00112431 [10:23:50]Write 301 bytes [10:23:50]NVStorageSaveData done [10:23:50]OFDSenderStorePacket done [10:23:50]KKMCreateOFDPacket done [10:23:50]NVStorageSaveData kkm_last_timestamp [10:23:50]File name is /storage/kkm_last_timestamp [10:23:50]Write 4 bytes [10:23:50]NVStorageSaveData done [10:23:50]ExternCall_PrintAddStr [10:23:50]wPrintStart [10:23:50]Write to MH i2c: 01 00 00 2E 6E 9C [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: 01 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: 01 07 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: 01 07 00 2E 6E 00 00 00 00 00 FF 0F B1 [10:23:50]RasterBufferAndPrint [10:23:50]line Счет N : (1)321110 [10:23:50]line ИНН: 02508201610067 [10:23:50]line Контрольно-Кассовый Чек [10:23:50]line ПРОДАЖА [10:23:50]line ТРК (МРК, ГНК) : 11 [10:23:50]line Товар: 2710124130 [10:23:50]line Аи-92-К-5 [10:23:50]line 6.030 * 66.40 [10:23:50]line = 400.39 [10:23:50]line НДС 12% НСП 1% [10:23:50]line > о реализуемом товаре [10:23:50]line ИТОГО: 400.39 [10:23:50]line НСП 1% : 3.54 [10:23:50]line НДС 12% : 42.52 [10:23:50]line Наличными: 0.00 [10:23:50]line Безнал.: 400.39 [10:23:50]line Место: АЗС № 65 "Партнер Нефть" [10:23:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:23:50]line СНО: Общий режим [10:23:50]line Чек 32 23.06.2024 10:24 [10:23:50]line Смена: 392 ФФД: 1.0 [10:23:50]line ЗНМ: 0300000198 [10:23:50]line РНМ: 0000000000092771 [10:23:50]line Версия ККМ: 001 [10:23:50]line Платежная система: О! деньги [10:23:50]line ФМ: 0000000000875083 [10:23:50]line ФД: 112431 [10:23:50]line ФПД: 35576963300785 [10:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102442&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112431&fm=35576963300785&tin=02508201610067®Number=0000000000092771&sum=40039 [10:23:51]written 0, free lines is 4095 [10:23:51]OFD Sender: Processing packet 112431 [packets to send 38, broken 37] [10:23:51]ProducePacketName [10:23:51]name=ofd_packets/00112431 [10:23:51]OFD Sender: To server: pG, [10:23:51]CommunicateWithHost lk.salyk.kg:30040 [10:23:51]ConnectInit lk.salyk.kg [10:23:51]Connected sock=10 [10:23:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 97 A6 07 01 AA 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EA F7 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B7 01 00 35 04 06 00 20 5B 68 42 7D B1 8C BB 9A F5 24 1D 95 1C [10:23:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0B 36 47 00 BC 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B7 01 00 F4 03 04 00 DA 8E 77 66 B6 04 01 00 00 54 58 51 1B 8E 55 0C 42 [10:23:51]CommunicateWithHost err = 0 [10:23:51]CheckOFDResponse [10:23:51]1017 (14) - 77093643461234 [10:23:51]1041 (16) - 0000000000875083 [10:23:51]1040 (4) - 112431 [10:23:51]1012 (4) - 23.06.2024 02:56 [10:23:51]1206 (1) - 0 [10:23:51]OFD Sender: Remove packet 112431 [10:23:51]ProducePacketName [10:23:51]name=ofd_packets/00112431 [10:23:51]NVStorageDeleteData [10:23:51]Write to MH i2c: 01 00 00 58 6E C6 [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 07 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 07 00 58 6E 00 00 00 00 00 EB 0C C4 [10:23:51]RasterBufferAndPrint [10:23:51]line [10:23:51]line [10:23:51]line [10:23:51]line [10:23:51]line [10:23:51]written 0, free lines is 3313 [10:23:51]MH_Cut [10:23:51]Write to MH i2c: D1 01 00 5F 6E 01 9F [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: D1 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: D1 01 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: D1 01 00 5F 6E 00 9E [10:23:51]Write to MH i2c: 01 00 00 60 6E CE [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:52]OFD Sender: No OFD packet to send [10:23:52]*** Cut start [10:23:52]*** Partial cut [10:23:52]*** CUTSNS_PIN = 1 [10:23:52]*** CUTSNS_PIN = 0 [10:23:52]*** Brake cut motor [10:23:53]Read from MH i2c: 01 [10:23:53]MH_I2C_Read... [10:23:53]*** Stop cut motor [10:23:53]*** Cut end [10:23:53]Read from MH i2c: 01 07 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: 01 07 00 60 6E 00 00 00 00 00 FF 0F E3 [10:23:53]process_action close_receipt done [10:23:53]requested_data is exist [10:23:53]produce_requested_data [10:23:53]requested_item fm.sn is exist - process it [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 11 00 00 [10:23:53]Write to MH i2c: E2 08 00 61 6E 80 11 00 00 00 00 00 00 49 [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 17 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 17 00 61 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [10:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:23:53]wFMCommunicate OK [10:23:53]requested_item fd.num is exist - process it [10:23:53]SAM_PROTO_GetFieldsCounters [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 13 00 00 [10:23:53]Write to MH i2c: E2 08 00 62 6E 80 13 00 00 00 00 00 00 4C [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 62 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 62 00 62 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2F B7 01 00 0E 04 04 00 88 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 3D [10:23:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2F B7 01 00 0E 04 04 00 88 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 [10:23:53]wFMCommunicate OK [10:23:53]SAM_PROTO_GetFieldsCounters done [10:23:53]requested_item shift.num is exist - process it [10:23:53]requested_item shift.opened is exist - process it [10:23:53]req_shift_opened [10:23:53]FM_GetShiftState [10:23:53]SAM_PROTO_GetShiftState [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 13 01 00 [10:23:53]Write to MH i2c: E2 08 00 63 6E 80 13 01 00 00 00 00 00 4E [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 0E 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 0E 00 63 6E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 6C [10:23:53]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:23:53]wFMCommunicate OK [10:23:53]SAM_PROTO_GetShiftState done [10:23:53]FM_GetShiftState done [10:23:53]req_shift_opened done [10:23:53]requested_item shift.open_date is exist - process it [10:23:53]req_shift_open_date [10:23:53]req_shift_open_date done [10:23:53]produce_requested_data done [10:23:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112431,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:23:53]process_action_free close_receipt [10:23:53]json_value_free [10:23:53]json_value_free done [10:23:53]process_json_proto returns [10:23:53]Send response to host [10:23:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112431,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:23:53]free response buf [10:23:53]execute_script done [10:23:53]execute_script returns [10:23:53]free content buf [10:23:53]Sock 7.Close socket [10:23:53]Sock 7.Thread stoped [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:14]accept exits with 9 [10:24:14]New connection [10:24:14]New thread 3066957156 created [10:24:14]Thread 3066813796 joined [10:24:14]Waiting for new connection... [10:24:14] Sock 9.Parse request [10:24:14]Sock 9.Check first char [10:24:14]Sock 9.First char is OK [10:24:14]request: POST /json_proto HTTP/1.0 [10:24:14]Method: POST [10:24:14]URL: /json_proto [10:24:14]Method is POST - this is cgi request [10:24:14]url: /json_proto [10:24:14]query_string will be loaded in cgi processing [10:24:14]execute_cgi json_proto POST (null) [10:24:14]execute_cgi path=json_proto method=POST [10:24:14]POST find Content-Length [10:24:14]Host: 172.17.59.68:8080 [10:24:14]Content-Length: 677 [10:24:14]Content-Type: application/json [10:24:14] [10:24:14]POST finish read [10:24:14]Found Content-Length = 677 [10:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:14]execute_script... [10:24:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:14]POST & json_proto [10:24:14]process_json_proto [10:24:14]json parsed OK: [10:24:14]protocol is kg_v1.0 [10:24:14]action value=close_receipt [10:24:14]process_action close_receipt [10:24:14]cmd_close_receipt [10:24:14]MH_GetDate [10:24:14]Write to MH i2c: F0 00 00 64 6E C1 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: F0 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: F0 09 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: F0 09 00 64 6E 00 03 F8 77 66 BC EC 60 65 0F [10:24:14]GetLastDocTimeStamp 1719138282 [10:24:14]current date 1719138307 [10:24:14]FM_GetShiftState [10:24:14]SAM_PROTO_GetShiftState [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 13 01 00 [10:24:14]Write to MH i2c: E2 08 00 65 6E 80 13 01 00 00 00 00 00 50 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 0E 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 0E 00 65 6E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 6E [10:24:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:24:14]wFMCommunicate OK [10:24:14]SAM_PROTO_GetShiftState done [10:24:14]FM_GetShiftState done [10:24:14]opened in 1719106490 [10:24:14]opened+sec_in_day 1719192890 [10:24:14]quantity*price = 20052 [10:24:14]sum+1 = 20054 [10:24:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 33 23.06.2024 10:25 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112432 ФПД: 149345042208700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102507&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112432&fm=149345042208700&tin=02508201610067®Number=0000000000092771&sum=20000 [10:24:15]StoreToDocumentArchive [10:24:15]shift 392 fd 112432 [10:24:15]save to /storage/0392/doc_00112432 [10:24:15]save last doc name /storage/0392/doc_00112432 to /storage/kkm_last_doc_name [10:24:15]save OK [10:24:15]Clear old archive folders... [10:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:15]tlvbuf is 0123B7E0 [10:24:15]SAM_PROTO_ClearQueue [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 09 00 00 [10:24:15]Write to MH i2c: E2 08 00 72 6E 80 09 00 00 00 00 00 00 52 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 72 6E 00 90 00 54 [10:24:15]RAPDU: 90 00 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_ClearQueue done [10:24:15]KKMCreateOFDPacket [10:24:15]OFDProtocolAddRootSTLVToBuf [10:24:15]FM_MakeSignedData [10:24:15]FM_MakeSignedData [10:24:15]SAM_PROTO_SignData [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 0D 01 02 [10:24:15]Write to MH i2c: E2 08 00 73 6E 80 0D 01 02 00 00 00 00 5A [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 73 6E 00 90 00 55 [10:24:15]RAPDU: 90 00 [10:24:15]wFMCommunicate OK [10:24:15]wFMCommunicate request_size=255 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 03 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B7 01 00 35 04 06 00 87 [10:24:15]Write to MH i2c: E2 02 01 74 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 03 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B7 01 00 35 04 06 00 87 00 00 BE [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 74 6E 00 90 00 56 [10:24:15]RAPDU: 90 00 [10:24:15]wFMCommunicate OK [10:24:15]wFMCommunicate request_size=10 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 0D 02 02 05 D4 1A 30 97 BC [10:24:15]Write to MH i2c: E2 0D 00 75 6E 80 0D 02 02 05 00 D4 1A 30 97 BC 00 00 D8 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 75 6E 00 90 00 57 [10:24:15]RAPDU: 90 00 [10:24:15]wFMCommunicate OK [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 0D 03 02 [10:24:15]Write to MH i2c: E2 08 00 76 6E 80 0D 03 02 00 00 00 00 5F [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 0B 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 0B 00 76 6E 00 D3 5C F2 C6 16 88 35 45 90 00 5F [10:24:16]RAPDU: D3 5C F2 C6 16 88 35 45 90 00 [10:24:16]wFMCommunicate OK [10:24:16]SAM_PROTO_SignData done [10:24:16]FM_MakeSignedData done [10:24:16]CreateOFDProtocolMessage [10:24:16]wFMCommunicate request_size=4 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 11 00 00 [10:24:16]Write to MH i2c: E2 08 00 77 6E 80 11 00 00 00 00 00 00 5F [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 17 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 17 00 77 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [10:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:24:16]wFMCommunicate OK [10:24:16]CreateOFDProtocolMessage done [10:24:16]OFDSenderStorePacket 112432 [10:24:16]StoreOFDPacket docnum=112432 [10:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 13 5C 07 01 B3 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 03 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B7 01 00 35 04 06 00 87 D4 1A 30 97 BC D3 5C F2 C6 16 88 35 45 [10:24:16]CheckFolder [10:24:16]dirname=/storage/ofd_packets [10:24:16]CheckFolder done [10:24:16]ProducePacketName [10:24:16]name=ofd_packets/00112432 [10:24:16]NVStorageSaveData ofd_packets/00112432 [10:24:16]File name is /storage/ofd_packets/00112432 [10:24:16]Write 301 bytes [10:24:16]NVStorageSaveData done [10:24:16]OFDSenderStorePacket done [10:24:16]KKMCreateOFDPacket done [10:24:16]NVStorageSaveData kkm_last_timestamp [10:24:16]File name is /storage/kkm_last_timestamp [10:24:16]Write 4 bytes [10:24:16]NVStorageSaveData done [10:24:16]ExternCall_PrintAddStr [10:24:16]wPrintStart [10:24:16]Write to MH i2c: 01 00 00 78 6E E6 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 07 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 07 00 78 6E 00 00 00 00 00 FF 0F FB [10:24:16]RasterBufferAndPrint [10:24:16]line Счет N : (1)321111 [10:24:16]line ИНН: 02508201610067 [10:24:16]line Контрольно-Кассовый Чек [10:24:16]line ПРОДАЖА [10:24:16]line ТРК (МРК, ГНК) : 11 [10:24:16]line Товар: 2710124130 [10:24:16]line Аи-92-К-5 [10:24:16]line 3.020 * 66.40 [10:24:16]line = 200.53 [10:24:16]line НДС 12% НСП 1% [10:24:16]line > о реализуемом товаре [10:24:16]line ОКРУГЛЕНИЕ: -0.53 [10:24:16]line ИТОГО: 200.00 [10:24:16]line Внесено: 200.00 [10:24:16]line СДАЧА: 0.00 [10:24:16]line НСП 1% : 1.77 [10:24:16]line НДС 12% : 21.29 [10:24:16]line Наличными: 200.00 [10:24:16]line Безнал.: 0.00 [10:24:16]line Место: АЗС № 65 "Партнер Нефть" [10:24:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:24:16]line СНО: Общий режим [10:24:16]line Чек 33 23.06.2024 10:25 [10:24:16]line Смена: 392 ФФД: 1.0 [10:24:16]line ЗНМ: 0300000198 [10:24:16]line РНМ: 0000000000092771 [10:24:16]line Версия ККМ: 001 [10:24:16]line ФМ: 0000000000875083 [10:24:16]line ФД: 112432 [10:24:16]line ФПД: 149345042208700 [10:24:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102507&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112432&fm=149345042208700&tin=02508201610067®Number=0000000000092771&sum=20000 [10:24:16]OFD Sender: Processing packet 112432 [packets to send 38, broken 37] [10:24:16]ProducePacketName [10:24:16]name=ofd_packets/00112432 [10:24:16]OFD Sender: To server: pG, [10:24:16]CommunicateWithHost lk.salyk.kg:30040 [10:24:16]ConnectInit lk.salyk.kg [10:24:16]written 0, free lines is 4095 [10:24:16]Connected sock=10 [10:24:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 13 5C 07 01 B3 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 03 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B7 01 00 35 04 06 00 87 D4 1A 30 97 BC D3 5C F2 C6 16 88 35 45 [10:24:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AB CA 47 00 FB 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B7 01 00 F4 03 04 00 F3 8E 77 66 B6 04 01 00 00 68 04 4D FC 9D BF 2F A6 [10:24:16]CommunicateWithHost err = 0 [10:24:16]CheckOFDResponse [10:24:16]1017 (14) - 77093643461234 [10:24:16]1041 (16) - 0000000000875083 [10:24:16]1040 (4) - 112432 [10:24:16]1012 (4) - 23.06.2024 02:56 [10:24:16]1206 (1) - 0 [10:24:16]OFD Sender: Remove packet 112432 [10:24:16]ProducePacketName [10:24:16]name=ofd_packets/00112432 [10:24:16]NVStorageDeleteData [10:24:16]Write to MH i2c: 01 00 00 A3 6E 11 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 07 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 07 00 A3 6E 00 00 00 00 00 D4 0C F8 [10:24:16]RasterBufferAndPrint [10:24:16]line [10:24:16]line [10:24:16]line [10:24:16]line [10:24:16]line [10:24:16]written 0, free lines is 3292 [10:24:16]MH_Cut [10:24:16]Write to MH i2c: D1 01 00 AA 6E 01 EA [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: D1 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: D1 01 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: D1 01 00 AA 6E 00 E9 [10:24:16]Write to MH i2c: 01 00 00 AB 6E 19 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:17]OFD Sender: No OFD packet to send [10:24:17]*** Cut start [10:24:17]*** Partial cut [10:24:17]*** CUTSNS_PIN = 1 [10:24:17]*** CUTSNS_PIN = 0 [10:24:17]*** Brake cut motor [10:24:18]Read from MH i2c: 01 [10:24:18]MH_I2C_Read... [10:24:18]*** Stop cut motor [10:24:18]*** Cut end [10:24:18]Read from MH i2c: 01 07 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 AB 6E 00 00 00 00 00 FF 0F 2E [10:24:18]process_action close_receipt done [10:24:18]requested_data is exist [10:24:18]produce_requested_data [10:24:18]requested_item fm.sn is exist - process it [10:24:18]wFMCommunicate request_size=4 [10:24:18]MH_SAM_APDU [10:24:18]CAPDU: 80 11 00 00 [10:24:18]Write to MH i2c: E2 08 00 AC 6E 80 11 00 00 00 00 00 00 94 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:18]Read from MH i2c: E2 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 17 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 17 00 AC 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [10:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:24:18]wFMCommunicate OK [10:24:18]requested_item fd.num is exist - process it [10:24:18]SAM_PROTO_GetFieldsCounters [10:24:18]wFMCommunicate request_size=4 [10:24:18]MH_SAM_APDU [10:24:18]CAPDU: 80 13 00 00 [10:24:18]Write to MH i2c: E2 08 00 AD 6E 80 13 00 00 00 00 00 00 97 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:18]Read from MH i2c: E2 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 62 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 62 00 AD 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 30 B7 01 00 0E 04 04 00 88 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 8C [10:24:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 30 B7 01 00 0E 04 04 00 88 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 [10:24:18]wFMCommunicate OK [10:24:18]SAM_PROTO_GetFieldsCounters done [10:24:18]requested_item shift.num is exist - process it [10:24:18]requested_item shift.opened is exist - process it [10:24:18]req_shift_opened [10:24:18]FM_GetShiftState [10:24:18]SAM_PROTO_GetShiftState [10:24:18]wFMCommunicate request_size=4 [10:24:18]MH_SAM_APDU [10:24:18]CAPDU: 80 13 01 00 [10:24:18]Write to MH i2c: E2 08 00 AE 6E 80 13 01 00 00 00 00 00 99 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:18]Read from MH i2c: E2 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 0E 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 0E 00 AE 6E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B7 [10:24:18]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:24:18]wFMCommunicate OK [10:24:18]SAM_PROTO_GetShiftState done [10:24:18]FM_GetShiftState done [10:24:18]req_shift_opened done [10:24:18]requested_item shift.open_date is exist - process it [10:24:18]req_shift_open_date [10:24:18]req_shift_open_date done [10:24:18]produce_requested_data done [10:24:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112432,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:24:18]process_action_free close_receipt [10:24:18]json_value_free [10:24:18]json_value_free done [10:24:18]process_json_proto returns [10:24:18]Send response to host [10:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112432,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:24:18]free response buf [10:24:18]execute_script done [10:24:18]execute_script returns [10:24:18]free content buf [10:24:18]Sock 9.Close socket [10:24:18]Sock 9.Thread stoped [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:07]accept exits with 7 [10:26:07]New connection [10:26:07]New thread 3066813796 created [10:26:07]Thread 3066957156 joined [10:26:07]Waiting for new connection... [10:26:07] Sock 7.Parse request [10:26:07]Sock 7.Check first char [10:26:07]Sock 7.First char is OK [10:26:07]request: POST /json_proto HTTP/1.0 [10:26:07]Method: POST [10:26:07]URL: /json_proto [10:26:07]Method is POST - this is cgi request [10:26:07]url: /json_proto [10:26:07]query_string will be loaded in cgi processing [10:26:07]execute_cgi json_proto POST (null) [10:26:07]execute_cgi path=json_proto method=POST [10:26:07]POST find Content-Length [10:26:07]Host: 172.17.59.68:8080 [10:26:07]Content-Length: 679 [10:26:07]Content-Type: application/json [10:26:07] [10:26:07]POST finish read [10:26:07]Found Content-Length = 679 [10:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 28.810, "sum" : 2100.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:07]execute_script... [10:26: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)321112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 28.810, "sum" : 2100.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:07]POST & json_proto [10:26:07]process_json_proto [10:26:07]json parsed OK: [10:26:07]protocol is kg_v1.0 [10:26:07]action value=close_receipt [10:26:07]process_action close_receipt [10:26:07]cmd_close_receipt [10:26:07]MH_GetDate [10:26:07]Write to MH i2c: F0 00 00 AF 6E 0C [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: F0 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: F0 09 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: F0 09 00 AF 6E 00 75 F8 77 66 BC EC 60 65 CC [10:26:07]GetLastDocTimeStamp 1719138307 [10:26:07]current date 1719138421 [10:26:07]FM_GetShiftState [10:26:07]SAM_PROTO_GetShiftState [10:26:07]wFMCommunicate request_size=4 [10:26:07]MH_SAM_APDU [10:26:07]CAPDU: 80 13 01 00 [10:26:07]Write to MH i2c: E2 08 00 B0 6E 80 13 01 00 00 00 00 00 9B [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:07]Read from MH i2c: E2 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 0E 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 0E 00 B0 6E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B9 [10:26:07]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:26:07]wFMCommunicate OK [10:26:07]SAM_PROTO_GetShiftState done [10:26:07]FM_GetShiftState done [10:26:07]opened in 1719106490 [10:26:07]opened+sec_in_day 1719192890 [10:26:07]quantity*price = 210024 [10:26:07]sum+1 = 210026 [10:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.59 НДС 12% : 223.03 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 34 23.06.2024 10:27 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112433 ФПД: 249102265027744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102701&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112433&fm=249102265027744&tin=02508201610067®Number=0000000000092771&sum=210000 [10:26:08]StoreToDocumentArchive [10:26:08]shift 392 fd 112433 [10:26:08]save to /storage/0392/doc_00112433 [10:26:08]save last doc name /storage/0392/doc_00112433 to /storage/kkm_last_doc_name [10:26:08]save OK [10:26:08]Clear old archive folders... [10:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:08]tlvbuf is 013362C0 [10:26:08]SAM_PROTO_ClearQueue [10:26:08]wFMCommunicate request_size=4 [10:26:08]MH_SAM_APDU [10:26:08]CAPDU: 80 09 00 00 [10:26:08]Write to MH i2c: E2 08 00 BD 6E 80 09 00 00 00 00 00 00 9D [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:09]Read from MH i2c: E2 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 03 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 03 00 BD 6E 00 90 00 9F [10:26:09]RAPDU: 90 00 [10:26:09]wFMCommunicate OK [10:26:09]SAM_PROTO_ClearQueue done [10:26:09]KKMCreateOFDPacket [10:26:09]OFDProtocolAddRootSTLVToBuf [10:26:09]FM_MakeSignedData [10:26:09]FM_MakeSignedData [10:26:09]SAM_PROTO_SignData [10:26:09]wFMCommunicate request_size=4 [10:26:09]MH_SAM_APDU [10:26:09]CAPDU: 80 0D 01 02 [10:26:09]Write to MH i2c: E2 08 00 BE 6E 80 0D 01 02 00 00 00 00 A5 [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:09]Read from MH i2c: E2 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 03 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 03 00 BE 6E 00 90 00 A0 [10:26:09]RAPDU: 90 00 [10:26:09]wFMCommunicate OK [10:26:09]wFMCommunicate request_size=255 [10:26:09]MH_SAM_APDU [10:26:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 70 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 69 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 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 75 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B7 01 00 35 04 06 00 E2 8E A4 05 [10:26:09]Write to MH i2c: E2 02 01 BF 6E 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 70 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 69 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 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 75 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B7 01 00 35 04 06 00 E2 8E A4 05 00 00 F7 [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:09]Read from MH i2c: E2 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 03 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 03 00 BF 6E 00 90 00 A1 [10:26:09]RAPDU: 90 00 [10:26:09]wFMCommunicate OK [10:26:09]wFMCommunicate request_size=7 [10:26:09]MH_SAM_APDU [10:26:09]CAPDU: 80 0D 02 02 02 0C A0 [10:26:09]Write to MH i2c: E2 0A 00 C0 6E 80 0D 02 02 02 00 0C A0 00 00 58 [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:09]Read from MH i2c: E2 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 03 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 03 00 C0 6E 00 90 00 A2 [10:26:09]RAPDU: 90 00 [10:26:09]wFMCommunicate OK [10:26:09]wFMCommunicate request_size=4 [10:26:09]MH_SAM_APDU [10:26:09]CAPDU: 80 0D 03 02 [10:26:09]Write to MH i2c: E2 08 00 C1 6E 80 0D 03 02 00 00 00 00 AA [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:09]Read from MH i2c: E2 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 0B 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 0B 00 C1 6E 00 54 10 C2 5A F6 18 13 13 90 00 5F [10:26:09]RAPDU: 54 10 C2 5A F6 18 13 13 90 00 [10:26:09]wFMCommunicate OK [10:26:09]SAM_PROTO_SignData done [10:26:09]FM_MakeSignedData done [10:26:09]CreateOFDProtocolMessage [10:26:09]wFMCommunicate request_size=4 [10:26:09]MH_SAM_APDU [10:26:09]CAPDU: 80 11 00 00 [10:26:09]Write to MH i2c: E2 08 00 C2 6E 80 11 00 00 00 00 00 00 AA [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:09]Read from MH i2c: E2 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 17 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: E2 17 00 C2 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [10:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:26:09]wFMCommunicate OK [10:26:09]CreateOFDProtocolMessage done [10:26:09]OFDSenderStorePacket 112433 [10:26:09]StoreOFDPacket docnum=112433 [10:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 22 C2 04 01 A8 BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 70 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 69 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 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 75 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B7 01 00 35 04 06 00 E2 8E A4 05 0C A0 54 10 C2 5A F6 18 13 13 [10:26:09]CheckFolder [10:26:09]dirname=/storage/ofd_packets [10:26:09]CheckFolder done [10:26:09]ProducePacketName [10:26:09]name=ofd_packets/00112433 [10:26:09]NVStorageSaveData ofd_packets/00112433 [10:26:09]File name is /storage/ofd_packets/00112433 [10:26:09]Write 298 bytes [10:26:09]NVStorageSaveData done [10:26:09]OFDSenderStorePacket done [10:26:09]KKMCreateOFDPacket done [10:26:09]NVStorageSaveData kkm_last_timestamp [10:26:09]File name is /storage/kkm_last_timestamp [10:26:09]Write 4 bytes [10:26:09]NVStorageSaveData done [10:26:09]ExternCall_PrintAddStr [10:26:09]wPrintStart [10:26:09]Write to MH i2c: 01 00 00 C3 6E 31 [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: 01 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: 01 07 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: 01 07 00 C3 6E 00 00 00 00 00 FF 0F 46 [10:26:09]RasterBufferAndPrint [10:26:09]line Счет N : (1)321112 [10:26:09]line ИНН: 02508201610067 [10:26:09]line Контрольно-Кассовый Чек [10:26:09]line ПРОДАЖА [10:26:09]line ТРК (МРК, ГНК) : 22 [10:26:09]line Товар: 2710194210 [10:26:09]line ДТ-К-5 [10:26:09]line 28.810 * 72.90 [10:26:09]line = 2100.25 [10:26:09]line НДС 12% НСП 1% [10:26:09]line > о реализуемом товаре [10:26:09]line ОКРУГЛЕНИЕ: -0.25 [10:26:09]line ИТОГО: 2100.00 [10:26:09]line Внесено: 2100.00 [10:26:09]line СДАЧА: 0.00 [10:26:09]line НСП 1% : 18.59 [10:26:09]line НДС 12% : 223.03 [10:26:09]line Наличными: 2100.00 [10:26:09]line Безнал.: 0.00 [10:26:09]line Место: АЗС № 65 "Партнер Нефть" [10:26:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:26:09]line СНО: Общий режим [10:26:09]line Чек 34 23.06.2024 10:27 [10:26:09]line Смена: 392 ФФД: 1.0 [10:26:09]line ЗНМ: 0300000198 [10:26:09]line РНМ: 0000000000092771 [10:26:09]line Версия ККМ: 001 [10:26:09]line ФМ: 0000000000875083 [10:26:09]line ФД: 112433 [10:26:09]line ФПД: 249102265027744 [10:26:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102701&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112433&fm=249102265027744&tin=02508201610067®Number=0000000000092771&sum=210000 [10:26:09]OFD Sender: Processing packet 112433 [packets to send 38, broken 37] [10:26:09]ProducePacketName [10:26:09]name=ofd_packets/00112433 [10:26:09]OFD Sender: To server: pG, [10:26:09]CommunicateWithHost lk.salyk.kg:30040 [10:26:09]ConnectInit lk.salyk.kg [10:26:09]written 0, free lines is 4095 [10:26:09]Connected sock=10 [10:26:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 22 C2 04 01 A8 BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 70 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 69 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 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 75 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B7 01 00 35 04 06 00 E2 8E A4 05 0C A0 54 10 C2 5A F6 18 13 13 [10:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9C 7A 47 00 84 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B7 01 00 F4 03 04 00 65 8F 77 66 B6 04 01 00 00 C3 9F 1D 67 F4 C9 9A 5C [10:26:10]CommunicateWithHost err = 0 [10:26:10]CheckOFDResponse [10:26:10]1017 (14) - 77093643461234 [10:26:10]1041 (16) - 0000000000875083 [10:26:10]1040 (4) - 112433 [10:26:10]1012 (4) - 23.06.2024 02:58 [10:26:10]1206 (1) - 0 [10:26:10]OFD Sender: Remove packet 112433 [10:26:10]ProducePacketName [10:26:10]name=ofd_packets/00112433 [10:26:10]NVStorageDeleteData [10:26:10]Write to MH i2c: 01 00 00 EE 6E 5C [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: 01 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: 01 07 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: 01 07 00 EE 6E 00 00 00 00 00 E0 0C 4F [10:26:10]RasterBufferAndPrint [10:26:10]line [10:26:10]line [10:26:10]line [10:26:10]line [10:26:10]line [10:26:10]written 0, free lines is 3304 [10:26:10]MH_Cut [10:26:10]Write to MH i2c: D1 01 00 F5 6E 01 35 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: D1 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: D1 01 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: D1 01 00 F5 6E 00 34 [10:26:10]Write to MH i2c: 01 00 00 F6 6E 64 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]OFD Sender: No OFD packet to send [10:26:11]*** Cut start [10:26:11]*** Partial cut [10:26:11]*** CUTSNS_PIN = 1 [10:26:11]*** CUTSNS_PIN = 0 [10:26:11]*** Brake cut motor [10:26:11]Read from MH i2c: 01 [10:26:11]MH_I2C_Read... [10:26:11]*** Stop cut motor [10:26:11]*** Cut end [10:26:11]Read from MH i2c: 01 07 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: 01 07 00 F6 6E 00 00 00 00 00 FF 0F 79 [10:26:11]process_action close_receipt done [10:26:11]requested_data is exist [10:26:11]produce_requested_data [10:26:11]requested_item fm.sn is exist - process it [10:26:11]wFMCommunicate request_size=4 [10:26:11]MH_SAM_APDU [10:26:11]CAPDU: 80 11 00 00 [10:26:11]Write to MH i2c: E2 08 00 F7 6E 80 11 00 00 00 00 00 00 DF [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:11]Read from MH i2c: E2 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 17 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 17 00 F7 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [10:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:26:11]wFMCommunicate OK [10:26:11]requested_item fd.num is exist - process it [10:26:11]SAM_PROTO_GetFieldsCounters [10:26:11]wFMCommunicate request_size=4 [10:26:11]MH_SAM_APDU [10:26:11]CAPDU: 80 13 00 00 [10:26:11]Write to MH i2c: E2 08 00 F8 6E 80 13 00 00 00 00 00 00 E2 [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:11]Read from MH i2c: E2 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 62 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 62 00 F8 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 31 B7 01 00 0E 04 04 00 88 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 DB [10:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 31 B7 01 00 0E 04 04 00 88 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 [10:26:11]wFMCommunicate OK [10:26:11]SAM_PROTO_GetFieldsCounters done [10:26:11]requested_item shift.num is exist - process it [10:26:11]requested_item shift.opened is exist - process it [10:26:11]req_shift_opened [10:26:11]FM_GetShiftState [10:26:11]SAM_PROTO_GetShiftState [10:26:11]wFMCommunicate request_size=4 [10:26:11]MH_SAM_APDU [10:26:11]CAPDU: 80 13 01 00 [10:26:11]Write to MH i2c: E2 08 00 F9 6E 80 13 01 00 00 00 00 00 E4 [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:11]Read from MH i2c: E2 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 0E 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 0E 00 F9 6E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 02 [10:26:11]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:26:11]wFMCommunicate OK [10:26:11]SAM_PROTO_GetShiftState done [10:26:11]FM_GetShiftState done [10:26:11]req_shift_opened done [10:26:11]requested_item shift.open_date is exist - process it [10:26:11]req_shift_open_date [10:26:11]req_shift_open_date done [10:26:11]produce_requested_data done [10:26:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112433,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:26:11]process_action_free close_receipt [10:26:11]json_value_free [10:26:11]json_value_free done [10:26:11]process_json_proto returns [10:26:11]Send response to host [10:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112433,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:26:11]free response buf [10:26:11]execute_script done [10:26:11]execute_script returns [10:26:11]free content buf [10:26:11]Sock 7.Close socket [10:26:11]Sock 7.Thread stoped [10:26:15]OFD Sender: No OFD packet to send [10:26:20]accept exits with 9 [10:26:20]New connection [10:26:20]New thread 3066957156 created [10:26:20]Thread 3066813796 joined [10:26:20]Waiting for new connection... [10:26:20] Sock 9.Parse request [10:26:20]Sock 9.Check first char [10:26:20]Sock 9.First char is OK [10:26:20]request: POST /json_proto HTTP/1.0 [10:26:20]Method: POST [10:26:20]URL: /json_proto [10:26:20]Method is POST - this is cgi request [10:26:20]url: /json_proto [10:26:20]query_string will be loaded in cgi processing [10:26:20]execute_cgi json_proto POST (null) [10:26:20]execute_cgi path=json_proto method=POST [10:26:20]POST find Content-Length [10:26:20]Host: 172.17.59.68:8080 [10:26:20]Content-Length: 677 [10:26:20]Content-Type: application/json [10:26:20] [10:26:20]POST finish read [10:26:20]Found Content-Length = 677 [10:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:20]execute_script... [10:26: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)321113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:20]POST & json_proto [10:26:20]process_json_proto [10:26:20]json parsed OK: [10:26:20]protocol is kg_v1.0 [10:26:20]action value=close_receipt [10:26:20]process_action close_receipt [10:26:20]cmd_close_receipt [10:26:20]MH_GetDate [10:26:20]Write to MH i2c: F0 00 00 FA 6E 57 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 09 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 09 00 FA 6E 00 81 F8 77 66 BC EC 60 65 23 [10:26:20]GetLastDocTimeStamp 1719138421 [10:26:20]current date 1719138433 [10:26:20]FM_GetShiftState [10:26:20]SAM_PROTO_GetShiftState [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 01 00 [10:26:20]Write to MH i2c: E2 08 00 FB 6E 80 13 01 00 00 00 00 00 E6 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]OFD Sender: No OFD packet to send [10:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 FB 6E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 04 [10:26:20]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetShiftState done [10:26:20]FM_GetShiftState done [10:26:20]opened in 1719106490 [10:26:20]opened+sec_in_day 1719192890 [10:26:20]quantity*price = 50065 [10:26:20]sum+1 = 50067 [10:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 35 23.06.2024 10:27 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112434 ФПД: 201419844580676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102713&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112434&fm=201419844580676&tin=02508201610067®Number=0000000000092771&sum=50000 [10:26:21]StoreToDocumentArchive [10:26:21]shift 392 fd 112434 [10:26:21]save to /storage/0392/doc_00112434 [10:26:21]save last doc name /storage/0392/doc_00112434 to /storage/kkm_last_doc_name [10:26:21]save OK [10:26:21]Clear old archive folders... [10:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:21]tlvbuf is 011F1CB0 [10:26:21]SAM_PROTO_ClearQueue [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 09 00 00 [10:26:21]Write to MH i2c: E2 08 00 08 6F 80 09 00 00 00 00 00 00 E9 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 08 6F 00 90 00 EB [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_ClearQueue done [10:26:21]KKMCreateOFDPacket [10:26:21]OFDProtocolAddRootSTLVToBuf [10:26:21]FM_MakeSignedData [10:26:21]FM_MakeSignedData [10:26:21]SAM_PROTO_SignData [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 01 02 [10:26:21]Write to MH i2c: E2 08 00 09 6F 80 0D 01 02 00 00 00 00 F1 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 09 6F 00 90 00 EC [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]wFMCommunicate request_size=255 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 23 00 00 00 F4 03 04 00 81 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B7 01 00 35 04 06 00 B7 [10:26:21]Write to MH i2c: E2 02 01 0A 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 23 00 00 00 F4 03 04 00 81 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B7 01 00 35 04 06 00 B7 00 00 48 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 0A 6F 00 90 00 ED [10:26:22]RAPDU: 90 00 [10:26:22]wFMCommunicate OK [10:26:22]wFMCommunicate request_size=10 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 0D 02 02 05 30 B6 49 75 44 [10:26:22]Write to MH i2c: E2 0D 00 0B 6F 80 0D 02 02 05 00 30 B6 49 75 44 00 00 E6 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 0B 6F 00 90 00 EE [10:26:22]RAPDU: 90 00 [10:26:22]wFMCommunicate OK [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 0D 03 02 [10:26:22]Write to MH i2c: E2 08 00 0C 6F 80 0D 03 02 00 00 00 00 F6 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 0B 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 0B 00 0C 6F 00 5D 5D 69 95 9F 3E 6B 3E 90 00 35 [10:26:22]RAPDU: 5D 5D 69 95 9F 3E 6B 3E 90 00 [10:26:22]wFMCommunicate OK [10:26:22]SAM_PROTO_SignData done [10:26:22]FM_MakeSignedData done [10:26:22]CreateOFDProtocolMessage [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 11 00 00 [10:26:22]Write to MH i2c: E2 08 00 0D 6F 80 11 00 00 00 00 00 00 F6 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 17 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 17 00 0D 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 48 [10:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:26:22]wFMCommunicate OK [10:26:22]CreateOFDProtocolMessage done [10:26:22]OFDSenderStorePacket 112434 [10:26:22]StoreOFDPacket docnum=112434 [10:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E E1 07 01 5D 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 23 00 00 00 F4 03 04 00 81 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B7 01 00 35 04 06 00 B7 30 B6 49 75 44 5D 5D 69 95 9F 3E 6B 3E [10:26:22]CheckFolder [10:26:22]dirname=/storage/ofd_packets [10:26:22]CheckFolder done [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00112434 [10:26:22]NVStorageSaveData ofd_packets/00112434 [10:26:22]File name is /storage/ofd_packets/00112434 [10:26:22]Write 301 bytes [10:26:22]NVStorageSaveData done [10:26:22]OFDSenderStorePacket done [10:26:22]KKMCreateOFDPacket done [10:26:22]NVStorageSaveData kkm_last_timestamp [10:26:22]File name is /storage/kkm_last_timestamp [10:26:22]Write 4 bytes [10:26:22]NVStorageSaveData done [10:26:22]ExternCall_PrintAddStr [10:26:22]wPrintStart [10:26:22]Write to MH i2c: 01 00 00 0E 6F 7D [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 0E 6F 00 00 00 00 00 FF 0F 92 [10:26:22]RasterBufferAndPrint [10:26:22]line Счет N : (1)321113 [10:26:22]line ИНН: 02508201610067 [10:26:22]line Контрольно-Кассовый Чек [10:26:22]line ПРОДАЖА [10:26:22]line ТРК (МРК, ГНК) : 11 [10:26:22]line Товар: 2710124130 [10:26:22]line Аи-92-К-5 [10:26:22]line 7.540 * 66.40 [10:26:22]line = 500.66 [10:26:22]line НДС 12% НСП 1% [10:26:22]line > о реализуемом товаре [10:26:22]line ОКРУГЛЕНИЕ: -0.66 [10:26:22]line ИТОГО: 500.00 [10:26:22]line Внесено: 500.00 [10:26:22]line СДАЧА: 0.00 [10:26:22]line НСП 1% : 4.43 [10:26:22]line НДС 12% : 53.17 [10:26:22]line Наличными: 500.00 [10:26:22]line Безнал.: 0.00 [10:26:22]line Место: АЗС № 65 "Партнер Нефть" [10:26:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:26:22]line СНО: Общий режим [10:26:22]line Чек 35 23.06.2024 10:27 [10:26:22]line Смена: 392 ФФД: 1.0 [10:26:22]line ЗНМ: 0300000198 [10:26:22]line РНМ: 0000000000092771 [10:26:22]line Версия ККМ: 001 [10:26:22]line ФМ: 0000000000875083 [10:26:22]line ФД: 112434 [10:26:22]line ФПД: 201419844580676 [10:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102713&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112434&fm=201419844580676&tin=02508201610067®Number=0000000000092771&sum=50000 [10:26:22]written 0, free lines is 4095 [10:26:22]OFD Sender: Processing packet 112434 [packets to send 38, broken 37] [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00112434 [10:26:22]OFD Sender: To server: pG, [10:26:22]CommunicateWithHost lk.salyk.kg:30040 [10:26:22]ConnectInit lk.salyk.kg [10:26:22]Connected sock=10 [10:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E E1 07 01 5D 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 23 00 00 00 F4 03 04 00 81 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B7 01 00 35 04 06 00 B7 30 B6 49 75 44 5D 5D 69 95 9F 3E 6B 3E [10:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C5 16 47 00 BC 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B7 01 00 F4 03 04 00 71 8F 77 66 B6 04 01 00 00 1E E3 1C B9 AA F5 78 00 [10:26:22]CommunicateWithHost err = 0 [10:26:22]CheckOFDResponse [10:26:22]1017 (14) - 77093643461234 [10:26:22]1041 (16) - 0000000000875083 [10:26:22]1040 (4) - 112434 [10:26:22]1012 (4) - 23.06.2024 02:58 [10:26:22]1206 (1) - 0 [10:26:22]OFD Sender: Remove packet 112434 [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00112434 [10:26:22]NVStorageDeleteData [10:26:22]Write to MH i2c: 01 00 00 39 6F A8 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 39 6F 00 00 00 00 00 EB 0C A6 [10:26:22]RasterBufferAndPrint [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]written 0, free lines is 3316 [10:26:22]MH_Cut [10:26:22]Write to MH i2c: D1 01 00 40 6F 01 81 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 01 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 01 00 40 6F 00 80 [10:26:22]Write to MH i2c: 01 00 00 41 6F B0 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:23]OFD Sender: No OFD packet to send [10:26:23]*** Cut start [10:26:23]*** Partial cut [10:26:23]*** CUTSNS_PIN = 1 [10:26:23]*** CUTSNS_PIN = 0 [10:26:23]*** Brake cut motor [10:26:24]Read from MH i2c: 01 [10:26:24]MH_I2C_Read... [10:26:24]*** Stop cut motor [10:26:24]*** Cut end [10:26:24]Read from MH i2c: 01 07 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: 01 07 00 41 6F 00 00 00 00 00 FF 0F C5 [10:26:24]process_action close_receipt done [10:26:24]requested_data is exist [10:26:24]produce_requested_data [10:26:24]requested_item fm.sn is exist - process it [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 11 00 00 [10:26:24]Write to MH i2c: E2 08 00 42 6F 80 11 00 00 00 00 00 00 2B [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 17 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 17 00 42 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7D [10:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:26:24]wFMCommunicate OK [10:26:24]requested_item fd.num is exist - process it [10:26:24]SAM_PROTO_GetFieldsCounters [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 13 00 00 [10:26:24]Write to MH i2c: E2 08 00 43 6F 80 13 00 00 00 00 00 00 2E [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 62 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 62 00 43 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 32 B7 01 00 0E 04 04 00 88 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 2B [10:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 32 B7 01 00 0E 04 04 00 88 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 [10:26:24]wFMCommunicate OK [10:26:24]SAM_PROTO_GetFieldsCounters done [10:26:24]requested_item shift.num is exist - process it [10:26:24]requested_item shift.opened is exist - process it [10:26:24]req_shift_opened [10:26:24]FM_GetShiftState [10:26:24]SAM_PROTO_GetShiftState [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 13 01 00 [10:26:24]Write to MH i2c: E2 08 00 44 6F 80 13 01 00 00 00 00 00 30 [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 0E 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 0E 00 44 6F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4E [10:26:24]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:26:24]wFMCommunicate OK [10:26:24]SAM_PROTO_GetShiftState done [10:26:24]FM_GetShiftState done [10:26:24]req_shift_opened done [10:26:24]requested_item shift.open_date is exist - process it [10:26:24]req_shift_open_date [10:26:24]req_shift_open_date done [10:26:24]produce_requested_data done [10:26:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112434,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:26:24]process_action_free close_receipt [10:26:24]json_value_free [10:26:24]json_value_free done [10:26:24]process_json_proto returns [10:26:24]Send response to host [10:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112434,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:26:24]free response buf [10:26:24]execute_script done [10:26:24]execute_script returns [10:26:24]free content buf [10:26:24]Sock 9.Close socket [10:26:24]Sock 9.Thread stoped [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:16]accept exits with 7 [10:28:16]New connection [10:28:16]New thread 3066813796 created [10:28:16]Thread 3066957156 joined [10:28:16]Waiting for new connection... [10:28:16] Sock 7.Parse request [10:28:16]Sock 7.Check first char [10:28:16]Sock 7.First char is OK [10:28:16]request: POST /json_proto HTTP/1.0 [10:28:16]Method: POST [10:28:16]URL: /json_proto [10:28:16]Method is POST - this is cgi request [10:28:16]url: /json_proto [10:28:16]query_string will be loaded in cgi processing [10:28:16]execute_cgi json_proto POST (null) [10:28:16]execute_cgi path=json_proto method=POST [10:28:16]POST find Content-Length [10:28:16]Host: 172.17.59.68:8080 [10:28:16]Content-Length: 677 [10:28:16]Content-Type: application/json [10:28:16] [10:28:16]POST finish read [10:28:16]Found Content-Length = 677 [10:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:16]execute_script... [10: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)321114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:16]POST & json_proto [10:28:16]process_json_proto [10:28:16]json parsed OK: [10:28:16]protocol is kg_v1.0 [10:28:16]action value=close_receipt [10:28:16]process_action close_receipt [10:28:16]cmd_close_receipt [10:28:16]MH_GetDate [10:28:16]Write to MH i2c: F0 00 00 45 6F A3 [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: F0 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: F0 09 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: F0 09 00 45 6F 00 F6 F8 77 66 BC EC 60 65 E4 [10:28:16]GetLastDocTimeStamp 1719138433 [10:28:16]current date 1719138550 [10:28:16]FM_GetShiftState [10:28:16]SAM_PROTO_GetShiftState [10:28:16]wFMCommunicate request_size=4 [10:28:16]MH_SAM_APDU [10:28:16]CAPDU: 80 13 01 00 [10:28:16]Write to MH i2c: E2 08 00 46 6F 80 13 01 00 00 00 00 00 32 [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:16]Read from MH i2c: E2 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 0E 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 0E 00 46 6F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 50 [10:28:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:28:16]wFMCommunicate OK [10:28:16]SAM_PROTO_GetShiftState done [10:28:16]FM_GetShiftState done [10:28:16]opened in 1719106490 [10:28:16]opened+sec_in_day 1719192890 [10:28:16]quantity*price = 40039 [10:28:16]sum+1 = 40040 [10:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 36 23.06.2024 10:29 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112435 ФПД: 67828415822094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102910&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112435&fm=67828415822094&tin=02508201610067®Number=0000000000092771&sum=40000 [10:28:17]StoreToDocumentArchive [10:28:17]shift 392 fd 112435 [10:28:17]save to /storage/0392/doc_00112435 [10:28:17]save last doc name /storage/0392/doc_00112435 to /storage/kkm_last_doc_name [10:28:17]save OK [10:28:17]Clear old archive folders... [10:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:17]tlvbuf is 011EBE20 [10:28:17]SAM_PROTO_ClearQueue [10:28:17]wFMCommunicate request_size=4 [10:28:17]MH_SAM_APDU [10:28:17]CAPDU: 80 09 00 00 [10:28:17]Write to MH i2c: E2 08 00 53 6F 80 09 00 00 00 00 00 00 34 [10:28:17]Write i2c OK [10:28:17]MH_I2C_Read... [10:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:17]Read from MH i2c: E2 [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: E2 03 00 [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: E2 03 00 53 6F 00 90 00 36 [10:28:17]RAPDU: 90 00 [10:28:17]wFMCommunicate OK [10:28:17]SAM_PROTO_ClearQueue done [10:28:17]KKMCreateOFDPacket [10:28:17]OFDProtocolAddRootSTLVToBuf [10:28:17]FM_MakeSignedData [10:28:17]FM_MakeSignedData [10:28:17]SAM_PROTO_SignData [10:28:17]wFMCommunicate request_size=4 [10:28:17]MH_SAM_APDU [10:28:17]CAPDU: 80 0D 01 02 [10:28:17]Write to MH i2c: E2 08 00 54 6F 80 0D 01 02 00 00 00 00 3C [10:28:17]Write i2c OK [10:28:17]MH_I2C_Read... [10:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:17]Read from MH i2c: E2 [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: E2 03 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 03 00 54 6F 00 90 00 37 [10:28:18]RAPDU: 90 00 [10:28:18]wFMCommunicate OK [10:28:18]wFMCommunicate request_size=255 [10:28:18]MH_SAM_APDU [10:28: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 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 24 00 00 00 F4 03 04 00 F6 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B7 01 00 35 04 06 00 3D [10:28:18]Write to MH i2c: E2 02 01 55 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 24 00 00 00 F4 03 04 00 F6 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B7 01 00 35 04 06 00 3D 00 00 5E [10:28:18]Write i2c OK [10:28:18]MH_I2C_Read... [10:28:18]OFD Sender: No OFD packet to send [10:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:18]Read from MH i2c: E2 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 03 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 03 00 55 6F 00 90 00 38 [10:28:18]RAPDU: 90 00 [10:28:18]wFMCommunicate OK [10:28:18]wFMCommunicate request_size=10 [10:28:18]MH_SAM_APDU [10:28:18]CAPDU: 80 0D 02 02 05 B0 88 A1 79 0E [10:28:18]Write to MH i2c: E2 0D 00 56 6F 80 0D 02 02 05 00 B0 88 A1 79 0E 00 00 A9 [10:28:18]Write i2c OK [10:28:18]MH_I2C_Read... [10:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:18]Read from MH i2c: E2 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 03 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 03 00 56 6F 00 90 00 39 [10:28:18]RAPDU: 90 00 [10:28:18]wFMCommunicate OK [10:28:18]wFMCommunicate request_size=4 [10:28:18]MH_SAM_APDU [10:28:18]CAPDU: 80 0D 03 02 [10:28:18]Write to MH i2c: E2 08 00 57 6F 80 0D 03 02 00 00 00 00 41 [10:28:18]Write i2c OK [10:28:18]MH_I2C_Read... [10:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:18]Read from MH i2c: E2 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 0B 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 0B 00 57 6F 00 3A 53 40 4C D0 93 A1 B0 90 00 0F [10:28:18]RAPDU: 3A 53 40 4C D0 93 A1 B0 90 00 [10:28:18]wFMCommunicate OK [10:28:18]SAM_PROTO_SignData done [10:28:18]FM_MakeSignedData done [10:28:18]CreateOFDProtocolMessage [10:28:18]wFMCommunicate request_size=4 [10:28:18]MH_SAM_APDU [10:28:18]CAPDU: 80 11 00 00 [10:28:18]Write to MH i2c: E2 08 00 58 6F 80 11 00 00 00 00 00 00 41 [10:28:18]Write i2c OK [10:28:18]MH_I2C_Read... [10:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:18]Read from MH i2c: E2 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 17 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 17 00 58 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 93 [10:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:28:18]wFMCommunicate OK [10:28:18]CreateOFDProtocolMessage done [10:28:18]OFDSenderStorePacket 112435 [10:28:18]StoreOFDPacket docnum=112435 [10:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 E1 07 01 53 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 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 24 00 00 00 F4 03 04 00 F6 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B7 01 00 35 04 06 00 3D B0 88 A1 79 0E 3A 53 40 4C D0 93 A1 B0 [10:28:18]CheckFolder [10:28:18]dirname=/storage/ofd_packets [10:28:18]CheckFolder done [10:28:18]ProducePacketName [10:28:18]name=ofd_packets/00112435 [10:28:18]NVStorageSaveData ofd_packets/00112435 [10:28:18]File name is /storage/ofd_packets/00112435 [10:28:18]Write 301 bytes [10:28:18]NVStorageSaveData done [10:28:18]OFDSenderStorePacket done [10:28:18]KKMCreateOFDPacket done [10:28:18]NVStorageSaveData kkm_last_timestamp [10:28:18]File name is /storage/kkm_last_timestamp [10:28:18]Write 4 bytes [10:28:18]NVStorageSaveData done [10:28:18]ExternCall_PrintAddStr [10:28:18]wPrintStart [10:28:18]Write to MH i2c: 01 00 00 59 6F C8 [10:28:18]Write i2c OK [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: 01 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: 01 07 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: 01 07 00 59 6F 00 00 00 00 00 FF 0F DD [10:28:18]RasterBufferAndPrint [10:28:18]line Счет N : (1)321114 [10:28:18]line ИНН: 02508201610067 [10:28:18]line Контрольно-Кассовый Чек [10:28:18]line ПРОДАЖА [10:28:18]line ТРК (МРК, ГНК) : 11 [10:28:18]line Товар: 2710124130 [10:28:18]line Аи-92-К-5 [10:28:18]line 6.030 * 66.40 [10:28:18]line = 400.39 [10:28:18]line НДС 12% НСП 1% [10:28:18]line > о реализуемом товаре [10:28:18]line ОКРУГЛЕНИЕ: -0.39 [10:28:18]line ИТОГО: 400.00 [10:28:18]line Внесено: 400.00 [10:28:18]line СДАЧА: 0.00 [10:28:18]line НСП 1% : 3.54 [10:28:18]line НДС 12% : 42.52 [10:28:18]line Наличными: 400.00 [10:28:18]line Безнал.: 0.00 [10:28:18]line Место: АЗС № 65 "Партнер Нефть" [10:28:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:28:18]line СНО: Общий режим [10:28:18]line Чек 36 23.06.2024 10:29 [10:28:18]line Смена: 392 ФФД: 1.0 [10:28:18]line ЗНМ: 0300000198 [10:28:18]line РНМ: 0000000000092771 [10:28:18]line Версия ККМ: 001 [10:28:18]line ФМ: 0000000000875083 [10:28:18]line ФД: 112435 [10:28:18]line ФПД: 67828415822094 [10:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T102910&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112435&fm=67828415822094&tin=02508201610067®Number=0000000000092771&sum=40000 [10:28:18]OFD Sender: Processing packet 112435 [packets to send 38, broken 37] [10:28:18]ProducePacketName [10:28:18]name=ofd_packets/00112435 [10:28:18]OFD Sender: To server: pG, [10:28:18]CommunicateWithHost lk.salyk.kg:30040 [10:28:18]ConnectInit lk.salyk.kg [10:28:18]written 0, free lines is 4095 [10:28:18]Connected sock=10 [10:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 E1 07 01 53 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 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 24 00 00 00 F4 03 04 00 F6 F8 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B7 01 00 35 04 06 00 3D B0 88 A1 79 0E 3A 53 40 4C D0 93 A1 B0 [10:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B5 EB 47 00 62 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B7 01 00 F4 03 04 00 E6 8F 77 66 B6 04 01 00 00 BC 85 C6 B4 32 51 13 89 [10:28:19]CommunicateWithHost err = 0 [10:28:19]CheckOFDResponse [10:28:19]1017 (14) - 77093643461234 [10:28:19]1041 (16) - 0000000000875083 [10:28:19]1040 (4) - 112435 [10:28:19]1012 (4) - 23.06.2024 03:00 [10:28:19]1206 (1) - 0 [10:28:19]OFD Sender: Remove packet 112435 [10:28:19]ProducePacketName [10:28:19]name=ofd_packets/00112435 [10:28:19]NVStorageDeleteData [10:28:19]Write to MH i2c: 01 00 00 84 6F F3 [10:28:19]Write i2c OK [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: 01 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: 01 07 00 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: 01 07 00 84 6F 00 00 00 00 00 E4 0C EA [10:28:19]RasterBufferAndPrint [10:28:19]line [10:28:19]line [10:28:19]line [10:28:19]line [10:28:19]line [10:28:19]written 0, free lines is 3309 [10:28:19]MH_Cut [10:28:19]Write to MH i2c: D1 01 00 8B 6F 01 CC [10:28:19]Write i2c OK [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: D1 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: D1 01 00 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: D1 01 00 8B 6F 00 CB [10:28:19]Write to MH i2c: 01 00 00 8C 6F FB [10:28:19]Write i2c OK [10:28:19]MH_I2C_Read... [10:28:19]OFD Sender: No OFD packet to send [10:28:20]*** Cut start [10:28:20]*** Partial cut [10:28:20]*** CUTSNS_PIN = 1 [10:28:20]*** CUTSNS_PIN = 0 [10:28:20]*** Brake cut motor [10:28:20]Read from MH i2c: 01 [10:28:20]MH_I2C_Read... [10:28:20]*** Stop cut motor [10:28:20]*** Cut end [10:28:20]Read from MH i2c: 01 07 00 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: 01 07 00 8C 6F 00 00 00 00 00 FF 0F 10 [10:28:20]process_action close_receipt done [10:28:20]requested_data is exist [10:28:20]produce_requested_data [10:28:20]requested_item fm.sn is exist - process it [10:28:20]wFMCommunicate request_size=4 [10:28:20]MH_SAM_APDU [10:28:20]CAPDU: 80 11 00 00 [10:28:20]Write to MH i2c: E2 08 00 8D 6F 80 11 00 00 00 00 00 00 76 [10:28:20]Write i2c OK [10:28:20]MH_I2C_Read... [10:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:20]Read from MH i2c: E2 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 17 00 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 17 00 8D 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [10:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:28:20]wFMCommunicate OK [10:28:20]requested_item fd.num is exist - process it [10:28:20]SAM_PROTO_GetFieldsCounters [10:28:20]wFMCommunicate request_size=4 [10:28:20]MH_SAM_APDU [10:28:20]CAPDU: 80 13 00 00 [10:28:20]Write to MH i2c: E2 08 00 8E 6F 80 13 00 00 00 00 00 00 79 [10:28:20]Write i2c OK [10:28:20]MH_I2C_Read... [10:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:20]Read from MH i2c: E2 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 62 00 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 62 00 8E 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 33 B7 01 00 0E 04 04 00 88 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 7A [10:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 33 B7 01 00 0E 04 04 00 88 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 [10:28:20]wFMCommunicate OK [10:28:20]SAM_PROTO_GetFieldsCounters done [10:28:20]requested_item shift.num is exist - process it [10:28:20]requested_item shift.opened is exist - process it [10:28:20]req_shift_opened [10:28:20]FM_GetShiftState [10:28:20]SAM_PROTO_GetShiftState [10:28:20]wFMCommunicate request_size=4 [10:28:20]MH_SAM_APDU [10:28:20]CAPDU: 80 13 01 00 [10:28:20]Write to MH i2c: E2 08 00 8F 6F 80 13 01 00 00 00 00 00 7B [10:28:20]Write i2c OK [10:28:20]MH_I2C_Read... [10:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:20]Read from MH i2c: E2 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 0E 00 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 0E 00 8F 6F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 99 [10:28:20]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:28:20]wFMCommunicate OK [10:28:20]SAM_PROTO_GetShiftState done [10:28:20]FM_GetShiftState done [10:28:20]req_shift_opened done [10:28:20]requested_item shift.open_date is exist - process it [10:28:20]req_shift_open_date [10:28:20]req_shift_open_date done [10:28:20]produce_requested_data done [10:28:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112435,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:28:20]process_action_free close_receipt [10:28:20]json_value_free [10:28:20]json_value_free done [10:28:20]process_json_proto returns [10:28:20]Send response to host [10:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112435,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:28:20]free response buf [10:28:20]execute_script done [10:28:20]execute_script returns [10:28:20]free content buf [10:28:20]Sock 7.Close socket [10:28:20]Sock 7.Thread stoped [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:28]accept exits with 9 [10:29:28]New connection [10:29:28]New thread 3066957156 created [10:29:28]Thread 3066813796 joined [10:29:28]Waiting for new connection... [10:29:28] Sock 9.Parse request [10:29:28]Sock 9.Check first char [10:29:28]Sock 9.First char is OK [10:29:28]request: POST /json_proto HTTP/1.0 [10:29:28]Method: POST [10:29:28]URL: /json_proto [10:29:28]Method is POST - this is cgi request [10:29:28]url: /json_proto [10:29:28]query_string will be loaded in cgi processing [10:29:28]execute_cgi json_proto POST (null) [10:29:28]execute_cgi path=json_proto method=POST [10:29:28]POST find Content-Length [10:29:28]Host: 172.17.59.68:8080 [10:29:28]Content-Length: 677 [10:29:28]Content-Type: application/json [10:29:28] [10:29:28]POST finish read [10:29:28]Found Content-Length = 677 [10:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [10:29:28]execute_script... [10:29: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)321116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [10:29:28]POST & json_proto [10:29:28]process_json_proto [10:29:28]json parsed OK: [10:29:28]protocol is kg_v1.0 [10:29:28]action value=close_receipt [10:29:28]process_action close_receipt [10:29:28]cmd_close_receipt [10:29:28]MH_GetDate [10:29:28]Write to MH i2c: F0 00 00 90 6F EE [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: F0 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: F0 09 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: F0 09 00 90 6F 00 3D F9 77 66 BC EC 60 65 77 [10:29:28]GetLastDocTimeStamp 1719138550 [10:29:28]current date 1719138621 [10:29:28]FM_GetShiftState [10:29:28]SAM_PROTO_GetShiftState [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 13 01 00 [10:29:28]Write to MH i2c: E2 08 00 91 6F 80 13 01 00 00 00 00 00 7D [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 91 6F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 9B [10:29:28]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_GetShiftState done [10:29:28]FM_GetShiftState done [10:29:28]opened in 1719106490 [10:29:28]opened+sec_in_day 1719192890 [10:29:28]quantity*price = 25032 [10:29:28]sum+1 = 25034 [10:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 37 23.06.2024 10:30 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112436 ФПД: 231002354892656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T103021&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112436&fm=231002354892656&tin=02508201610067®Number=0000000000092771&sum=25000 [10:29:29]StoreToDocumentArchive [10:29:29]shift 392 fd 112436 [10:29:29]save to /storage/0392/doc_00112436 [10:29:29]save last doc name /storage/0392/doc_00112436 to /storage/kkm_last_doc_name [10:29:29]save OK [10:29:29]Clear old archive folders... [10:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:29]tlvbuf is 012019A0 [10:29:29]SAM_PROTO_ClearQueue [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 09 00 00 [10:29:29]Write to MH i2c: E2 08 00 9E 6F 80 09 00 00 00 00 00 00 7F [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 9E 6F 00 90 00 81 [10:29:29]RAPDU: 90 00 [10:29:29]wFMCommunicate OK [10:29:29]SAM_PROTO_ClearQueue done [10:29:29]KKMCreateOFDPacket [10:29:29]OFDProtocolAddRootSTLVToBuf [10:29:29]FM_MakeSignedData [10:29:29]FM_MakeSignedData [10:29:29]SAM_PROTO_SignData [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 0D 01 02 [10:29:29]Write to MH i2c: E2 08 00 9F 6F 80 0D 01 02 00 00 00 00 87 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 9F 6F 00 90 00 82 [10:29:29]RAPDU: 90 00 [10:29:29]wFMCommunicate OK [10:29:29]wFMCommunicate request_size=255 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 25 00 00 00 F4 03 04 00 3D F9 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B7 01 00 35 04 06 00 D2 [10:29:29]Write to MH i2c: E2 02 01 A0 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 25 00 00 00 F4 03 04 00 3D F9 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B7 01 00 35 04 06 00 D2 00 00 66 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]OFD Sender: No OFD packet to send [10:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 A0 6F 00 90 00 83 [10:29:29]RAPDU: 90 00 [10:29:29]wFMCommunicate OK [10:29:29]wFMCommunicate request_size=10 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 0D 02 02 05 18 6D 4E 3F 70 [10:29:29]Write to MH i2c: E2 0D 00 A1 6F 80 0D 02 02 05 00 18 6D 4E 3F 70 00 00 16 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 A1 6F 00 90 00 84 [10:29:29]RAPDU: 90 00 [10:29:29]wFMCommunicate OK [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 0D 03 02 [10:29:29]Write to MH i2c: E2 08 00 A2 6F 80 0D 03 02 00 00 00 00 8C [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 0B 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 0B 00 A2 6F 00 28 66 E3 E1 6F 12 B1 4C 90 00 5D [10:29:29]RAPDU: 28 66 E3 E1 6F 12 B1 4C 90 00 [10:29:29]wFMCommunicate OK [10:29:29]SAM_PROTO_SignData done [10:29:29]FM_MakeSignedData done [10:29:29]CreateOFDProtocolMessage [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 11 00 00 [10:29:29]Write to MH i2c: E2 08 00 A3 6F 80 11 00 00 00 00 00 00 8C [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:30]Read from MH i2c: E2 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 17 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 17 00 A3 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [10:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:29:30]wFMCommunicate OK [10:29:30]CreateOFDProtocolMessage done [10:29:30]OFDSenderStorePacket 112436 [10:29:30]StoreOFDPacket docnum=112436 [10:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 84 07 01 9B A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 25 00 00 00 F4 03 04 00 3D F9 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B7 01 00 35 04 06 00 D2 18 6D 4E 3F 70 28 66 E3 E1 6F 12 B1 4C [10:29:30]CheckFolder [10:29:30]dirname=/storage/ofd_packets [10:29:30]CheckFolder done [10:29:30]ProducePacketName [10:29:30]name=ofd_packets/00112436 [10:29:30]NVStorageSaveData ofd_packets/00112436 [10:29:30]File name is /storage/ofd_packets/00112436 [10:29:30]Write 301 bytes [10:29:30]NVStorageSaveData done [10:29:30]OFDSenderStorePacket done [10:29:30]KKMCreateOFDPacket done [10:29:30]NVStorageSaveData kkm_last_timestamp [10:29:30]File name is /storage/kkm_last_timestamp [10:29:30]Write 4 bytes [10:29:30]NVStorageSaveData done [10:29:30]ExternCall_PrintAddStr [10:29:30]wPrintStart [10:29:30]Write to MH i2c: 01 00 00 A4 6F 13 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 A4 6F 00 00 00 00 00 FF 0F 28 [10:29:30]RasterBufferAndPrint [10:29:30]line Счет N : (1)321116 [10:29:30]line ИНН: 02508201610067 [10:29:30]line Контрольно-Кассовый Чек [10:29:30]line ПРОДАЖА [10:29:30]line ТРК (МРК, ГНК) : 11 [10:29:30]line Товар: 2710124130 [10:29:30]line Аи-92-К-5 [10:29:30]line 3.770 * 66.40 [10:29:30]line = 250.33 [10:29:30]line НДС 12% НСП 1% [10:29:30]line > о реализуемом товаре [10:29:30]line ОКРУГЛЕНИЕ: -0.33 [10:29:30]line ИТОГО: 250.00 [10:29:30]line Внесено: 250.00 [10:29:30]line СДАЧА: 0.00 [10:29:30]line НСП 1% : 2.21 [10:29:30]line НДС 12% : 26.58 [10:29:30]line Наличными: 250.00 [10:29:30]line Безнал.: 0.00 [10:29:30]line Место: АЗС № 65 "Партнер Нефть" [10:29:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:29:30]line СНО: Общий режим [10:29:30]line Чек 37 23.06.2024 10:30 [10:29:30]line Смена: 392 ФФД: 1.0 [10:29:30]line ЗНМ: 0300000198 [10:29:30]line РНМ: 0000000000092771 [10:29:30]line Версия ККМ: 001 [10:29:30]line ФМ: 0000000000875083 [10:29:30]line ФД: 112436 [10:29:30]line ФПД: 231002354892656 [10:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T103021&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112436&fm=231002354892656&tin=02508201610067®Number=0000000000092771&sum=25000 [10:29:30]OFD Sender: Processing packet 112436 [packets to send 38, broken 37] [10:29:30]ProducePacketName [10:29:30]name=ofd_packets/00112436 [10:29:30]OFD Sender: To server: pG, [10:29:30]CommunicateWithHost lk.salyk.kg:30040 [10:29:30]ConnectInit lk.salyk.kg [10:29:30]written 0, free lines is 4095 [10:29:30]Connected sock=10 [10:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 84 07 01 9B A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 25 00 00 00 F4 03 04 00 3D F9 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B7 01 00 35 04 06 00 D2 18 6D 4E 3F 70 28 66 E3 E1 6F 12 B1 4C [10:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1A 71 47 00 66 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B7 01 00 F4 03 04 00 2D 90 77 66 B6 04 01 00 00 A3 7A E8 0A A8 48 8E C5 [10:29:30]CommunicateWithHost err = 0 [10:29:30]CheckOFDResponse [10:29:30]1017 (14) - 77093643461234 [10:29:30]1041 (16) - 0000000000875083 [10:29:30]1040 (4) - 112436 [10:29:30]1012 (4) - 23.06.2024 03:02 [10:29:30]1206 (1) - 0 [10:29:30]OFD Sender: Remove packet 112436 [10:29:30]ProducePacketName [10:29:30]name=ofd_packets/00112436 [10:29:30]NVStorageDeleteData [10:29:30]Write to MH i2c: 01 00 00 CF 6F 3E [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 CF 6F 00 00 00 00 00 EB 0C 3C [10:29:30]RasterBufferAndPrint [10:29:30]line [10:29:30]line [10:29:30]line [10:29:30]line [10:29:30]line [10:29:30]written 0, free lines is 3316 [10:29:30]MH_Cut [10:29:30]Write to MH i2c: D1 01 00 D6 6F 01 17 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: D1 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: D1 01 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: D1 01 00 D6 6F 00 16 [10:29:30]Write to MH i2c: 01 00 00 D7 6F 46 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:31]OFD Sender: No OFD packet to send [10:29:31]*** Cut start [10:29:31]*** Partial cut [10:29:31]*** CUTSNS_PIN = 1 [10:29:31]*** CUTSNS_PIN = 0 [10:29:31]*** Brake cut motor [10:29:32]Read from MH i2c: 01 [10:29:32]MH_I2C_Read... [10:29:32]*** Stop cut motor [10:29:32]*** Cut end [10:29:32]Read from MH i2c: 01 07 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: 01 07 00 D7 6F 00 00 00 00 00 FF 0F 5B [10:29:32]process_action close_receipt done [10:29:32]requested_data is exist [10:29:32]produce_requested_data [10:29:32]requested_item fm.sn is exist - process it [10:29:32]wFMCommunicate request_size=4 [10:29:32]MH_SAM_APDU [10:29:32]CAPDU: 80 11 00 00 [10:29:32]Write to MH i2c: E2 08 00 D8 6F 80 11 00 00 00 00 00 00 C1 [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:32]Read from MH i2c: E2 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 17 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 17 00 D8 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 13 [10:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:29:32]wFMCommunicate OK [10:29:32]requested_item fd.num is exist - process it [10:29:32]SAM_PROTO_GetFieldsCounters [10:29:32]wFMCommunicate request_size=4 [10:29:32]MH_SAM_APDU [10:29:32]CAPDU: 80 13 00 00 [10:29:32]Write to MH i2c: E2 08 00 D9 6F 80 13 00 00 00 00 00 00 C4 [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:32]Read from MH i2c: E2 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 62 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 62 00 D9 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B7 01 00 0E 04 04 00 88 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 C9 [10:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B7 01 00 0E 04 04 00 88 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 [10:29:32]wFMCommunicate OK [10:29:32]SAM_PROTO_GetFieldsCounters done [10:29:32]requested_item shift.num is exist - process it [10:29:32]requested_item shift.opened is exist - process it [10:29:32]req_shift_opened [10:29:32]FM_GetShiftState [10:29:32]SAM_PROTO_GetShiftState [10:29:32]wFMCommunicate request_size=4 [10:29:32]MH_SAM_APDU [10:29:32]CAPDU: 80 13 01 00 [10:29:32]Write to MH i2c: E2 08 00 DA 6F 80 13 01 00 00 00 00 00 C6 [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:32]Read from MH i2c: E2 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 0E 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 0E 00 DA 6F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E4 [10:29:32]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:29:32]wFMCommunicate OK [10:29:32]SAM_PROTO_GetShiftState done [10:29:32]FM_GetShiftState done [10:29:32]req_shift_opened done [10:29:32]requested_item shift.open_date is exist - process it [10:29:32]req_shift_open_date [10:29:32]req_shift_open_date done [10:29:32]produce_requested_data done [10:29:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112436,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:29:32]process_action_free close_receipt [10:29:32]json_value_free [10:29:32]json_value_free done [10:29:32]process_json_proto returns [10:29:32]Send response to host [10:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112436,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:29:32]free response buf [10:29:32]execute_script done [10:29:32]execute_script returns [10:29:32]free content buf [10:29:32]Sock 9.Close socket [10:29:32]Sock 9.Thread stoped [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:33]accept exits with 7 [10:30:33]New connection [10:30:33]New thread 3066813796 created [10:30:33]Thread 3066957156 joined [10:30:33]Waiting for new connection... [10:30:33] Sock 7.Parse request [10:30:33]Sock 7.Check first char [10:30:33]Sock 7.First char is OK [10:30:33]request: POST /json_proto HTTP/1.0 [10:30:33]Method: POST [10:30:33]URL: /json_proto [10:30:33]Method is POST - this is cgi request [10:30:33]url: /json_proto [10:30:33]query_string will be loaded in cgi processing [10:30:33]execute_cgi json_proto POST (null) [10:30:33]execute_cgi path=json_proto method=POST [10:30:33]POST find Content-Length [10:30:33]Host: 172.17.59.68:8080 [10:30:33]Content-Length: 679 [10:30:33]Content-Type: application/json [10:30:33] [10:30:33]POST finish read [10:30:33]Found Content-Length = 679 [10:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [10:30:33]execute_script... [10:30:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [10:30:33]POST & json_proto [10:30:33]process_json_proto [10:30:33]json parsed OK: [10:30:33]protocol is kg_v1.0 [10:30:33]action value=close_receipt [10:30:33]process_action close_receipt [10:30:33]cmd_close_receipt [10:30:33]MH_GetDate [10:30:33]Write to MH i2c: F0 00 00 DB 6F 39 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: F0 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: F0 09 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: F0 09 00 DB 6F 00 7F F9 77 66 BC EC 60 65 04 [10:30:33]GetLastDocTimeStamp 1719138621 [10:30:33]current date 1719138687 [10:30:33]FM_GetShiftState [10:30:33]SAM_PROTO_GetShiftState [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 13 01 00 [10:30:33]Write to MH i2c: E2 08 00 DC 6F 80 13 01 00 00 00 00 00 C8 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 0E 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 0E 00 DC 6F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E6 [10:30:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:30:33]wFMCommunicate OK [10:30:33]SAM_PROTO_GetShiftState done [10:30:33]FM_GetShiftState done [10:30:33]opened in 1719106490 [10:30:33]opened+sec_in_day 1719192890 [10:30:33]quantity*price = 300056 [10:30:33]sum+1 = 300057 [10:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 38 23.06.2024 10:31 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112437 ФПД: 37816755606257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T103127&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112437&fm=37816755606257&tin=02508201610067®Number=0000000000092771&sum=300000 [10:30:34]StoreToDocumentArchive [10:30:34]shift 392 fd 112437 [10:30:34]save to /storage/0392/doc_00112437 [10:30:34]save last doc name /storage/0392/doc_00112437 to /storage/kkm_last_doc_name [10:30:34]save OK [10:30:34]Clear old archive folders... [10:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:30:34]tlvbuf is 012BABB0 [10:30:34]SAM_PROTO_ClearQueue [10:30:34]wFMCommunicate request_size=4 [10:30:34]MH_SAM_APDU [10:30:34]CAPDU: 80 09 00 00 [10:30:34]Write to MH i2c: E2 08 00 E9 6F 80 09 00 00 00 00 00 00 CA [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 [10:30:34]MH_I2C_Read... [10:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:34]Read from MH i2c: E2 03 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 03 00 E9 6F 00 90 00 CC [10:30:34]RAPDU: 90 00 [10:30:34]wFMCommunicate OK [10:30:34]SAM_PROTO_ClearQueue done [10:30:34]KKMCreateOFDPacket [10:30:34]OFDProtocolAddRootSTLVToBuf [10:30:34]FM_MakeSignedData [10:30:34]FM_MakeSignedData [10:30:34]SAM_PROTO_SignData [10:30:34]wFMCommunicate request_size=4 [10:30:34]MH_SAM_APDU [10:30:34]CAPDU: 80 0D 01 02 [10:30:34]Write to MH i2c: E2 08 00 EA 6F 80 0D 01 02 00 00 00 00 D2 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:34]Read from MH i2c: E2 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 03 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 03 00 EA 6F 00 90 00 CD [10:30:34]RAPDU: 90 00 [10:30:34]wFMCommunicate OK [10:30:34]wFMCommunicate request_size=255 [10:30:34]MH_SAM_APDU [10:30:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 26 00 00 00 F4 03 04 00 7F F9 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B7 01 00 35 04 06 00 22 64 E6 48 [10:30:34]Write to MH i2c: E2 02 01 EB 6F 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 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 26 00 00 00 F4 03 04 00 7F F9 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B7 01 00 35 04 06 00 22 64 E6 48 00 00 CD [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:35]Read from MH i2c: E2 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 03 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 03 00 EB 6F 00 90 00 CE [10:30:35]RAPDU: 90 00 [10:30:35]wFMCommunicate OK [10:30:35]wFMCommunicate request_size=7 [10:30:35]MH_SAM_APDU [10:30:35]CAPDU: 80 0D 02 02 02 D2 F1 [10:30:35]Write to MH i2c: E2 0A 00 EC 6F 80 0D 02 02 02 00 D2 F1 00 00 9C [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:35]Read from MH i2c: E2 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 03 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 03 00 EC 6F 00 90 00 CF [10:30:35]RAPDU: 90 00 [10:30:35]wFMCommunicate OK [10:30:35]wFMCommunicate request_size=4 [10:30:35]MH_SAM_APDU [10:30:35]CAPDU: 80 0D 03 02 [10:30:35]Write to MH i2c: E2 08 00 ED 6F 80 0D 03 02 00 00 00 00 D7 [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:35]Read from MH i2c: E2 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 0B 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 0B 00 ED 6F 00 D9 86 0E 55 23 B4 E1 04 90 00 56 [10:30:35]RAPDU: D9 86 0E 55 23 B4 E1 04 90 00 [10:30:35]wFMCommunicate OK [10:30:35]SAM_PROTO_SignData done [10:30:35]FM_MakeSignedData done [10:30:35]CreateOFDProtocolMessage [10:30:35]wFMCommunicate request_size=4 [10:30:35]MH_SAM_APDU [10:30:35]CAPDU: 80 11 00 00 [10:30:35]Write to MH i2c: E2 08 00 EE 6F 80 11 00 00 00 00 00 00 D7 [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:35]Read from MH i2c: E2 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 17 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 17 00 EE 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [10:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:30:35]wFMCommunicate OK [10:30:35]CreateOFDProtocolMessage done [10:30:35]OFDSenderStorePacket 112437 [10:30:35]StoreOFDPacket docnum=112437 [10:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 83 1E 04 01 1F 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 26 00 00 00 F4 03 04 00 7F F9 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B7 01 00 35 04 06 00 22 64 E6 48 D2 F1 D9 86 0E 55 23 B4 E1 04 [10:30:35]CheckFolder [10:30:35]dirname=/storage/ofd_packets [10:30:35]CheckFolder done [10:30:35]ProducePacketName [10:30:35]name=ofd_packets/00112437 [10:30:35]NVStorageSaveData ofd_packets/00112437 [10:30:35]File name is /storage/ofd_packets/00112437 [10:30:35]Write 298 bytes [10:30:35]NVStorageSaveData done [10:30:35]OFDSenderStorePacket done [10:30:35]KKMCreateOFDPacket done [10:30:35]NVStorageSaveData kkm_last_timestamp [10:30:35]File name is /storage/kkm_last_timestamp [10:30:35]Write 4 bytes [10:30:35]NVStorageSaveData done [10:30:35]ExternCall_PrintAddStr [10:30:35]wPrintStart [10:30:35]Write to MH i2c: 01 00 00 EF 6F 5E [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: 01 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: 01 07 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: 01 07 00 EF 6F 00 00 00 00 00 FF 0F 73 [10:30:35]RasterBufferAndPrint [10:30:35]line Счет N : (1)321115 [10:30:35]line ИНН: 02508201610067 [10:30:35]line Контрольно-Кассовый Чек [10:30:35]line ПРОДАЖА [10:30:35]line ТРК (МРК, ГНК) : 22 [10:30:35]line Товар: 2710194210 [10:30:35]line ДТ-К-5 [10:30:35]line 41.160 * 72.90 [10:30:35]line = 3000.56 [10:30:35]line НДС 12% НСП 1% [10:30:35]line > о реализуемом товаре [10:30:35]line ОКРУГЛЕНИЕ: -0.56 [10:30:35]line ИТОГО: 3000.00 [10:30:35]line Внесено: 3000.00 [10:30:35]line СДАЧА: 0.00 [10:30:35]line НСП 1% : 26.55 [10:30:35]line НДС 12% : 318.64 [10:30:35]line Наличными: 3000.00 [10:30:35]line Безнал.: 0.00 [10:30:35]line Место: АЗС № 65 "Партнер Нефть" [10:30:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:30:35]line СНО: Общий режим [10:30:35]line Чек 38 23.06.2024 10:31 [10:30:35]line Смена: 392 ФФД: 1.0 [10:30:35]line ЗНМ: 0300000198 [10:30:35]line РНМ: 0000000000092771 [10:30:35]line Версия ККМ: 001 [10:30:35]line ФМ: 0000000000875083 [10:30:35]line ФД: 112437 [10:30:35]line ФПД: 37816755606257 [10:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T103127&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112437&fm=37816755606257&tin=02508201610067®Number=0000000000092771&sum=300000 [10:30:35]OFD Sender: Processing packet 112437 [packets to send 38, broken 37] [10:30:35]ProducePacketName [10:30:35]name=ofd_packets/00112437 [10:30:35]OFD Sender: To server: pG, [10:30:35]CommunicateWithHost lk.salyk.kg:30040 [10:30:35]ConnectInit lk.salyk.kg [10:30:35]written 0, free lines is 4095 [10:30:35]Connected sock=10 [10:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 83 1E 04 01 1F 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 26 00 00 00 F4 03 04 00 7F F9 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B7 01 00 35 04 06 00 22 64 E6 48 D2 F1 D9 86 0E 55 23 B4 E1 04 [10:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 65 2F 47 00 74 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B7 01 00 F4 03 04 00 6F 90 77 66 B6 04 01 00 00 65 B3 BA 8A 9E 58 4D 59 [10:30:35]CommunicateWithHost err = 0 [10:30:35]CheckOFDResponse [10:30:35]1017 (14) - 77093643461234 [10:30:35]1041 (16) - 0000000000875083 [10:30:35]1040 (4) - 112437 [10:30:35]1012 (4) - 23.06.2024 03:03 [10:30:35]1206 (1) - 0 [10:30:35]OFD Sender: Remove packet 112437 [10:30:35]ProducePacketName [10:30:35]name=ofd_packets/00112437 [10:30:35]NVStorageDeleteData [10:30:36]Write to MH i2c: 01 00 00 1A 70 8A [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: 01 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: 01 07 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: 01 07 00 1A 70 00 00 00 00 00 DF 0C 7C [10:30:36]RasterBufferAndPrint [10:30:36]line [10:30:36]line [10:30:36]line [10:30:36]line [10:30:36]line [10:30:36]written 0, free lines is 3304 [10:30:36]MH_Cut [10:30:36]Write to MH i2c: D1 01 00 21 70 01 63 [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: D1 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: D1 01 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: D1 01 00 21 70 00 62 [10:30:36]Write to MH i2c: 01 00 00 22 70 92 [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]OFD Sender: No OFD packet to send [10:30:36]*** Cut start [10:30:36]*** Partial cut [10:30:36]*** CUTSNS_PIN = 1 [10:30:36]*** CUTSNS_PIN = 0 [10:30:37]*** Brake cut motor [10:30:37]Read from MH i2c: 01 [10:30:37]MH_I2C_Read... [10:30:37]*** Stop cut motor [10:30:37]*** Cut end [10:30:37]Read from MH i2c: 01 07 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: 01 07 00 22 70 00 00 00 00 00 FF 0F A7 [10:30:37]process_action close_receipt done [10:30:37]requested_data is exist [10:30:37]produce_requested_data [10:30:37]requested_item fm.sn is exist - process it [10:30:37]wFMCommunicate request_size=4 [10:30:37]MH_SAM_APDU [10:30:37]CAPDU: 80 11 00 00 [10:30:37]Write to MH i2c: E2 08 00 23 70 80 11 00 00 00 00 00 00 0D [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:37]Read from MH i2c: E2 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 17 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 17 00 23 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [10:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:30:37]wFMCommunicate OK [10:30:37]requested_item fd.num is exist - process it [10:30:37]SAM_PROTO_GetFieldsCounters [10:30:37]wFMCommunicate request_size=4 [10:30:37]MH_SAM_APDU [10:30:37]CAPDU: 80 13 00 00 [10:30:37]Write to MH i2c: E2 08 00 24 70 80 13 00 00 00 00 00 00 10 [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:37]Read from MH i2c: E2 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 62 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 62 00 24 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 35 B7 01 00 0E 04 04 00 88 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 19 [10:30:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 35 B7 01 00 0E 04 04 00 88 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 [10:30:37]wFMCommunicate OK [10:30:37]SAM_PROTO_GetFieldsCounters done [10:30:37]requested_item shift.num is exist - process it [10:30:37]requested_item shift.opened is exist - process it [10:30:37]req_shift_opened [10:30:37]FM_GetShiftState [10:30:37]SAM_PROTO_GetShiftState [10:30:37]wFMCommunicate request_size=4 [10:30:37]MH_SAM_APDU [10:30:37]CAPDU: 80 13 01 00 [10:30:37]Write to MH i2c: E2 08 00 25 70 80 13 01 00 00 00 00 00 12 [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:37]Read from MH i2c: E2 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 0E 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 0E 00 25 70 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 30 [10:30:37]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:30:37]wFMCommunicate OK [10:30:37]SAM_PROTO_GetShiftState done [10:30:37]FM_GetShiftState done [10:30:37]req_shift_opened done [10:30:37]requested_item shift.open_date is exist - process it [10:30:37]req_shift_open_date [10:30:37]req_shift_open_date done [10:30:37]produce_requested_data done [10:30:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112437,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:30:37]process_action_free close_receipt [10:30:37]json_value_free [10:30:37]json_value_free done [10:30:37]process_json_proto returns [10:30:37]Send response to host [10:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112437,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:30:37]free response buf [10:30:37]execute_script done [10:30:37]execute_script returns [10:30:37]free content buf [10:30:37]Sock 7.Close socket [10:30:37]Sock 7.Thread stoped [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:21]accept exits with 9 [10:47:21]New connection [10:47:21]New thread 3066957156 created [10:47:21]Thread 3066813796 joined [10:47:21]Waiting for new connection... [10:47:21] Sock 9.Parse request [10:47:21]Sock 9.Check first char [10:47:21]Sock 9.First char is OK [10:47:21]request: POST /json_proto HTTP/1.0 [10:47:21]Method: POST [10:47:21]URL: /json_proto [10:47:21]Method is POST - this is cgi request [10:47:21]url: /json_proto [10:47:21]query_string will be loaded in cgi processing [10:47:21]execute_cgi json_proto POST (null) [10:47:21]execute_cgi path=json_proto method=POST [10:47:21]POST find Content-Length [10:47:21]Host: 172.17.59.68:8080 [10:47:21]Content-Length: 677 [10:47:21]Content-Type: application/json [10:47:21] [10:47:21]POST finish read [10:47:21]Found Content-Length = 677 [10:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:21]execute_script... [10:47: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)321117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:21]POST & json_proto [10:47:21]process_json_proto [10:47:21]json parsed OK: [10:47:21]protocol is kg_v1.0 [10:47:21]action value=close_receipt [10:47:21]process_action close_receipt [10:47:21]cmd_close_receipt [10:47:21]MH_GetDate [10:47:21]Write to MH i2c: F0 00 00 26 70 85 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: F0 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: F0 09 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: F0 09 00 26 70 00 6F FD 77 66 BC EC 60 65 44 [10:47:21]GetLastDocTimeStamp 1719138687 [10:47:21]current date 1719139695 [10:47:21]FM_GetShiftState [10:47:21]SAM_PROTO_GetShiftState [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 13 01 00 [10:47:21]Write to MH i2c: E2 08 00 27 70 80 13 01 00 00 00 00 00 14 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 0E 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 0E 00 27 70 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 32 [10:47:21]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:47:21]wFMCommunicate OK [10:47:21]SAM_PROTO_GetShiftState done [10:47:21]FM_GetShiftState done [10:47:21]opened in 1719106490 [10:47:21]opened+sec_in_day 1719192890 [10:47:21]quantity*price = 50065 [10:47:21]sum+1 = 50067 [10:47:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 39 23.06.2024 10:48 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112438 ФПД: 260574140941418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T104815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112438&fm=260574140941418&tin=02508201610067®Number=0000000000092771&sum=50000 [10:47:23]StoreToDocumentArchive [10:47:23]shift 392 fd 112438 [10:47:23]save to /storage/0392/doc_00112438 [10:47:23]save last doc name /storage/0392/doc_00112438 to /storage/kkm_last_doc_name [10:47:23]save OK [10:47:23]Clear old archive folders... [10:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:23]tlvbuf is B6DA93B0 [10:47:23]SAM_PROTO_ClearQueue [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 09 00 00 [10:47:23]Write to MH i2c: E2 08 00 34 70 80 09 00 00 00 00 00 00 16 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 03 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 03 00 34 70 00 90 00 18 [10:47:23]RAPDU: 90 00 [10:47:23]wFMCommunicate OK [10:47:23]SAM_PROTO_ClearQueue done [10:47:23]KKMCreateOFDPacket [10:47:23]OFDProtocolAddRootSTLVToBuf [10:47:23]FM_MakeSignedData [10:47:23]FM_MakeSignedData [10:47:23]SAM_PROTO_SignData [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 0D 01 02 [10:47:23]Write to MH i2c: E2 08 00 35 70 80 0D 01 02 00 00 00 00 1E [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 03 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 03 00 35 70 00 90 00 19 [10:47:23]RAPDU: 90 00 [10:47:23]wFMCommunicate OK [10:47:23]wFMCommunicate request_size=255 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 27 00 00 00 F4 03 04 00 6F FD 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B7 01 00 35 04 06 00 EC [10:47:23]Write to MH i2c: E2 02 01 36 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 27 00 00 00 F4 03 04 00 6F FD 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B7 01 00 35 04 06 00 EC 00 00 A5 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 03 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 03 00 36 70 00 90 00 1A [10:47:23]RAPDU: 90 00 [10:47:23]wFMCommunicate OK [10:47:23]wFMCommunicate request_size=10 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 0D 02 02 05 FD A5 1B C4 6A [10:47:23]Write to MH i2c: E2 0D 00 37 70 80 0D 02 02 05 00 FD A5 1B C4 6A 00 00 16 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 03 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 03 00 37 70 00 90 00 1B [10:47:23]RAPDU: 90 00 [10:47:23]wFMCommunicate OK [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 0D 03 02 [10:47:23]Write to MH i2c: E2 08 00 38 70 80 0D 03 02 00 00 00 00 23 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 0B 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 0B 00 38 70 00 02 32 63 5E 06 A5 AE CA 90 00 3C [10:47:23]RAPDU: 02 32 63 5E 06 A5 AE CA 90 00 [10:47:23]wFMCommunicate OK [10:47:23]SAM_PROTO_SignData done [10:47:23]FM_MakeSignedData done [10:47:23]CreateOFDProtocolMessage [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 11 00 00 [10:47:23]Write to MH i2c: E2 08 00 39 70 80 11 00 00 00 00 00 00 23 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 17 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 17 00 39 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 75 [10:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:47:23]wFMCommunicate OK [10:47:23]CreateOFDProtocolMessage done [10:47:23]OFDSenderStorePacket 112438 [10:47:23]StoreOFDPacket docnum=112438 [10:47:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 92 4D 07 01 58 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 27 00 00 00 F4 03 04 00 6F FD 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B7 01 00 35 04 06 00 EC FD A5 1B C4 6A 02 32 63 5E 06 A5 AE CA [10:47:23]CheckFolder [10:47:23]dirname=/storage/ofd_packets [10:47:23]CheckFolder done [10:47:23]ProducePacketName [10:47:23]name=ofd_packets/00112438 [10:47:23]NVStorageSaveData ofd_packets/00112438 [10:47:23]File name is /storage/ofd_packets/00112438 [10:47:23]Write 301 bytes [10:47:23]NVStorageSaveData done [10:47:23]OFDSenderStorePacket done [10:47:23]KKMCreateOFDPacket done [10:47:23]NVStorageSaveData kkm_last_timestamp [10:47:23]File name is /storage/kkm_last_timestamp [10:47:23]Write 4 bytes [10:47:23]NVStorageSaveData done [10:47:23]ExternCall_PrintAddStr [10:47:23]wPrintStart [10:47:23]Write to MH i2c: 01 00 00 3A 70 AA [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: 01 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: 01 07 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: 01 07 00 3A 70 00 00 00 00 00 FF 0F BF [10:47:23]RasterBufferAndPrint [10:47:23]line Счет N : (1)321117 [10:47:23]line ИНН: 02508201610067 [10:47:23]line Контрольно-Кассовый Чек [10:47:23]line ПРОДАЖА [10:47:23]line ТРК (МРК, ГНК) : 11 [10:47:23]line Товар: 2710124130 [10:47:23]line Аи-92-К-5 [10:47:23]line 7.540 * 66.40 [10:47:23]line = 500.66 [10:47:23]line НДС 12% НСП 1% [10:47:23]line > о реализуемом товаре [10:47:23]line ОКРУГЛЕНИЕ: -0.66 [10:47:23]line ИТОГО: 500.00 [10:47:23]line Внесено: 500.00 [10:47:23]line СДАЧА: 0.00 [10:47:23]line НСП 1% : 4.43 [10:47:23]line НДС 12% : 53.17 [10:47:23]line Наличными: 500.00 [10:47:23]line Безнал.: 0.00 [10:47:23]line Место: АЗС № 65 "Партнер Нефть" [10:47:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:47:23]line СНО: Общий режим [10:47:23]line Чек 39 23.06.2024 10:48 [10:47:23]line Смена: 392 ФФД: 1.0 [10:47:23]line ЗНМ: 0300000198 [10:47:23]line РНМ: 0000000000092771 [10:47:23]line Версия ККМ: 001 [10:47:23]line ФМ: 0000000000875083 [10:47:23]line ФД: 112438 [10:47:23]line ФПД: 260574140941418 [10:47:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T104815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112438&fm=260574140941418&tin=02508201610067®Number=0000000000092771&sum=50000 [10:47:23]OFD Sender: Processing packet 112438 [packets to send 38, broken 37] [10:47:23]ProducePacketName [10:47:23]name=ofd_packets/00112438 [10:47:23]OFD Sender: To server: pG, [10:47:23]CommunicateWithHost lk.salyk.kg:30040 [10:47:23]ConnectInit lk.salyk.kg [10:47:23]written 0, free lines is 4095 [10:47:24]Connected sock=10 [10:47:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 92 4D 07 01 58 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 27 00 00 00 F4 03 04 00 6F FD 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B7 01 00 35 04 06 00 EC FD A5 1B C4 6A 02 32 63 5E 06 A5 AE CA [10:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 48 CE 47 00 E1 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B7 01 00 F4 03 04 00 5F 94 77 66 B6 04 01 00 00 7E 10 DD B6 15 B7 71 BA [10:47:24]CommunicateWithHost err = 0 [10:47:24]CheckOFDResponse [10:47:24]1017 (14) - 77093643461234 [10:47:24]1041 (16) - 0000000000875083 [10:47:24]1040 (4) - 112438 [10:47:24]1012 (4) - 23.06.2024 03:19 [10:47:24]1206 (1) - 0 [10:47:24]OFD Sender: Remove packet 112438 [10:47:24]ProducePacketName [10:47:24]name=ofd_packets/00112438 [10:47:24]NVStorageDeleteData [10:47:24]Write to MH i2c: 01 00 00 65 70 D5 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 65 70 00 00 00 00 00 E5 0C CD [10:47:24]RasterBufferAndPrint [10:47:24]line [10:47:24]line [10:47:24]line [10:47:24]line [10:47:24]line [10:47:24]written 0, free lines is 3310 [10:47:24]MH_Cut [10:47:24]Write to MH i2c: D1 01 00 6C 70 01 AE [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: D1 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: D1 01 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: D1 01 00 6C 70 00 AD [10:47:24]Write to MH i2c: 01 00 00 6D 70 DD [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]OFD Sender: No OFD packet to send [10:47:25]*** Cut start [10:47:25]*** Partial cut [10:47:25]*** CUTSNS_PIN = 1 [10:47:25]*** CUTSNS_PIN = 0 [10:47:25]*** Brake cut motor [10:47:25]Read from MH i2c: 01 [10:47:25]MH_I2C_Read... [10:47:25]*** Stop cut motor [10:47:25]*** Cut end [10:47:25]Read from MH i2c: 01 07 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: 01 07 00 6D 70 00 00 00 00 00 FF 0F F2 [10:47:25]process_action close_receipt done [10:47:25]requested_data is exist [10:47:25]produce_requested_data [10:47:25]requested_item fm.sn is exist - process it [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 11 00 00 [10:47:25]Write to MH i2c: E2 08 00 6E 70 80 11 00 00 00 00 00 00 58 [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 17 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 17 00 6E 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AA [10:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:47:25]wFMCommunicate OK [10:47:25]requested_item fd.num is exist - process it [10:47:25]SAM_PROTO_GetFieldsCounters [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 13 00 00 [10:47:25]Write to MH i2c: E2 08 00 6F 70 80 13 00 00 00 00 00 00 5B [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 62 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 62 00 6F 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 36 B7 01 00 0E 04 04 00 88 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 68 [10:47:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 36 B7 01 00 0E 04 04 00 88 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 [10:47:25]wFMCommunicate OK [10:47:25]SAM_PROTO_GetFieldsCounters done [10:47:25]requested_item shift.num is exist - process it [10:47:25]requested_item shift.opened is exist - process it [10:47:25]req_shift_opened [10:47:25]FM_GetShiftState [10:47:25]SAM_PROTO_GetShiftState [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 13 01 00 [10:47:25]Write to MH i2c: E2 08 00 70 70 80 13 01 00 00 00 00 00 5D [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:26]Read from MH i2c: E2 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 0E 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 0E 00 70 70 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 7B [10:47:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [10:47:26]wFMCommunicate OK [10:47:26]SAM_PROTO_GetShiftState done [10:47:26]FM_GetShiftState done [10:47:26]req_shift_opened done [10:47:26]requested_item shift.open_date is exist - process it [10:47:26]req_shift_open_date [10:47:26]req_shift_open_date done [10:47:26]produce_requested_data done [10:47:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112438,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [10:47:26]process_action_free close_receipt [10:47:26]json_value_free [10:47:26]json_value_free done [10:47:26]process_json_proto returns [10:47:26]Send response to host [10:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112438,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [10:47:26]free response buf [10:47:26]execute_script done [10:47:26]execute_script returns [10:47:26]free content buf [10:47:26]Sock 9.Close socket [10:47:26]Sock 9.Thread stoped [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:36]int [10:47:36]Write to MH i2c: 01 00 00 71 70 E1 [10:47:36]*** FLAG_PRN_PAP1 set [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: 01 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: 01 07 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: 01 07 00 71 70 00 01 00 00 00 FF 0F F7 [10:47:36]state=0 [10:47:36]No paper [10:47:36]int [10:47:36]Write to MH i2c: 01 00 00 72 70 E2 [10:47:36]*** FLAG_PRN_PAP2 set [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: 01 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: 01 07 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: 01 07 00 72 70 00 03 00 00 00 FF 0F FA [10:47:36]state=0 [10:47:36]No paper [10:47:36]Cover opened [10:47:38]int [10:47:38]Write to MH i2c: 01 00 00 73 70 E3 [10:47:38]*** FLAG_PRN_PAP2 reset [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 73 70 00 01 00 00 00 FF 0F F9 [10:47:38]state=3 [10:47:38]No paper [10:47:38]Cover closed [10:47:38]int [10:47:38]Write to MH i2c: 01 00 00 74 70 E4 [10:47:38]*** FLAG_PRN_PAP2 set [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 74 70 00 03 00 00 00 FF 0F FC [10:47:38]state=0 [10:47:38]No paper [10:47:38]Cover opened [10:47:38]int [10:47:38]Write to MH i2c: 01 00 00 75 70 E5 [10:47:38]*** FLAG_PRN_PAP2 reset [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 75 70 00 01 00 00 00 FF 0F FB [10:47:38]state=3 [10:47:38]No paper [10:47:38]Cover closed [10:47:38]int [10:47:38]Write to MH i2c: 01 00 00 76 70 E6 [10:47:38]*** FLAG_PRN_PAP2 set [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 76 70 00 03 00 00 00 FF 0F FE [10:47:38]state=0 [10:47:38]No paper [10:47:38]Cover opened [10:47:39]OFD Sender: No OFD packet to send [10:47:42]int [10:47:42]Write to MH i2c: 01 00 00 77 70 E7 [10:47:42]*** FLAG_PRN_PAP2 reset [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: 01 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: 01 07 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: 01 07 00 77 70 00 01 00 00 00 FF 0F FD [10:47:42]state=3 [10:47:42]No paper [10:47:42]Cover closed [10:47:42]int [10:47:42]Write to MH i2c: 01 00 00 78 70 E8 [10:47:42]*** FLAG_PRN_PAP1 reset [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: 01 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: 01 07 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: 01 07 00 78 70 00 00 00 00 00 FF 0F FD [10:47:42]state=0 [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:07]recv_with_timeout no data received [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:29]accept exits with 7 [11:00:29]New connection [11:00:29]New thread 3066813796 created [11:00:29]Thread 3066957156 joined [11:00:29]Waiting for new connection... [11:00:29] Sock 7.Parse request [11:00:29]Sock 7.Check first char [11:00:29]Sock 7.First char is OK [11:00:29]request: POST /json_proto HTTP/1.0 [11:00:29]Method: POST [11:00:29]URL: /json_proto [11:00:29]Method is POST - this is cgi request [11:00:29]url: /json_proto [11:00:29]query_string will be loaded in cgi processing [11:00:29]execute_cgi json_proto POST (null) [11:00:29]execute_cgi path=json_proto method=POST [11:00:29]POST find Content-Length [11:00:29]Host: 172.17.59.68:8080 [11:00:29]Content-Length: 677 [11:00:29]Content-Type: application/json [11:00:29] [11:00:29]POST finish read [11:00:29]Found Content-Length = 677 [11:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:00:29]execute_script... [11:00:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:00:29]POST & json_proto [11:00:29]process_json_proto [11:00:29]json parsed OK: [11:00:29]protocol is kg_v1.0 [11:00:29]action value=close_receipt [11:00:29]process_action close_receipt [11:00:29]cmd_close_receipt [11:00:29]MH_GetDate [11:00:29]Write to MH i2c: F0 00 00 79 70 D8 [11:00:29]Write i2c OK [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: F0 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: F0 09 00 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: F0 09 00 79 70 00 84 00 78 66 BC EC 60 65 B0 [11:00:29]GetLastDocTimeStamp 1719139695 [11:00:29]current date 1719140484 [11:00:29]FM_GetShiftState [11:00:29]SAM_PROTO_GetShiftState [11:00:29]wFMCommunicate request_size=4 [11:00:29]MH_SAM_APDU [11:00:29]CAPDU: 80 13 01 00 [11:00:29]Write to MH i2c: E2 08 00 7A 70 80 13 01 00 00 00 00 00 67 [11:00:29]Write i2c OK [11:00:29]MH_I2C_Read... [11:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:29]Read from MH i2c: E2 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 0E 00 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 0E 00 7A 70 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 85 [11:00:29]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:00:29]wFMCommunicate OK [11:00:29]SAM_PROTO_GetShiftState done [11:00:29]FM_GetShiftState done [11:00:29]opened in 1719106490 [11:00:29]opened+sec_in_day 1719192890 [11:00:29]quantity*price = 60025 [11:00:29]sum+1 = 60027 [11:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 40 23.06.2024 11:01 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112439 ФПД: 255253731145951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T110124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112439&fm=255253731145951&tin=02508201610067®Number=0000000000092771&sum=60000 [11:00:31]StoreToDocumentArchive [11:00:31]shift 392 fd 112439 [11:00:31]save to /storage/0392/doc_00112439 [11:00:31]save last doc name /storage/0392/doc_00112439 to /storage/kkm_last_doc_name [11:00:31]save OK [11:00:31]Clear old archive folders... [11:00:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:31]tlvbuf is 0119A4C0 [11:00:31]SAM_PROTO_ClearQueue [11:00:31]wFMCommunicate request_size=4 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 09 00 00 [11:00:31]Write to MH i2c: E2 08 00 87 70 80 09 00 00 00 00 00 00 69 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 87 70 00 90 00 6B [11:00:31]RAPDU: 90 00 [11:00:31]wFMCommunicate OK [11:00:31]SAM_PROTO_ClearQueue done [11:00:31]KKMCreateOFDPacket [11:00:31]OFDProtocolAddRootSTLVToBuf [11:00:31]FM_MakeSignedData [11:00:31]FM_MakeSignedData [11:00:31]SAM_PROTO_SignData [11:00:31]wFMCommunicate request_size=4 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 0D 01 02 [11:00:31]Write to MH i2c: E2 08 00 88 70 80 0D 01 02 00 00 00 00 71 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 88 70 00 90 00 6C [11:00:31]RAPDU: 90 00 [11:00:31]wFMCommunicate OK [11:00:31]wFMCommunicate request_size=255 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 28 00 00 00 F4 03 04 00 84 00 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B7 01 00 35 04 06 00 E8 [11:00:31]Write to MH i2c: E2 02 01 89 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 28 00 00 00 F4 03 04 00 84 00 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B7 01 00 35 04 06 00 E8 00 00 EC [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 89 70 00 90 00 6D [11:00:31]RAPDU: 90 00 [11:00:31]wFMCommunicate OK [11:00:31]wFMCommunicate request_size=10 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 0D 02 02 05 26 E3 F8 F8 DF [11:00:31]Write to MH i2c: E2 0D 00 8A 70 80 0D 02 02 05 00 26 E3 F8 F8 DF 00 00 56 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 8A 70 00 90 00 6E [11:00:31]RAPDU: 90 00 [11:00:31]wFMCommunicate OK [11:00:31]wFMCommunicate request_size=4 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 0D 03 02 [11:00:31]Write to MH i2c: E2 08 00 8B 70 80 0D 03 02 00 00 00 00 76 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 0B 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 0B 00 8B 70 00 0A 09 25 AB 10 6E F0 39 90 00 01 [11:00:31]RAPDU: 0A 09 25 AB 10 6E F0 39 90 00 [11:00:31]wFMCommunicate OK [11:00:31]SAM_PROTO_SignData done [11:00:31]FM_MakeSignedData done [11:00:31]CreateOFDProtocolMessage [11:00:31]wFMCommunicate request_size=4 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 11 00 00 [11:00:31]Write to MH i2c: E2 08 00 8C 70 80 11 00 00 00 00 00 00 76 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 17 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 17 00 8C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [11:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:00:31]wFMCommunicate OK [11:00:31]CreateOFDProtocolMessage done [11:00:31]OFDSenderStorePacket 112439 [11:00:31]StoreOFDPacket docnum=112439 [11:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 73 FC 07 01 E0 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 28 00 00 00 F4 03 04 00 84 00 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B7 01 00 35 04 06 00 E8 26 E3 F8 F8 DF 0A 09 25 AB 10 6E F0 39 [11:00:31]CheckFolder [11:00:31]dirname=/storage/ofd_packets [11:00:31]CheckFolder done [11:00:31]ProducePacketName [11:00:31]name=ofd_packets/00112439 [11:00:31]NVStorageSaveData ofd_packets/00112439 [11:00:31]File name is /storage/ofd_packets/00112439 [11:00:31]Write 301 bytes [11:00:31]NVStorageSaveData done [11:00:31]OFDSenderStorePacket done [11:00:31]KKMCreateOFDPacket done [11:00:31]NVStorageSaveData kkm_last_timestamp [11:00:31]File name is /storage/kkm_last_timestamp [11:00:31]Write 4 bytes [11:00:31]NVStorageSaveData done [11:00:31]ExternCall_PrintAddStr [11:00:31]wPrintStart [11:00:31]Write to MH i2c: 01 00 00 8D 70 FD [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: 01 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: 01 07 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: 01 07 00 8D 70 00 00 00 00 00 FF 0F 12 [11:00:31]RasterBufferAndPrint [11:00:31]line Счет N : (1)321118 [11:00:31]line ИНН: 02508201610067 [11:00:31]line Контрольно-Кассовый Чек [11:00:31]line ПРОДАЖА [11:00:31]line ТРК (МРК, ГНК) : 11 [11:00:31]line Товар: 2710124130 [11:00:31]line Аи-92-К-5 [11:00:31]line 9.040 * 66.40 [11:00:31]line = 600.26 [11:00:31]line НДС 12% НСП 1% [11:00:31]line > о реализуемом товаре [11:00:31]line ОКРУГЛЕНИЕ: -0.26 [11:00:31]line ИТОГО: 600.00 [11:00:31]line Внесено: 600.00 [11:00:31]line СДАЧА: 0.00 [11:00:31]line НСП 1% : 5.31 [11:00:31]line НДС 12% : 63.74 [11:00:31]line Наличными: 600.00 [11:00:31]line Безнал.: 0.00 [11:00:31]line Место: АЗС № 65 "Партнер Нефть" [11:00:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:00:31]line СНО: Общий режим [11:00:31]line Чек 40 23.06.2024 11:01 [11:00:31]line Смена: 392 ФФД: 1.0 [11:00:31]line ЗНМ: 0300000198 [11:00:31]line РНМ: 0000000000092771 [11:00:31]line Версия ККМ: 001 [11:00:31]line ФМ: 0000000000875083 [11:00:31]line ФД: 112439 [11:00:31]line ФПД: 255253731145951 [11:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T110124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112439&fm=255253731145951&tin=02508201610067®Number=0000000000092771&sum=60000 [11:00:31]OFD Sender: Processing packet 112439 [packets to send 38, broken 37] [11:00:31]ProducePacketName [11:00:31]name=ofd_packets/00112439 [11:00:31]OFD Sender: To server: pG, [11:00:31]CommunicateWithHost lk.salyk.kg:30040 [11:00:31]ConnectInit lk.salyk.kg [11:00:31]written 0, free lines is 4095 [11:00:32]Connected sock=10 [11:00:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 73 FC 07 01 E0 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 28 00 00 00 F4 03 04 00 84 00 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B7 01 00 35 04 06 00 E8 26 E3 F8 F8 DF 0A 09 25 AB 10 6E F0 39 [11:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C6 6D 47 00 21 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B7 01 00 F4 03 04 00 73 97 77 66 B6 04 01 00 00 8C 95 D7 71 F2 84 95 C1 [11:00:32]CommunicateWithHost err = 0 [11:00:32]CheckOFDResponse [11:00:32]1017 (14) - 77093643461234 [11:00:32]1041 (16) - 0000000000875083 [11:00:32]1040 (4) - 112439 [11:00:32]1012 (4) - 23.06.2024 03:33 [11:00:32]1206 (1) - 0 [11:00:32]OFD Sender: Remove packet 112439 [11:00:32]ProducePacketName [11:00:32]name=ofd_packets/00112439 [11:00:32]NVStorageDeleteData [11:00:32]Write to MH i2c: 01 00 00 B8 70 28 [11:00:32]Write i2c OK [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: 01 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: 01 07 00 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: 01 07 00 B8 70 00 00 00 00 00 CD 0C 08 [11:00:32]RasterBufferAndPrint [11:00:32]line [11:00:32]line [11:00:32]line [11:00:32]line [11:00:32]line [11:00:32]written 0, free lines is 3283 [11:00:32]MH_Cut [11:00:32]Write to MH i2c: D1 01 00 BF 70 01 01 [11:00:32]Write i2c OK [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: D1 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: D1 01 00 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: D1 01 00 BF 70 00 00 [11:00:32]Write to MH i2c: 01 00 00 C0 70 30 [11:00:32]Write i2c OK [11:00:32]MH_I2C_Read... [11:00:32]OFD Sender: No OFD packet to send [11:00:33]*** Cut start [11:00:33]*** Partial cut [11:00:33]*** CUTSNS_PIN = 1 [11:00:33]*** CUTSNS_PIN = 0 [11:00:33]*** Brake cut motor [11:00:33]Read from MH i2c: 01 [11:00:33]MH_I2C_Read... [11:00:33]*** Stop cut motor [11:00:33]*** Cut end [11:00:33]Read from MH i2c: 01 07 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: 01 07 00 C0 70 00 00 00 00 00 FF 0F 45 [11:00:33]process_action close_receipt done [11:00:33]requested_data is exist [11:00:33]produce_requested_data [11:00:33]requested_item fm.sn is exist - process it [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 11 00 00 [11:00:33]Write to MH i2c: E2 08 00 C1 70 80 11 00 00 00 00 00 00 AB [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:33]Read from MH i2c: E2 17 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 17 00 C1 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [11:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:00:33]wFMCommunicate OK [11:00:33]requested_item fd.num is exist - process it [11:00:33]SAM_PROTO_GetFieldsCounters [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 13 00 00 [11:00:33]Write to MH i2c: E2 08 00 C2 70 80 13 00 00 00 00 00 00 AE [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 62 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 62 00 C2 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 37 B7 01 00 0E 04 04 00 88 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 BF [11:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 37 B7 01 00 0E 04 04 00 88 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 [11:00:33]wFMCommunicate OK [11:00:33]SAM_PROTO_GetFieldsCounters done [11:00:33]requested_item shift.num is exist - process it [11:00:33]requested_item shift.opened is exist - process it [11:00:33]req_shift_opened [11:00:33]FM_GetShiftState [11:00:33]SAM_PROTO_GetShiftState [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 13 01 00 [11:00:33]Write to MH i2c: E2 08 00 C3 70 80 13 01 00 00 00 00 00 B0 [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 0E 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 0E 00 C3 70 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CE [11:00:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:00:34]wFMCommunicate OK [11:00:34]SAM_PROTO_GetShiftState done [11:00:34]FM_GetShiftState done [11:00:34]req_shift_opened done [11:00:34]requested_item shift.open_date is exist - process it [11:00:34]req_shift_open_date [11:00:34]req_shift_open_date done [11:00:34]produce_requested_data done [11:00:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112439,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:00:34]process_action_free close_receipt [11:00:34]json_value_free [11:00:34]json_value_free done [11:00:34]process_json_proto returns [11:00:34]Send response to host [11:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112439,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:00:34]free response buf [11:00:34]execute_script done [11:00:34]execute_script returns [11:00:34]free content buf [11:00:34]Sock 7.Close socket [11:00:34]Sock 7.Thread stoped [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]int [11:11:03]Write to MH i2c: 01 00 00 C4 70 34 [11:11:03]*** FLAG_PRN_PAP1 set [11:11:03]Write i2c OK [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: 01 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: 01 07 00 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: 01 07 00 C4 70 00 01 00 00 00 FF 0F 4A [11:11:03]state=0 [11:11:03]No paper [11:11:03]int [11:11:03]Write to MH i2c: 01 00 00 C5 70 35 [11:11:03]*** FLAG_PRN_PAP2 set [11:11:03]Write i2c OK [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: 01 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: 01 07 00 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: 01 07 00 C5 70 00 03 00 00 00 FF 0F 4D [11:11:03]state=0 [11:11:03]No paper [11:11:03]Cover opened [11:11:03]OFD Sender: No OFD packet to send [11:11:06]int [11:11:06]Write to MH i2c: 01 00 00 C6 70 36 [11:11:06]*** FLAG_PRN_PAP2 reset [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 C6 70 00 01 00 00 00 FF 0F 4C [11:11:06]state=3 [11:11:06]No paper [11:11:06]Cover closed [11:11:07]int [11:11:07]Write to MH i2c: 01 00 00 C7 70 37 [11:11:07]*** FLAG_PRN_PAP2 set [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 C7 70 00 03 00 00 00 FF 0F 4F [11:11:07]state=0 [11:11:07]No paper [11:11:07]Cover opened [11:11:07]int [11:11:07]Write to MH i2c: 01 00 00 C8 70 38 [11:11:07]*** FLAG_PRN_PAP2 reset [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 C8 70 00 01 00 00 00 FF 0F 4E [11:11:07]state=3 [11:11:07]No paper [11:11:07]Cover closed [11:11:07]int [11:11:07]Write to MH i2c: 01 00 00 C9 70 39 [11:11:07]*** FLAG_PRN_PAP2 set [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 C9 70 00 03 00 00 00 FF 0F 51 [11:11:07]state=0 [11:11:07]No paper [11:11:07]Cover opened [11:11:08]OFD Sender: No OFD packet to send [11:11:12]Write to MH i2c: 01 00 00 CA 70 3A [11:11:12]Write i2c OK [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: 01 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: 01 07 00 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: 01 07 00 CA 70 00 03 00 00 00 FF 0F 52 [11:11:12]state=3 [11:11:12]No paper [11:11:12]Cover opened [11:11:13]OFD Sender: No OFD packet to send [11:11:17]Write to MH i2c: 01 00 00 CB 70 3B [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 07 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 07 00 CB 70 00 03 00 00 00 FF 0F 53 [11:11:17]state=3 [11:11:17]No paper [11:11:17]Cover opened [11:11:18]OFD Sender: No OFD packet to send [11:11:22]Write to MH i2c: 01 00 00 CC 70 3C [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 CC 70 00 03 00 00 00 FF 0F 54 [11:11:22]state=3 [11:11:22]No paper [11:11:22]Cover opened [11:11:23]OFD Sender: No OFD packet to send [11:11:27]Write to MH i2c: 01 00 00 CD 70 3D [11:11:27]Write i2c OK [11:11:27]MH_I2C_Read... [11:11:27]Read from MH i2c: 01 [11:11:27]MH_I2C_Read... [11:11:27]Read from MH i2c: 01 07 00 [11:11:27]MH_I2C_Read... [11:11:27]Read from MH i2c: 01 07 00 CD 70 00 03 00 00 00 FF 0F 55 [11:11:27]state=3 [11:11:27]No paper [11:11:27]Cover opened [11:11:28]OFD Sender: No OFD packet to send [11:11:28]int [11:11:28]Write to MH i2c: 01 00 00 CE 70 3E [11:11:28]*** FLAG_PRN_PAP2 reset [11:11:28]Write i2c OK [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: 01 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: 01 07 00 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: 01 07 00 CE 70 00 01 00 00 00 FF 0F 54 [11:11:28]state=3 [11:11:28]No paper [11:11:28]Cover closed [11:11:29]int [11:11:29]Write to MH i2c: 01 00 00 CF 70 3F [11:11:29]*** FLAG_PRN_PAP2 set [11:11:29]Write i2c OK [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: 01 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: 01 07 00 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: 01 07 00 CF 70 00 03 00 00 00 FF 0F 57 [11:11:29]state=0 [11:11:29]No paper [11:11:29]Cover opened [11:11:31]int [11:11:31]Write to MH i2c: 01 00 00 D0 70 40 [11:11:31]*** FLAG_PRN_PAP2 reset [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 07 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 07 00 D0 70 00 01 00 00 00 FF 0F 56 [11:11:31]state=3 [11:11:31]No paper [11:11:31]Cover closed [11:11:31]int [11:11:31]Write to MH i2c: 01 00 00 D1 70 41 [11:11:31]*** FLAG_PRN_PAP1 reset [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 07 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 07 00 D1 70 00 00 00 00 00 FF 0F 56 [11:11:31]state=0 [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [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:25]accept exits with 9 [11:14:25]New connection [11:14:25]New thread 3066957156 created [11:14:25]Thread 3066813796 joined [11:14:25]Waiting for new connection... [11:14:25] Sock 9.Parse request [11:14:25]Sock 9.Check first char [11:14:25]Sock 9.First char is OK [11:14:25]request: POST /json_proto HTTP/1.0 [11:14:25]Method: POST [11:14:25]URL: /json_proto [11:14:25]Method is POST - this is cgi request [11:14:25]url: /json_proto [11:14:25]query_string will be loaded in cgi processing [11:14:25]execute_cgi json_proto POST (null) [11:14:25]execute_cgi path=json_proto method=POST [11:14:25]POST find Content-Length [11:14:25]Host: 172.17.59.68:8080 [11:14:25]Content-Length: 677 [11:14:25]Content-Type: application/json [11:14:25] [11:14:25]POST finish read [11:14:25]Found Content-Length = 677 [11:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:14:25]execute_script... [11:14:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:14:25]POST & json_proto [11:14:25]process_json_proto [11:14:25]json parsed OK: [11:14:25]protocol is kg_v1.0 [11:14:25]action value=close_receipt [11:14:25]process_action close_receipt [11:14:25]cmd_close_receipt [11:14:25]MH_GetDate [11:14:25]Write to MH i2c: F0 00 00 D2 70 31 [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: F0 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: F0 09 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: F0 09 00 D2 70 00 C8 03 78 66 BC EC 60 65 50 [11:14:25]GetLastDocTimeStamp 1719140484 [11:14:25]current date 1719141320 [11:14:25]FM_GetShiftState [11:14:25]SAM_PROTO_GetShiftState [11:14:25]wFMCommunicate request_size=4 [11:14:25]MH_SAM_APDU [11:14:25]CAPDU: 80 13 01 00 [11:14:25]Write to MH i2c: E2 08 00 D3 70 80 13 01 00 00 00 00 00 C0 [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:25]Read from MH i2c: E2 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: E2 0E 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: E2 0E 00 D3 70 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 DE [11:14:25]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:14:25]wFMCommunicate OK [11:14:25]SAM_PROTO_GetShiftState done [11:14:25]FM_GetShiftState done [11:14:25]opened in 1719106490 [11:14:25]opened+sec_in_day 1719192890 [11:14:25]quantity*price = 60025 [11:14:25]sum+1 = 60027 [11:14:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 41 23.06.2024 11:15 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112440 ФПД: 258514090052556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T111520&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112440&fm=258514090052556&tin=02508201610067®Number=0000000000092771&sum=60000 [11:14:26]StoreToDocumentArchive [11:14:26]shift 392 fd 112440 [11:14:26]save to /storage/0392/doc_00112440 [11:14:26]save last doc name /storage/0392/doc_00112440 to /storage/kkm_last_doc_name [11:14:26]save OK [11:14:26]Clear old archive folders... [11:14:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:26]tlvbuf is 0119A8D0 [11:14:26]SAM_PROTO_ClearQueue [11:14:26]wFMCommunicate request_size=4 [11:14:26]MH_SAM_APDU [11:14:26]CAPDU: 80 09 00 00 [11:14:26]Write to MH i2c: E2 08 00 E0 70 80 09 00 00 00 00 00 00 C2 [11:14:26]Write i2c OK [11:14:26]MH_I2C_Read... [11:14:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:26]Read from MH i2c: E2 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: E2 03 00 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: E2 03 00 E0 70 00 90 00 C4 [11:14:26]RAPDU: 90 00 [11:14:26]wFMCommunicate OK [11:14:26]SAM_PROTO_ClearQueue done [11:14:26]KKMCreateOFDPacket [11:14:26]OFDProtocolAddRootSTLVToBuf [11:14:26]FM_MakeSignedData [11:14:26]FM_MakeSignedData [11:14:26]SAM_PROTO_SignData [11:14:26]wFMCommunicate request_size=4 [11:14:26]MH_SAM_APDU [11:14:26]CAPDU: 80 0D 01 02 [11:14:26]Write to MH i2c: E2 08 00 E1 70 80 0D 01 02 00 00 00 00 CA [11:14:26]Write i2c OK [11:14:26]MH_I2C_Read... [11:14:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:26]Read from MH i2c: E2 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: E2 03 00 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: E2 03 00 E1 70 00 90 00 C5 [11:14:26]RAPDU: 90 00 [11:14:26]wFMCommunicate OK [11:14:26]wFMCommunicate request_size=255 [11:14:26]MH_SAM_APDU [11:14:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 29 00 00 00 F4 03 04 00 C8 03 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B7 01 00 35 04 06 00 EB [11:14:26]Write to MH i2c: E2 02 01 E2 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 29 00 00 00 F4 03 04 00 C8 03 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B7 01 00 35 04 06 00 EB 00 00 91 [11:14:26]Write i2c OK [11:14:26]MH_I2C_Read... [11:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:27]Read from MH i2c: E2 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 03 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 03 00 E2 70 00 90 00 C6 [11:14:27]RAPDU: 90 00 [11:14:27]wFMCommunicate OK [11:14:27]wFMCommunicate request_size=10 [11:14:27]MH_SAM_APDU [11:14:27]CAPDU: 80 0D 02 02 05 1E 00 81 CB CC [11:14:27]Write to MH i2c: E2 0D 00 E3 70 80 0D 02 02 05 00 1E 00 81 CB CC 00 00 0D [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:27]Read from MH i2c: E2 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 03 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 03 00 E3 70 00 90 00 C7 [11:14:27]RAPDU: 90 00 [11:14:27]wFMCommunicate OK [11:14:27]wFMCommunicate request_size=4 [11:14:27]MH_SAM_APDU [11:14:27]CAPDU: 80 0D 03 02 [11:14:27]Write to MH i2c: E2 08 00 E4 70 80 0D 03 02 00 00 00 00 CF [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:27]Read from MH i2c: E2 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 0B 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 0B 00 E4 70 00 E6 E2 6B BF EB 23 9D CC 90 00 39 [11:14:27]RAPDU: E6 E2 6B BF EB 23 9D CC 90 00 [11:14:27]wFMCommunicate OK [11:14:27]SAM_PROTO_SignData done [11:14:27]FM_MakeSignedData done [11:14:27]CreateOFDProtocolMessage [11:14:27]wFMCommunicate request_size=4 [11:14:27]MH_SAM_APDU [11:14:27]CAPDU: 80 11 00 00 [11:14:27]Write to MH i2c: E2 08 00 E5 70 80 11 00 00 00 00 00 00 CF [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:27]Read from MH i2c: E2 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 17 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 17 00 E5 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [11:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:14:27]wFMCommunicate OK [11:14:27]CreateOFDProtocolMessage done [11:14:27]OFDSenderStorePacket 112440 [11:14:27]StoreOFDPacket docnum=112440 [11:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E FF 07 01 E0 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 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 29 00 00 00 F4 03 04 00 C8 03 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B7 01 00 35 04 06 00 EB 1E 00 81 CB CC E6 E2 6B BF EB 23 9D CC [11:14:27]CheckFolder [11:14:27]dirname=/storage/ofd_packets [11:14:27]CheckFolder done [11:14:27]ProducePacketName [11:14:27]name=ofd_packets/00112440 [11:14:27]NVStorageSaveData ofd_packets/00112440 [11:14:27]File name is /storage/ofd_packets/00112440 [11:14:27]Write 301 bytes [11:14:27]NVStorageSaveData done [11:14:27]OFDSenderStorePacket done [11:14:27]KKMCreateOFDPacket done [11:14:27]NVStorageSaveData kkm_last_timestamp [11:14:27]File name is /storage/kkm_last_timestamp [11:14:27]Write 4 bytes [11:14:27]NVStorageSaveData done [11:14:27]ExternCall_PrintAddStr [11:14:27]wPrintStart [11:14:27]Write to MH i2c: 01 00 00 E6 70 56 [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 07 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 07 00 E6 70 00 00 00 00 00 FF 0F 6B [11:14:27]RasterBufferAndPrint [11:14:27]line Счет N : (1)321119 [11:14:27]line ИНН: 02508201610067 [11:14:27]line Контрольно-Кассовый Чек [11:14:27]line ПРОДАЖА [11:14:27]line ТРК (МРК, ГНК) : 11 [11:14:27]line Товар: 2710124130 [11:14:27]line Аи-92-К-5 [11:14:27]line 9.040 * 66.40 [11:14:27]line = 600.26 [11:14:27]line НДС 12% НСП 1% [11:14:27]line > о реализуемом товаре [11:14:27]line ОКРУГЛЕНИЕ: -0.26 [11:14:27]line ИТОГО: 600.00 [11:14:27]line Внесено: 600.00 [11:14:27]line СДАЧА: 0.00 [11:14:27]line НСП 1% : 5.31 [11:14:27]line НДС 12% : 63.74 [11:14:27]line Наличными: 600.00 [11:14:27]line Безнал.: 0.00 [11:14:27]line Место: АЗС № 65 "Партнер Нефть" [11:14:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:14:27]line СНО: Общий режим [11:14:27]line Чек 41 23.06.2024 11:15 [11:14:27]line Смена: 392 ФФД: 1.0 [11:14:27]line ЗНМ: 0300000198 [11:14:27]line РНМ: 0000000000092771 [11:14:27]line Версия ККМ: 001 [11:14:27]line ФМ: 0000000000875083 [11:14:27]line ФД: 112440 [11:14:27]line ФПД: 258514090052556 [11:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T111520&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112440&fm=258514090052556&tin=02508201610067®Number=0000000000092771&sum=60000 [11:14:27]written 0, free lines is 4095 [11:14:27]OFD Sender: Processing packet 112440 [packets to send 38, broken 37] [11:14:27]ProducePacketName [11:14:27]name=ofd_packets/00112440 [11:14:27]OFD Sender: To server: pG, [11:14:27]CommunicateWithHost lk.salyk.kg:30040 [11:14:27]ConnectInit lk.salyk.kg [11:14:27]Connected sock=11 [11:14:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E FF 07 01 E0 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 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 29 00 00 00 F4 03 04 00 C8 03 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B7 01 00 35 04 06 00 EB 1E 00 81 CB CC E6 E2 6B BF EB 23 9D CC [11:14:27]Write to MH i2c: 01 00 00 11 71 82 [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 07 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 07 00 11 71 00 00 00 00 00 D6 0C 6B [11:14:27]RasterBufferAndPrint [11:14:27]line [11:14:27]line [11:14:27]line [11:14:27]line [11:14:27]line [11:14:27]written 0, free lines is 3293 [11:14:27]MH_Cut [11:14:27]Write to MH i2c: D1 01 00 18 71 01 5B [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: D1 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: D1 01 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: D1 01 00 18 71 00 5A [11:14:27]Write to MH i2c: 01 00 00 19 71 8A [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E1 EC 47 00 D0 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B7 01 00 F4 03 04 00 B6 9A 77 66 B6 04 01 00 00 71 4D 5F F3 5B 97 85 95 [11:14:27]CommunicateWithHost err = 0 [11:14:27]CheckOFDResponse [11:14:27]1017 (14) - 77093643461234 [11:14:27]1041 (16) - 0000000000875083 [11:14:27]1040 (4) - 112440 [11:14:27]1012 (4) - 23.06.2024 03:47 [11:14:27]1206 (1) - 0 [11:14:27]OFD Sender: Remove packet 112440 [11:14:27]ProducePacketName [11:14:27]name=ofd_packets/00112440 [11:14:27]NVStorageDeleteData [11:14:28]OFD Sender: No OFD packet to send [11:14:28]*** Cut start [11:14:28]*** Partial cut [11:14:28]*** CUTSNS_PIN = 1 [11:14:28]*** CUTSNS_PIN = 0 [11:14:28]*** Brake cut motor [11:14:29]Read from MH i2c: 01 [11:14:29]MH_I2C_Read... [11:14:29]*** Stop cut motor [11:14:29]*** Cut end [11:14:29]Read from MH i2c: 01 07 00 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: 01 07 00 19 71 00 00 00 00 00 FF 0F 9F [11:14:29]process_action close_receipt done [11:14:29]requested_data is exist [11:14:29]produce_requested_data [11:14:29]requested_item fm.sn is exist - process it [11:14:29]wFMCommunicate request_size=4 [11:14:29]MH_SAM_APDU [11:14:29]CAPDU: 80 11 00 00 [11:14:29]Write to MH i2c: E2 08 00 1A 71 80 11 00 00 00 00 00 00 05 [11:14:29]Write i2c OK [11:14:29]MH_I2C_Read... [11:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:29]Read from MH i2c: E2 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 17 00 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 17 00 1A 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [11:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:14:29]wFMCommunicate OK [11:14:29]requested_item fd.num is exist - process it [11:14:29]SAM_PROTO_GetFieldsCounters [11:14:29]wFMCommunicate request_size=4 [11:14:29]MH_SAM_APDU [11:14:29]CAPDU: 80 13 00 00 [11:14:29]Write to MH i2c: E2 08 00 1B 71 80 13 00 00 00 00 00 00 08 [11:14:29]Write i2c OK [11:14:29]MH_I2C_Read... [11:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:29]Read from MH i2c: E2 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 62 00 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 62 00 1B 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B7 01 00 0E 04 04 00 88 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 1D [11:14:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B7 01 00 0E 04 04 00 88 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 [11:14:29]wFMCommunicate OK [11:14:29]SAM_PROTO_GetFieldsCounters done [11:14:29]requested_item shift.num is exist - process it [11:14:29]requested_item shift.opened is exist - process it [11:14:29]req_shift_opened [11:14:29]FM_GetShiftState [11:14:29]SAM_PROTO_GetShiftState [11:14:29]wFMCommunicate request_size=4 [11:14:29]MH_SAM_APDU [11:14:29]CAPDU: 80 13 01 00 [11:14:29]Write to MH i2c: E2 08 00 1C 71 80 13 01 00 00 00 00 00 0A [11:14:29]Write i2c OK [11:14:29]MH_I2C_Read... [11:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:29]Read from MH i2c: E2 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 0E 00 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 0E 00 1C 71 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 28 [11:14:29]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:14:29]wFMCommunicate OK [11:14:29]SAM_PROTO_GetShiftState done [11:14:29]FM_GetShiftState done [11:14:29]req_shift_opened done [11:14:29]requested_item shift.open_date is exist - process it [11:14:29]req_shift_open_date [11:14:29]req_shift_open_date done [11:14:29]produce_requested_data done [11:14:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112440,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:14:29]process_action_free close_receipt [11:14:29]json_value_free [11:14:29]json_value_free done [11:14:29]process_json_proto returns [11:14:29]Send response to host [11:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112440,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:14:29]free response buf [11:14:29]execute_script done [11:14:29]execute_script returns [11:14:29]free content buf [11:14:29]Sock 9.Close socket [11:14:29]Sock 9.Thread stoped [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:09]accept exits with 7 [11:15:09]New connection [11:15:09]New thread 3066813796 created [11:15:09]Thread 3066957156 joined [11:15:09]Waiting for new connection... [11:15:09] Sock 7.Parse request [11:15:09]Sock 7.Check first char [11:15:09]Sock 7.First char is OK [11:15:09]request: POST /json_proto HTTP/1.0 [11:15:09]Method: POST [11:15:09]URL: /json_proto [11:15:09]Method is POST - this is cgi request [11:15:09]url: /json_proto [11:15:09]query_string will be loaded in cgi processing [11:15:09]execute_cgi json_proto POST (null) [11:15:09]execute_cgi path=json_proto method=POST [11:15:09]POST find Content-Length [11:15:09]Host: 172.17.59.68:8080 [11:15:09]Content-Length: 677 [11:15:09]Content-Type: application/json [11:15:09] [11:15:09]POST finish read [11:15:09]Found Content-Length = 677 [11:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:09]execute_script... [11:15:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:09]POST & json_proto [11:15:09]process_json_proto [11:15:09]json parsed OK: [11:15:09]protocol is kg_v1.0 [11:15:09]action value=close_receipt [11:15:09]process_action close_receipt [11:15:09]cmd_close_receipt [11:15:09]MH_GetDate [11:15:09]Write to MH i2c: F0 00 00 1D 71 7D [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: F0 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: F0 09 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: F0 09 00 1D 71 00 F4 03 78 66 BC EC 60 65 C8 [11:15:09]GetLastDocTimeStamp 1719141320 [11:15:09]current date 1719141364 [11:15:09]FM_GetShiftState [11:15:09]SAM_PROTO_GetShiftState [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 13 01 00 [11:15:09]Write to MH i2c: E2 08 00 1E 71 80 13 01 00 00 00 00 00 0C [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 0E 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 0E 00 1E 71 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2A [11:15:09]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:15:09]wFMCommunicate OK [11:15:09]SAM_PROTO_GetShiftState done [11:15:09]FM_GetShiftState done [11:15:09]opened in 1719106490 [11:15:09]opened+sec_in_day 1719192890 [11:15:09]quantity*price = 40053 [11:15:09]sum+1 = 40055 [11:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 42 23.06.2024 11:16 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112441 ФПД: 55502526445877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T111604&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112441&fm=55502526445877&tin=02508201610067®Number=0000000000092771&sum=40000 [11:15:10]StoreToDocumentArchive [11:15:10]shift 392 fd 112441 [11:15:10]save to /storage/0392/doc_00112441 [11:15:10]save last doc name /storage/0392/doc_00112441 to /storage/kkm_last_doc_name [11:15:10]save OK [11:15:10]Clear old archive folders... [11:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:10]tlvbuf is B6F59A70 [11:15:10]SAM_PROTO_ClearQueue [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 09 00 00 [11:15:10]Write to MH i2c: E2 08 00 2B 71 80 09 00 00 00 00 00 00 0E [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 03 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 03 00 2B 71 00 90 00 10 [11:15:10]RAPDU: 90 00 [11:15:10]wFMCommunicate OK [11:15:10]SAM_PROTO_ClearQueue done [11:15:10]KKMCreateOFDPacket [11:15:10]OFDProtocolAddRootSTLVToBuf [11:15:10]FM_MakeSignedData [11:15:10]FM_MakeSignedData [11:15:10]SAM_PROTO_SignData [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 0D 01 02 [11:15:10]Write to MH i2c: E2 08 00 2C 71 80 0D 01 02 00 00 00 00 16 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 03 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 03 00 2C 71 00 90 00 11 [11:15:10]RAPDU: 90 00 [11:15:10]wFMCommunicate OK [11:15:10]wFMCommunicate request_size=255 [11:15:10]MH_SAM_APDU [11:15: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 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F4 03 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B7 01 00 35 04 06 00 32 [11:15:10]Write to MH i2c: E2 02 01 2D 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F4 03 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B7 01 00 35 04 06 00 32 00 00 E4 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:11]Read from MH i2c: E2 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 03 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 03 00 2D 71 00 90 00 12 [11:15:11]RAPDU: 90 00 [11:15:11]wFMCommunicate OK [11:15:11]wFMCommunicate request_size=10 [11:15:11]MH_SAM_APDU [11:15:11]CAPDU: 80 0D 02 02 05 7A B0 5F 79 35 [11:15:11]Write to MH i2c: E2 0D 00 2E 71 80 0D 02 02 05 00 7A B0 5F 79 35 00 00 5A [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:11]Read from MH i2c: E2 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 03 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 03 00 2E 71 00 90 00 13 [11:15:11]RAPDU: 90 00 [11:15:11]wFMCommunicate OK [11:15:11]wFMCommunicate request_size=4 [11:15:11]MH_SAM_APDU [11:15:11]CAPDU: 80 0D 03 02 [11:15:11]Write to MH i2c: E2 08 00 2F 71 80 0D 03 02 00 00 00 00 1B [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:11]Read from MH i2c: E2 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 0B 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 0B 00 2F 71 00 59 5F 77 BA 1D 3F 6E 99 90 00 68 [11:15:11]RAPDU: 59 5F 77 BA 1D 3F 6E 99 90 00 [11:15:11]wFMCommunicate OK [11:15:11]SAM_PROTO_SignData done [11:15:11]FM_MakeSignedData done [11:15:11]CreateOFDProtocolMessage [11:15:11]wFMCommunicate request_size=4 [11:15:11]MH_SAM_APDU [11:15:11]CAPDU: 80 11 00 00 [11:15:11]Write to MH i2c: E2 08 00 30 71 80 11 00 00 00 00 00 00 1B [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:11]Read from MH i2c: E2 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 17 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 17 00 30 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [11:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:15:11]wFMCommunicate OK [11:15:11]CreateOFDProtocolMessage done [11:15:11]OFDSenderStorePacket 112441 [11:15:11]StoreOFDPacket docnum=112441 [11:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F1 F0 07 01 FD 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F4 03 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B7 01 00 35 04 06 00 32 7A B0 5F 79 35 59 5F 77 BA 1D 3F 6E 99 [11:15:11]CheckFolder [11:15:11]dirname=/storage/ofd_packets [11:15:11]CheckFolder done [11:15:11]ProducePacketName [11:15:11]name=ofd_packets/00112441 [11:15:11]NVStorageSaveData ofd_packets/00112441 [11:15:11]File name is /storage/ofd_packets/00112441 [11:15:11]Write 301 bytes [11:15:11]NVStorageSaveData done [11:15:11]OFDSenderStorePacket done [11:15:11]KKMCreateOFDPacket done [11:15:11]NVStorageSaveData kkm_last_timestamp [11:15:11]File name is /storage/kkm_last_timestamp [11:15:11]Write 4 bytes [11:15:11]NVStorageSaveData done [11:15:11]ExternCall_PrintAddStr [11:15:11]wPrintStart [11:15:11]Write to MH i2c: 01 00 00 31 71 A2 [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: 01 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: 01 07 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: 01 07 00 31 71 00 00 00 00 00 FF 0F B7 [11:15:11]RasterBufferAndPrint [11:15:11]line Счет N : (1)321120 [11:15:11]line ИНН: 02508201610067 [11:15:11]line Контрольно-Кассовый Чек [11:15:11]line ПРОДАЖА [11:15:11]line ТРК (МРК, ГНК) : 12 [11:15:11]line Товар: 2710124500 [11:15:11]line Аи-95-К-5 [11:15:11]line 5.420 * 73.90 [11:15:11]line = 400.54 [11:15:11]line НДС 12% НСП 1% [11:15:11]line > о реализуемом товаре [11:15:11]line ОКРУГЛЕНИЕ: -0.54 [11:15:11]line ИТОГО: 400.00 [11:15:11]line Внесено: 400.00 [11:15:11]line СДАЧА: 0.00 [11:15:11]line НСП 1% : 3.54 [11:15:11]line НДС 12% : 42.53 [11:15:11]line Наличными: 400.00 [11:15:11]line Безнал.: 0.00 [11:15:11]line Место: АЗС № 65 "Партнер Нефть" [11:15:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:15:11]line СНО: Общий режим [11:15:11]line Чек 42 23.06.2024 11:16 [11:15:11]line Смена: 392 ФФД: 1.0 [11:15:11]line ЗНМ: 0300000198 [11:15:11]line РНМ: 0000000000092771 [11:15:11]line Версия ККМ: 001 [11:15:11]line ФМ: 0000000000875083 [11:15:11]line ФД: 112441 [11:15:11]line ФПД: 55502526445877 [11:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T111604&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112441&fm=55502526445877&tin=02508201610067®Number=0000000000092771&sum=40000 [11:15:11]OFD Sender: Processing packet 112441 [packets to send 38, broken 37] [11:15:11]ProducePacketName [11:15:11]name=ofd_packets/00112441 [11:15:11]OFD Sender: To server: pG, [11:15:11]CommunicateWithHost lk.salyk.kg:30040 [11:15:11]ConnectInit lk.salyk.kg [11:15:11]written 0, free lines is 4095 [11:15:11]Connected sock=10 [11:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F1 F0 07 01 FD 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F4 03 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B7 01 00 35 04 06 00 32 7A B0 5F 79 35 59 5F 77 BA 1D 3F 6E 99 [11:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 19 CF 47 00 74 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B7 01 00 F4 03 04 00 E3 9A 77 66 B6 04 01 00 00 3B A0 D0 6D 8D 57 AE 9F [11:15:12]CommunicateWithHost err = 0 [11:15:12]CheckOFDResponse [11:15:12]1017 (14) - 77093643461234 [11:15:12]1041 (16) - 0000000000875083 [11:15:12]1040 (4) - 112441 [11:15:12]1012 (4) - 23.06.2024 03:47 [11:15:12]1206 (1) - 0 [11:15:12]OFD Sender: Remove packet 112441 [11:15:12]ProducePacketName [11:15:12]name=ofd_packets/00112441 [11:15:12]NVStorageDeleteData [11:15:12]Write to MH i2c: 01 00 00 5C 71 CD [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 07 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 07 00 5C 71 00 00 00 00 00 CE 0C AE [11:15:12]RasterBufferAndPrint [11:15:12]line [11:15:12]line [11:15:12]line [11:15:12]line [11:15:12]line [11:15:12]written 0, free lines is 3288 [11:15:12]MH_Cut [11:15:12]Write to MH i2c: D1 01 00 63 71 01 A6 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: D1 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: D1 01 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: D1 01 00 63 71 00 A5 [11:15:12]Write to MH i2c: 01 00 00 64 71 D5 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]OFD Sender: No OFD packet to send [11:15:12]*** Cut start [11:15:12]*** Partial cut [11:15:12]*** CUTSNS_PIN = 1 [11:15:13]*** CUTSNS_PIN = 0 [11:15:13]*** Brake cut motor [11:15:13]Read from MH i2c: 01 [11:15:13]MH_I2C_Read... [11:15:13]*** Stop cut motor [11:15:13]*** Cut end [11:15:13]Read from MH i2c: 01 07 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: 01 07 00 64 71 00 00 00 00 00 FF 0F EA [11:15:13]process_action close_receipt done [11:15:13]requested_data is exist [11:15:13]produce_requested_data [11:15:13]requested_item fm.sn is exist - process it [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 11 00 00 [11:15:13]Write to MH i2c: E2 08 00 65 71 80 11 00 00 00 00 00 00 50 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 17 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 17 00 65 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [11:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:15:13]wFMCommunicate OK [11:15:13]requested_item fd.num is exist - process it [11:15:13]SAM_PROTO_GetFieldsCounters [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 13 00 00 [11:15:13]Write to MH i2c: E2 08 00 66 71 80 13 00 00 00 00 00 00 53 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 62 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 62 00 66 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 39 B7 01 00 0E 04 04 00 88 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 6C [11:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 39 B7 01 00 0E 04 04 00 88 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 [11:15:13]wFMCommunicate OK [11:15:13]SAM_PROTO_GetFieldsCounters done [11:15:13]requested_item shift.num is exist - process it [11:15:13]requested_item shift.opened is exist - process it [11:15:13]req_shift_opened [11:15:13]FM_GetShiftState [11:15:13]SAM_PROTO_GetShiftState [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 13 01 00 [11:15:13]Write to MH i2c: E2 08 00 67 71 80 13 01 00 00 00 00 00 55 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 0E 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 0E 00 67 71 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 73 [11:15:13]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:15:13]wFMCommunicate OK [11:15:13]SAM_PROTO_GetShiftState done [11:15:13]FM_GetShiftState done [11:15:13]req_shift_opened done [11:15:13]requested_item shift.open_date is exist - process it [11:15:13]req_shift_open_date [11:15:13]req_shift_open_date done [11:15:13]produce_requested_data done [11:15:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112441,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:15:13]process_action_free close_receipt [11:15:13]json_value_free [11:15:13]json_value_free done [11:15:13]process_json_proto returns [11:15:13]Send response to host [11:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112441,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:15:13]free response buf [11:15:13]execute_script done [11:15:13]execute_script returns [11:15:13]free content buf [11:15:13]Sock 7.Close socket [11:15:13]Sock 7.Thread stoped [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:37]accept exits with 9 [11:18:37]New connection [11:18:37]New thread 3066957156 created [11:18:37]Thread 3066813796 joined [11:18:37]Waiting for new connection... [11:18:37] Sock 9.Parse request [11:18:37]Sock 9.Check first char [11:18:37]Sock 9.First char is OK [11:18:37]request: POST /json_proto HTTP/1.0 [11:18:37]Method: POST [11:18:37]URL: /json_proto [11:18:37]Method is POST - this is cgi request [11:18:37]url: /json_proto [11:18:37]query_string will be loaded in cgi processing [11:18:37]execute_cgi json_proto POST (null) [11:18:37]execute_cgi path=json_proto method=POST [11:18:37]POST find Content-Length [11:18:37]Host: 172.17.59.68:8080 [11:18:37]Content-Length: 682 [11:18:37]Content-Type: application/json [11:18:37] [11:18:37]POST finish read [11:18:37]Found Content-Length = 682 [11:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:37]execute_script... [11:18: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)321121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:37]POST & json_proto [11:18:37]process_json_proto [11:18:37]json parsed OK: [11:18:37]protocol is kg_v1.0 [11:18:37]action value=close_receipt [11:18:37]process_action close_receipt [11:18:37]cmd_close_receipt [11:18:37]MH_GetDate [11:18:37]Write to MH i2c: F0 00 00 68 71 C8 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 09 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 09 00 68 71 00 C4 04 78 66 BC EC 60 65 E4 [11:18:37]GetLastDocTimeStamp 1719141364 [11:18:37]current date 1719141572 [11:18:37]FM_GetShiftState [11:18:37]SAM_PROTO_GetShiftState [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 13 01 00 [11:18:37]Write to MH i2c: E2 08 00 69 71 80 13 01 00 00 00 00 00 57 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 0E 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 0E 00 69 71 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 75 [11:18:38]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:18:38]wFMCommunicate OK [11:18:38]SAM_PROTO_GetShiftState done [11:18:38]FM_GetShiftState done [11:18:38]opened in 1719106490 [11:18:38]opened+sec_in_day 1719192890 [11:18:38]quantity*price = 100064 [11:18:38]sum+1 = 100066 [11:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 43 23.06.2024 11:19 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112442 ФПД: 219795565460781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T111932&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112442&fm=219795565460781&tin=02508201610067®Number=0000000000092771&sum=100000 [11:18:39]StoreToDocumentArchive [11:18:39]shift 392 fd 112442 [11:18:39]save to /storage/0392/doc_00112442 [11:18:39]save last doc name /storage/0392/doc_00112442 to /storage/kkm_last_doc_name [11:18:39]save OK [11:18:39]Clear old archive folders... [11:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:39]tlvbuf is B6DA96D0 [11:18:39]SAM_PROTO_ClearQueue [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 09 00 00 [11:18:39]Write to MH i2c: E2 08 00 76 71 80 09 00 00 00 00 00 00 59 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 76 71 00 90 00 5B [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]SAM_PROTO_ClearQueue done [11:18:39]KKMCreateOFDPacket [11:18:39]OFDProtocolAddRootSTLVToBuf [11:18:39]FM_MakeSignedData [11:18:39]FM_MakeSignedData [11:18:39]SAM_PROTO_SignData [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 0D 01 02 [11:18:39]Write to MH i2c: E2 08 00 77 71 80 0D 01 02 00 00 00 00 61 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 77 71 00 90 00 5C [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]wFMCommunicate request_size=255 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 04 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B7 01 00 35 04 06 00 C7 [11:18:39]Write to MH i2c: E2 02 01 78 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 04 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B7 01 00 35 04 06 00 C7 00 00 78 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 78 71 00 90 00 5D [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]wFMCommunicate request_size=10 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 0D 02 02 05 E7 24 9A 3D 2D [11:18:39]Write to MH i2c: E2 0D 00 79 71 80 0D 02 02 05 00 E7 24 9A 3D 2D 00 00 7D [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 79 71 00 90 00 5E [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 0D 03 02 [11:18:39]Write to MH i2c: E2 08 00 7A 71 80 0D 03 02 00 00 00 00 66 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0B 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0B 00 7A 71 00 F1 DD 62 4B 19 0B A3 91 90 00 3A [11:18:39]RAPDU: F1 DD 62 4B 19 0B A3 91 90 00 [11:18:39]wFMCommunicate OK [11:18:39]SAM_PROTO_SignData done [11:18:39]FM_MakeSignedData done [11:18:39]CreateOFDProtocolMessage [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 11 00 00 [11:18:39]Write to MH i2c: E2 08 00 7B 71 80 11 00 00 00 00 00 00 66 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 7B 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [11:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:18:39]wFMCommunicate OK [11:18:39]CreateOFDProtocolMessage done [11:18:39]OFDSenderStorePacket 112442 [11:18:39]StoreOFDPacket docnum=112442 [11:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 0B 07 01 BA F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 04 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B7 01 00 35 04 06 00 C7 E7 24 9A 3D 2D F1 DD 62 4B 19 0B A3 91 [11:18:39]CheckFolder [11:18:39]dirname=/storage/ofd_packets [11:18:39]CheckFolder done [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00112442 [11:18:39]NVStorageSaveData ofd_packets/00112442 [11:18:39]File name is /storage/ofd_packets/00112442 [11:18:39]Write 301 bytes [11:18:39]NVStorageSaveData done [11:18:39]OFDSenderStorePacket done [11:18:39]KKMCreateOFDPacket done [11:18:39]NVStorageSaveData kkm_last_timestamp [11:18:39]File name is /storage/kkm_last_timestamp [11:18:39]Write 4 bytes [11:18:39]NVStorageSaveData done [11:18:39]ExternCall_PrintAddStr [11:18:39]wPrintStart [11:18:39]Write to MH i2c: 01 00 00 7C 71 ED [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 7C 71 00 00 00 00 00 FF 0F 02 [11:18:39]RasterBufferAndPrint [11:18:39]line Счет N : (1)321121 [11:18:39]line ИНН: 02508201610067 [11:18:39]line Контрольно-Кассовый Чек [11:18:39]line ПРОДАЖА [11:18:39]line ТРК (МРК, ГНК) : 11 [11:18:39]line Товар: 2710124130 [11:18:39]line Аи-92-К-5 [11:18:39]line 15.070 * 66.40 [11:18:39]line = 1000.65 [11:18:39]line НДС 12% НСП 1% [11:18:39]line > о реализуемом товаре [11:18:39]line ОКРУГЛЕНИЕ: -0.65 [11:18:39]line ИТОГО: 1000.00 [11:18:39]line Внесено: 1000.00 [11:18:39]line СДАЧА: 0.00 [11:18:39]line НСП 1% : 8.85 [11:18:39]line НДС 12% : 106.26 [11:18:39]line Наличными: 1000.00 [11:18:39]line Безнал.: 0.00 [11:18:39]line Место: АЗС № 65 "Партнер Нефть" [11:18:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:18:39]line СНО: Общий режим [11:18:39]line Чек 43 23.06.2024 11:19 [11:18:39]line Смена: 392 ФФД: 1.0 [11:18:39]line ЗНМ: 0300000198 [11:18:39]line РНМ: 0000000000092771 [11:18:39]line Версия ККМ: 001 [11:18:39]line ФМ: 0000000000875083 [11:18:39]line ФД: 112442 [11:18:39]line ФПД: 219795565460781 [11:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T111932&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112442&fm=219795565460781&tin=02508201610067®Number=0000000000092771&sum=100000 [11:18:39]written 0, free lines is 4095 [11:18:39]OFD Sender: Processing packet 112442 [packets to send 38, broken 37] [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00112442 [11:18:39]OFD Sender: To server: pG, [11:18:39]CommunicateWithHost lk.salyk.kg:30040 [11:18:39]ConnectInit lk.salyk.kg [11:18:39]Connected sock=10 [11:18:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 0B 07 01 BA F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 04 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B7 01 00 35 04 06 00 C7 E7 24 9A 3D 2D F1 DD 62 4B 19 0B A3 91 [11:18:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 08 42 47 00 ED 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B7 01 00 F4 03 04 00 B3 9B 77 66 B6 04 01 00 00 5B 5B 4E F5 B7 BD 81 16 [11:18:40]CommunicateWithHost err = 0 [11:18:40]CheckOFDResponse [11:18:40]1017 (14) - 77093643461234 [11:18:40]1041 (16) - 0000000000875083 [11:18:40]1040 (4) - 112442 [11:18:40]1012 (4) - 23.06.2024 03:51 [11:18:40]1206 (1) - 0 [11:18:40]OFD Sender: Remove packet 112442 [11:18:40]ProducePacketName [11:18:40]name=ofd_packets/00112442 [11:18:40]NVStorageDeleteData [11:18:40]Write to MH i2c: 01 00 00 A7 71 18 [11:18:40]Write i2c OK [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: 01 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: 01 07 00 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: 01 07 00 A7 71 00 00 00 00 00 D4 0C FF [11:18:40]RasterBufferAndPrint [11:18:40]line [11:18:40]line [11:18:40]line [11:18:40]line [11:18:40]line [11:18:40]written 0, free lines is 3292 [11:18:40]MH_Cut [11:18:40]Write to MH i2c: D1 01 00 AE 71 01 F1 [11:18:40]Write i2c OK [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: D1 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: D1 01 00 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: D1 01 00 AE 71 00 F0 [11:18:40]Write to MH i2c: 01 00 00 AF 71 20 [11:18:40]Write i2c OK [11:18:40]MH_I2C_Read... [11:18:40]OFD Sender: No OFD packet to send [11:18:40]*** Cut start [11:18:40]*** Partial cut [11:18:40]*** CUTSNS_PIN = 1 [11:18:40]*** CUTSNS_PIN = 0 [11:18:41]*** Brake cut motor [11:18:41]Read from MH i2c: 01 [11:18:41]MH_I2C_Read... [11:18:41]*** Stop cut motor [11:18:41]*** Cut end [11:18:41]Read from MH i2c: 01 07 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: 01 07 00 AF 71 00 00 00 00 00 FF 0F 35 [11:18:41]process_action close_receipt done [11:18:41]requested_data is exist [11:18:41]produce_requested_data [11:18:41]requested_item fm.sn is exist - process it [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 11 00 00 [11:18:41]Write to MH i2c: E2 08 00 B0 71 80 11 00 00 00 00 00 00 9B [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 17 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 17 00 B0 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 ED [11:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:18:41]wFMCommunicate OK [11:18:41]requested_item fd.num is exist - process it [11:18:41]SAM_PROTO_GetFieldsCounters [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 00 00 [11:18:41]Write to MH i2c: E2 08 00 B1 71 80 13 00 00 00 00 00 00 9E [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 62 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 62 00 B1 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3A B7 01 00 0E 04 04 00 88 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 BB [11:18:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3A B7 01 00 0E 04 04 00 88 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 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetFieldsCounters done [11:18:41]requested_item shift.num is exist - process it [11:18:41]requested_item shift.opened is exist - process it [11:18:41]req_shift_opened [11:18:41]FM_GetShiftState [11:18:41]SAM_PROTO_GetShiftState [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 01 00 [11:18:41]Write to MH i2c: E2 08 00 B2 71 80 13 01 00 00 00 00 00 A0 [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 B2 71 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 BE [11:18:41]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetShiftState done [11:18:41]FM_GetShiftState done [11:18:41]req_shift_opened done [11:18:41]requested_item shift.open_date is exist - process it [11:18:41]req_shift_open_date [11:18:41]req_shift_open_date done [11:18:41]produce_requested_data done [11:18:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112442,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:18:41]process_action_free close_receipt [11:18:41]json_value_free [11:18:41]json_value_free done [11:18:41]process_json_proto returns [11:18:41]Send response to host [11:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112442,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:18:41]free response buf [11:18:41]execute_script done [11:18:41]execute_script returns [11:18:41]free content buf [11:18:41]Sock 9.Close socket [11:18:41]Sock 9.Thread stoped [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]accept exits with 7 [11:26:30]New connection [11:26:30]New thread 3066813796 created [11:26:30]Thread 3066957156 joined [11:26:30]Waiting for new connection... [11:26:30] Sock 7.Parse request [11:26:30]Sock 7.Check first char [11:26:30]Sock 7.First char is OK [11:26:30]request: POST /json_proto HTTP/1.0 [11:26:30]Method: POST [11:26:30]URL: /json_proto [11:26:30]Method is POST - this is cgi request [11:26:30]url: /json_proto [11:26:30]query_string will be loaded in cgi processing [11:26:30]execute_cgi json_proto POST (null) [11:26:30]execute_cgi path=json_proto method=POST [11:26:30]POST find Content-Length [11:26:30]Host: 172.17.59.68:8080 [11:26:30]Content-Length: 677 [11:26:30]Content-Type: application/json [11:26:30] [11:26:30]POST finish read [11:26:30]Found Content-Length = 677 [11:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:26:30]execute_script... [11:26: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)321122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:26:30]POST & json_proto [11:26:30]process_json_proto [11:26:30]json parsed OK: [11:26:30]protocol is kg_v1.0 [11:26:30]action value=close_receipt [11:26:30]process_action close_receipt [11:26:30]cmd_close_receipt [11:26:30]MH_GetDate [11:26:30]Write to MH i2c: F0 00 00 B3 71 13 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: F0 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: F0 09 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: F0 09 00 B3 71 00 9D 06 78 66 BC EC 60 65 0A [11:26:30]GetLastDocTimeStamp 1719141572 [11:26:30]current date 1719142045 [11:26:30]FM_GetShiftState [11:26:30]SAM_PROTO_GetShiftState [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 13 01 00 [11:26:30]Write to MH i2c: E2 08 00 B4 71 80 13 01 00 00 00 00 00 A2 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 0E 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 0E 00 B4 71 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C0 [11:26:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:26:30]wFMCommunicate OK [11:26:30]SAM_PROTO_GetShiftState done [11:26:30]FM_GetShiftState done [11:26:30]opened in 1719106490 [11:26:30]opened+sec_in_day 1719192890 [11:26:30]quantity*price = 50065 [11:26:30]sum+1 = 50067 [11:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 44 23.06.2024 11:27 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112443 ФПД: 52774918070180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T112725&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112443&fm=52774918070180&tin=02508201610067®Number=0000000000092771&sum=50000 [11:26:32]StoreToDocumentArchive [11:26:32]shift 392 fd 112443 [11:26:32]save to /storage/0392/doc_00112443 [11:26:32]save last doc name /storage/0392/doc_00112443 to /storage/kkm_last_doc_name [11:26:32]save OK [11:26:32]Clear old archive folders... [11:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:32]tlvbuf is B6EDBA30 [11:26:32]SAM_PROTO_ClearQueue [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 09 00 00 [11:26:32]Write to MH i2c: E2 08 00 C1 71 80 09 00 00 00 00 00 00 A4 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 C1 71 00 90 00 A6 [11:26:32]RAPDU: 90 00 [11:26:32]wFMCommunicate OK [11:26:32]SAM_PROTO_ClearQueue done [11:26:32]KKMCreateOFDPacket [11:26:32]OFDProtocolAddRootSTLVToBuf [11:26:32]FM_MakeSignedData [11:26:32]FM_MakeSignedData [11:26:32]SAM_PROTO_SignData [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 0D 01 02 [11:26:32]Write to MH i2c: E2 08 00 C2 71 80 0D 01 02 00 00 00 00 AC [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 C2 71 00 90 00 A7 [11:26:32]RAPDU: 90 00 [11:26:32]wFMCommunicate OK [11:26:32]wFMCommunicate request_size=255 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2C 00 00 00 F4 03 04 00 9D 06 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B7 01 00 35 04 06 00 2F [11:26:32]Write to MH i2c: E2 02 01 C3 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2C 00 00 00 F4 03 04 00 9D 06 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B7 01 00 35 04 06 00 2F 00 00 B8 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 C3 71 00 90 00 A8 [11:26:32]RAPDU: 90 00 [11:26:32]wFMCommunicate OK [11:26:32]wFMCommunicate request_size=10 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 0D 02 02 05 FF 9E 3E 9F A4 [11:26:32]Write to MH i2c: E2 0D 00 C4 71 80 0D 02 02 05 00 FF 9E 3E 9F A4 00 00 D7 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 C4 71 00 90 00 A9 [11:26:32]RAPDU: 90 00 [11:26:32]wFMCommunicate OK [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 0D 03 02 [11:26:32]Write to MH i2c: E2 08 00 C5 71 80 0D 03 02 00 00 00 00 B1 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 0B 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 0B 00 C5 71 00 AE EC 19 E4 10 8C 09 63 90 00 51 [11:26:32]RAPDU: AE EC 19 E4 10 8C 09 63 90 00 [11:26:32]wFMCommunicate OK [11:26:32]SAM_PROTO_SignData done [11:26:32]FM_MakeSignedData done [11:26:32]CreateOFDProtocolMessage [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 11 00 00 [11:26:32]Write to MH i2c: E2 08 00 C6 71 80 11 00 00 00 00 00 00 B1 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 17 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 17 00 C6 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 03 [11:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:26:32]wFMCommunicate OK [11:26:32]CreateOFDProtocolMessage done [11:26:32]OFDSenderStorePacket 112443 [11:26:32]StoreOFDPacket docnum=112443 [11:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F 9A 07 01 F9 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2C 00 00 00 F4 03 04 00 9D 06 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B7 01 00 35 04 06 00 2F FF 9E 3E 9F A4 AE EC 19 E4 10 8C 09 63 [11:26:32]CheckFolder [11:26:32]dirname=/storage/ofd_packets [11:26:32]CheckFolder done [11:26:32]ProducePacketName [11:26:32]name=ofd_packets/00112443 [11:26:32]NVStorageSaveData ofd_packets/00112443 [11:26:32]File name is /storage/ofd_packets/00112443 [11:26:32]Write 301 bytes [11:26:32]NVStorageSaveData done [11:26:32]OFDSenderStorePacket done [11:26:32]KKMCreateOFDPacket done [11:26:32]NVStorageSaveData kkm_last_timestamp [11:26:32]File name is /storage/kkm_last_timestamp [11:26:32]Write 4 bytes [11:26:32]NVStorageSaveData done [11:26:32]ExternCall_PrintAddStr [11:26:32]wPrintStart [11:26:32]Write to MH i2c: 01 00 00 C7 71 38 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: 01 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: 01 07 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: 01 07 00 C7 71 00 00 00 00 00 FF 0F 4D [11:26:32]RasterBufferAndPrint [11:26:32]line Счет N : (1)321122 [11:26:32]line ИНН: 02508201610067 [11:26:32]line Контрольно-Кассовый Чек [11:26:32]line ПРОДАЖА [11:26:32]line ТРК (МРК, ГНК) : 11 [11:26:32]line Товар: 2710124130 [11:26:32]line Аи-92-К-5 [11:26:32]line 7.540 * 66.40 [11:26:32]line = 500.66 [11:26:32]line НДС 12% НСП 1% [11:26:32]line > о реализуемом товаре [11:26:32]line ОКРУГЛЕНИЕ: -0.66 [11:26:32]line ИТОГО: 500.00 [11:26:32]line Внесено: 500.00 [11:26:32]line СДАЧА: 0.00 [11:26:32]line НСП 1% : 4.43 [11:26:32]line НДС 12% : 53.17 [11:26:32]line Наличными: 500.00 [11:26:32]line Безнал.: 0.00 [11:26:32]line Место: АЗС № 65 "Партнер Нефть" [11:26:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:26:32]line СНО: Общий режим [11:26:32]line Чек 44 23.06.2024 11:27 [11:26:32]line Смена: 392 ФФД: 1.0 [11:26:32]line ЗНМ: 0300000198 [11:26:32]line РНМ: 0000000000092771 [11:26:32]line Версия ККМ: 001 [11:26:32]line ФМ: 0000000000875083 [11:26:32]line ФД: 112443 [11:26:32]line ФПД: 52774918070180 [11:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T112725&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112443&fm=52774918070180&tin=02508201610067®Number=0000000000092771&sum=50000 [11:26:32]OFD Sender: Processing packet 112443 [packets to send 38, broken 37] [11:26:32]ProducePacketName [11:26:32]name=ofd_packets/00112443 [11:26:32]OFD Sender: To server: pG, [11:26:32]CommunicateWithHost lk.salyk.kg:30040 [11:26:32]ConnectInit lk.salyk.kg [11:26:32]written 0, free lines is 4095 [11:26:32]Connected sock=11 [11:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F 9A 07 01 F9 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2C 00 00 00 F4 03 04 00 9D 06 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B7 01 00 35 04 06 00 2F FF 9E 3E 9F A4 AE EC 19 E4 10 8C 09 63 [11:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 31 30 47 00 F0 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B7 01 00 F4 03 04 00 8C 9D 77 66 B6 04 01 00 00 52 7A F2 83 E8 8E 80 F4 [11:26:33]CommunicateWithHost err = 0 [11:26:33]CheckOFDResponse [11:26:33]1017 (14) - 77093643461234 [11:26:33]1041 (16) - 0000000000875083 [11:26:33]1040 (4) - 112443 [11:26:33]1012 (4) - 23.06.2024 03:59 [11:26:33]1206 (1) - 0 [11:26:33]OFD Sender: Remove packet 112443 [11:26:33]ProducePacketName [11:26:33]name=ofd_packets/00112443 [11:26:33]NVStorageDeleteData [11:26:33]Write to MH i2c: 01 00 00 F2 71 63 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: 01 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: 01 07 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: 01 07 00 F2 71 00 00 00 00 00 CD 0C 43 [11:26:33]RasterBufferAndPrint [11:26:33]line [11:26:33]line [11:26:33]line [11:26:33]line [11:26:33]line [11:26:33]written 0, free lines is 3283 [11:26:33]MH_Cut [11:26:33]Write to MH i2c: D1 01 00 F9 71 01 3C [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: D1 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: D1 01 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: D1 01 00 F9 71 00 3B [11:26:33]Write to MH i2c: 01 00 00 FA 71 6B [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]OFD Sender: No OFD packet to send [11:26:34]*** Cut start [11:26:34]*** Partial cut [11:26:34]*** CUTSNS_PIN = 1 [11:26:34]*** CUTSNS_PIN = 0 [11:26:34]*** Brake cut motor [11:26:34]Read from MH i2c: 01 [11:26:34]*** Stop cut motor [11:26:34]*** Cut end [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: 01 07 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: 01 07 00 FA 71 00 00 00 00 00 FF 0F 80 [11:26:34]process_action close_receipt done [11:26:34]requested_data is exist [11:26:34]produce_requested_data [11:26:34]requested_item fm.sn is exist - process it [11:26:34]wFMCommunicate request_size=4 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 11 00 00 [11:26:34]Write to MH i2c: E2 08 00 FB 71 80 11 00 00 00 00 00 00 E6 [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 17 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 17 00 FB 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [11:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:26:34]wFMCommunicate OK [11:26:34]requested_item fd.num is exist - process it [11:26:34]SAM_PROTO_GetFieldsCounters [11:26:34]wFMCommunicate request_size=4 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 13 00 00 [11:26:34]Write to MH i2c: E2 08 00 FC 71 80 13 00 00 00 00 00 00 E9 [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 62 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 62 00 FC 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3B B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [11:26:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3B B7 01 00 0E 04 04 00 88 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 [11:26:34]wFMCommunicate OK [11:26:34]SAM_PROTO_GetFieldsCounters done [11:26:34]requested_item shift.num is exist - process it [11:26:34]requested_item shift.opened is exist - process it [11:26:34]req_shift_opened [11:26:34]FM_GetShiftState [11:26:34]SAM_PROTO_GetShiftState [11:26:34]wFMCommunicate request_size=4 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 13 01 00 [11:26:34]Write to MH i2c: E2 08 00 FD 71 80 13 01 00 00 00 00 00 EB [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 0E 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 0E 00 FD 71 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 09 [11:26:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:26:34]wFMCommunicate OK [11:26:34]SAM_PROTO_GetShiftState done [11:26:34]FM_GetShiftState done [11:26:34]req_shift_opened done [11:26:34]requested_item shift.open_date is exist - process it [11:26:34]req_shift_open_date [11:26:34]req_shift_open_date done [11:26:34]produce_requested_data done [11:26:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112443,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:26:34]process_action_free close_receipt [11:26:34]json_value_free [11:26:34]json_value_free done [11:26:34]process_json_proto returns [11:26:34]Send response to host [11:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112443,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:26:34]free response buf [11:26:34]execute_script done [11:26:34]execute_script returns [11:26:34]free content buf [11:26:34]Sock 7.Close socket [11:26:34]Sock 7.Thread stoped [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]accept exits with 9 [11:27:38]New connection [11:27:38]New thread 3066957156 created [11:27:38]Thread 3066813796 joined [11:27:38]Waiting for new connection... [11:27:38] Sock 9.Parse request [11:27:38]Sock 9.Check first char [11:27:38]Sock 9.First char is OK [11:27:38]request: POST /json_proto HTTP/1.0 [11:27:38]Method: POST [11:27:38]URL: /json_proto [11:27:38]Method is POST - this is cgi request [11:27:38]url: /json_proto [11:27:38]query_string will be loaded in cgi processing [11:27:38]execute_cgi json_proto POST (null) [11:27:38]execute_cgi path=json_proto method=POST [11:27:38]POST find Content-Length [11:27:38]Host: 172.17.59.68:8080 [11:27:38]Content-Length: 808 [11:27:38]Content-Type: application/json [11:27:38] [11:27:38]POST finish read [11:27:38]Found Content-Length = 808 [11:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1300.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:38]execute_script... [11:27: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)321123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1300.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:38]POST & json_proto [11:27:38]process_json_proto [11:27:38]json parsed OK: [11:27:38]protocol is kg_v1.0 [11:27:38]action value=close_receipt [11:27:38]process_action close_receipt [11:27:38]cmd_close_receipt [11:27:38]MH_GetDate [11:27:38]Write to MH i2c: F0 00 00 FE 71 5E [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: F0 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: F0 09 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: F0 09 00 FE 71 00 E0 06 78 66 BC EC 60 65 98 [11:27:38]GetLastDocTimeStamp 1719142045 [11:27:38]current date 1719142112 [11:27:38]FM_GetShiftState [11:27:38]SAM_PROTO_GetShiftState [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 13 01 00 [11:27:38]Write to MH i2c: E2 08 00 FF 71 80 13 01 00 00 00 00 00 ED [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 0E 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 0E 00 FF 71 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0B [11:27:38]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:27:38]wFMCommunicate OK [11:27:38]SAM_PROTO_GetShiftState done [11:27:38]FM_GetShiftState done [11:27:38]opened in 1719106490 [11:27:38]opened+sec_in_day 1719192890 [11:27:38]quantity*price = 130011 [11:27:38]sum+1 = 130012 [11:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.11 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 0.00 Безнал.: 1300.11 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 45 23.06.2024 11:28 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112444 ФПД: 169925949632024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T112833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112444&fm=169925949632024&tin=02508201610067®Number=0000000000092771&sum=130011 [11:27:39]StoreToDocumentArchive [11:27:39]shift 392 fd 112444 [11:27:39]save to /storage/0392/doc_00112444 [11:27:39]save last doc name /storage/0392/doc_00112444 to /storage/kkm_last_doc_name [11:27:39]save OK [11:27:39]Clear old archive folders... [11:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:39]tlvbuf is 01348A50 [11:27:39]SAM_PROTO_ClearQueue [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 09 00 00 [11:27:39]Write to MH i2c: E2 08 00 0C 72 80 09 00 00 00 00 00 00 F0 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 0C 72 00 90 00 F2 [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_ClearQueue done [11:27:39]KKMCreateOFDPacket [11:27:39]OFDProtocolAddRootSTLVToBuf [11:27:39]FM_MakeSignedData [11:27:39]FM_MakeSignedData [11:27:39]SAM_PROTO_SignData [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 01 02 [11:27:39]Write to MH i2c: E2 08 00 0D 72 80 0D 01 02 00 00 00 00 F8 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 0D 72 00 90 00 F3 [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=255 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E1 06 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B7 01 00 35 04 06 00 9A [11:27:39]Write to MH i2c: E2 02 01 0E 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E1 06 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B7 01 00 35 04 06 00 9A 00 00 06 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 0E 72 00 90 00 F4 [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=10 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 02 02 05 8B F7 DD AE 18 [11:27:39]Write to MH i2c: E2 0D 00 0F 72 80 0D 02 02 05 00 8B F7 DD AE 18 00 00 2A [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 0F 72 00 90 00 F5 [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 03 02 [11:27:39]Write to MH i2c: E2 08 00 10 72 80 0D 03 02 00 00 00 00 FD [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0B 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0B 00 10 72 00 F3 7F 59 25 8D 6A 30 9C 90 00 B1 [11:27:39]RAPDU: F3 7F 59 25 8D 6A 30 9C 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_SignData done [11:27:39]FM_MakeSignedData done [11:27:39]CreateOFDProtocolMessage [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 11 00 00 [11:27:39]Write to MH i2c: E2 08 00 11 72 80 11 00 00 00 00 00 00 FD [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 11 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [11:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:27:39]wFMCommunicate OK [11:27:39]CreateOFDProtocolMessage done [11:27:39]OFDSenderStorePacket 112444 [11:27:39]StoreOFDPacket docnum=112444 [11:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 52 07 01 D8 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E1 06 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B7 01 00 35 04 06 00 9A 8B F7 DD AE 18 F3 7F 59 25 8D 6A 30 9C [11:27:39]CheckFolder [11:27:39]dirname=/storage/ofd_packets [11:27:39]CheckFolder done [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00112444 [11:27:39]NVStorageSaveData ofd_packets/00112444 [11:27:39]File name is /storage/ofd_packets/00112444 [11:27:39]Write 301 bytes [11:27:39]NVStorageSaveData done [11:27:39]OFDSenderStorePacket done [11:27:39]KKMCreateOFDPacket done [11:27:39]NVStorageSaveData kkm_last_timestamp [11:27:39]File name is /storage/kkm_last_timestamp [11:27:39]Write 4 bytes [11:27:39]NVStorageSaveData done [11:27:39]ExternCall_PrintAddStr [11:27:39]wPrintStart [11:27:39]Write to MH i2c: 01 00 00 12 72 84 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 12 72 00 00 00 00 00 FF 0F 99 [11:27:39]RasterBufferAndPrint [11:27:39]line Счет N : (1)321123 [11:27:39]line ИНН: 02508201610067 [11:27:39]line Контрольно-Кассовый Чек [11:27:39]line ПРОДАЖА [11:27:39]line ТРК (МРК, ГНК) : 11 [11:27:39]line Товар: 2710124130 [11:27:39]line Аи-92-К-5 [11:27:39]line 19.580 * 66.40 [11:27:39]line = 1300.11 [11:27:39]line НДС 12% НСП 1% [11:27:39]line > о реализуемом товаре [11:27:39]line ИТОГО: 1300.11 [11:27:39]line НСП 1% : 11.50 [11:27:39]line НДС 12% : 138.06 [11:27:39]line Наличными: 0.00 [11:27:39]line Безнал.: 1300.11 [11:27:39]line Место: АЗС № 65 "Партнер Нефть" [11:27:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:27:39]line СНО: Общий режим [11:27:39]line Чек 45 23.06.2024 11:28 [11:27:39]line Смена: 392 ФФД: 1.0 [11:27:39]line ЗНМ: 0300000198 [11:27:39]line РНМ: 0000000000092771 [11:27:39]line Версия ККМ: 001 [11:27:39]line Платежная система: О! деньги [11:27:39]line ФМ: 0000000000875083 [11:27:39]line ФД: 112444 [11:27:39]line ФПД: 169925949632024 [11:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T112833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112444&fm=169925949632024&tin=02508201610067®Number=0000000000092771&sum=130011 [11:27:40]OFD Sender: Processing packet 112444 [packets to send 38, broken 37] [11:27:40]ProducePacketName [11:27:40]name=ofd_packets/00112444 [11:27:40]OFD Sender: To server: pG, [11:27:40]CommunicateWithHost lk.salyk.kg:30040 [11:27:40]ConnectInit lk.salyk.kg [11:27:40]written 0, free lines is 4095 [11:27:40]Connected sock=10 [11:27:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 52 07 01 D8 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E1 06 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B7 01 00 35 04 06 00 9A 8B F7 DD AE 18 F3 7F 59 25 8D 6A 30 9C [11:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 60 26 47 00 FA 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B7 01 00 F4 03 04 00 CF 9D 77 66 B6 04 01 00 00 59 34 7D 78 C9 24 82 5F [11:27:40]CommunicateWithHost err = 0 [11:27:40]CheckOFDResponse [11:27:40]1017 (14) - 77093643461234 [11:27:40]1041 (16) - 0000000000875083 [11:27:40]1040 (4) - 112444 [11:27:40]1012 (4) - 23.06.2024 04:00 [11:27:40]1206 (1) - 0 [11:27:40]OFD Sender: Remove packet 112444 [11:27:40]ProducePacketName [11:27:40]name=ofd_packets/00112444 [11:27:40]NVStorageDeleteData [11:27:40]Write to MH i2c: 01 00 00 3C 72 AE [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: 01 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: 01 07 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: 01 07 00 3C 72 00 00 00 00 00 E5 0C A6 [11:27:40]RasterBufferAndPrint [11:27:40]line [11:27:40]line [11:27:40]line [11:27:40]line [11:27:40]line [11:27:40]written 0, free lines is 3307 [11:27:40]MH_Cut [11:27:40]Write to MH i2c: D1 01 00 43 72 01 87 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 01 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 01 00 43 72 00 86 [11:27:40]Write to MH i2c: 01 00 00 44 72 B6 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:41]OFD Sender: No OFD packet to send [11:27:41]*** Cut start [11:27:41]*** Partial cut [11:27:41]*** CUTSNS_PIN = 1 [11:27:41]*** CUTSNS_PIN = 0 [11:27:41]*** Brake cut motor [11:27:42]Read from MH i2c: 01 [11:27:42]MH_I2C_Read... [11:27:42]*** Stop cut motor [11:27:42]Read from MH i2c: 01 07 00 [11:27:42]MH_I2C_Read... [11:27:42]*** Cut end [11:27:42]Read from MH i2c: 01 07 00 44 72 00 00 00 00 00 FF 0F CB [11:27:42]process_action close_receipt done [11:27:42]requested_data is exist [11:27:42]produce_requested_data [11:27:42]requested_item fm.sn is exist - process it [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 11 00 00 [11:27:42]Write to MH i2c: E2 08 00 45 72 80 11 00 00 00 00 00 00 31 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 17 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 17 00 45 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [11:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:27:42]wFMCommunicate OK [11:27:42]requested_item fd.num is exist - process it [11:27:42]SAM_PROTO_GetFieldsCounters [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 13 00 00 [11:27:42]Write to MH i2c: E2 08 00 46 72 80 13 00 00 00 00 00 00 34 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 62 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 62 00 46 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B7 01 00 0E 04 04 00 88 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 59 [11:27:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B7 01 00 0E 04 04 00 88 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 [11:27:42]wFMCommunicate OK [11:27:42]SAM_PROTO_GetFieldsCounters done [11:27:42]requested_item shift.num is exist - process it [11:27:42]requested_item shift.opened is exist - process it [11:27:42]req_shift_opened [11:27:42]FM_GetShiftState [11:27:42]SAM_PROTO_GetShiftState [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 13 01 00 [11:27:42]Write to MH i2c: E2 08 00 47 72 80 13 01 00 00 00 00 00 36 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0E 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0E 00 47 72 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 54 [11:27:42]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:27:42]wFMCommunicate OK [11:27:42]SAM_PROTO_GetShiftState done [11:27:42]FM_GetShiftState done [11:27:42]req_shift_opened done [11:27:42]requested_item shift.open_date is exist - process it [11:27:42]req_shift_open_date [11:27:42]req_shift_open_date done [11:27:42]produce_requested_data done [11:27:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112444,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:27:42]process_action_free close_receipt [11:27:42]json_value_free [11:27:42]json_value_free done [11:27:42]process_json_proto returns [11:27:42]Send response to host [11:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112444,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:27:42]free response buf [11:27:42]execute_script done [11:27:42]execute_script returns [11:27:42]free content buf [11:27:42]Sock 9.Close socket [11:27:42]Sock 9.Thread stoped [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [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:50]accept exits with 7 [11:29:50]New connection [11:29:50]New thread 3066813796 created [11:29:50]Thread 3066957156 joined [11:29:50]Waiting for new connection... [11:29:50] Sock 7.Parse request [11:29:50]Sock 7.Check first char [11:29:50]Sock 7.First char is OK [11:29:50]request: POST /json_proto HTTP/1.0 [11:29:50]Method: POST [11:29:50]URL: /json_proto [11:29:50]Method is POST - this is cgi request [11:29:50]url: /json_proto [11:29:50]query_string will be loaded in cgi processing [11:29:50]execute_cgi json_proto POST (null) [11:29:50]execute_cgi path=json_proto method=POST [11:29:50]POST find Content-Length [11:29:50]Host: 172.17.59.68:8080 [11:29:50]Content-Length: 682 [11:29:50]Content-Type: application/json [11:29:50] [11:29:50]POST finish read [11:29:50]Found Content-Length = 682 [11:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:50]execute_script... [11:29: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)321124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:50]POST & json_proto [11:29:50]process_json_proto [11:29:50]json parsed OK: [11:29:50]protocol is kg_v1.0 [11:29:50]action value=close_receipt [11:29:50]process_action close_receipt [11:29:50]cmd_close_receipt [11:29:50]MH_GetDate [11:29:50]Write to MH i2c: F0 00 00 48 72 A9 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: F0 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: F0 09 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: F0 09 00 48 72 00 65 07 78 66 BC EC 60 65 69 [11:29:50]GetLastDocTimeStamp 1719142113 [11:29:50]current date 1719142245 [11:29:50]FM_GetShiftState [11:29:50]SAM_PROTO_GetShiftState [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 13 01 00 [11:29:50]Write to MH i2c: E2 08 00 49 72 80 13 01 00 00 00 00 00 38 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 49 72 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 56 [11:29:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_GetShiftState done [11:29:50]FM_GetShiftState done [11:29:50]opened in 1719106490 [11:29:50]opened+sec_in_day 1719192890 [11:29:50]quantity*price = 100064 [11:29:50]sum+1 = 100066 [11:29:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 46 23.06.2024 11:30 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112445 ФПД: 166909118749292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T113045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112445&fm=166909118749292&tin=02508201610067®Number=0000000000092771&sum=100000 [11:29:52]StoreToDocumentArchive [11:29:52]shift 392 fd 112445 [11:29:52]save to /storage/0392/doc_00112445 [11:29:52]save last doc name /storage/0392/doc_00112445 to /storage/kkm_last_doc_name [11:29:52]save OK [11:29:52]Clear old archive folders... [11:29:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:52]tlvbuf is 01354210 [11:29:52]SAM_PROTO_ClearQueue [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 09 00 00 [11:29:52]Write to MH i2c: E2 08 00 56 72 80 09 00 00 00 00 00 00 3A [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 03 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 03 00 56 72 00 90 00 3C [11:29:52]RAPDU: 90 00 [11:29:52]wFMCommunicate OK [11:29:52]SAM_PROTO_ClearQueue done [11:29:52]KKMCreateOFDPacket [11:29:52]OFDProtocolAddRootSTLVToBuf [11:29:52]FM_MakeSignedData [11:29:52]FM_MakeSignedData [11:29:52]SAM_PROTO_SignData [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 0D 01 02 [11:29:52]Write to MH i2c: E2 08 00 57 72 80 0D 01 02 00 00 00 00 42 [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 03 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 03 00 57 72 00 90 00 3D [11:29:52]RAPDU: 90 00 [11:29:52]wFMCommunicate OK [11:29:52]wFMCommunicate request_size=255 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 07 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B7 01 00 35 04 06 00 97 [11:29:52]Write to MH i2c: E2 02 01 58 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 07 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B7 01 00 35 04 06 00 97 00 00 D3 [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 03 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 03 00 58 72 00 90 00 3E [11:29:52]RAPDU: 90 00 [11:29:52]wFMCommunicate OK [11:29:52]wFMCommunicate request_size=10 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 0D 02 02 05 CD 8E BB 9A 6C [11:29:52]Write to MH i2c: E2 0D 00 59 72 80 0D 02 02 05 00 CD 8E BB 9A 6C 00 00 6B [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 03 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 03 00 59 72 00 90 00 3F [11:29:52]RAPDU: 90 00 [11:29:52]wFMCommunicate OK [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 0D 03 02 [11:29:52]Write to MH i2c: E2 08 00 5A 72 80 0D 03 02 00 00 00 00 47 [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 0B 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 0B 00 5A 72 00 6B 85 74 08 7C 1C C6 2C 90 00 3E [11:29:52]RAPDU: 6B 85 74 08 7C 1C C6 2C 90 00 [11:29:52]wFMCommunicate OK [11:29:52]SAM_PROTO_SignData done [11:29:52]FM_MakeSignedData done [11:29:52]CreateOFDProtocolMessage [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 11 00 00 [11:29:52]Write to MH i2c: E2 08 00 5B 72 80 11 00 00 00 00 00 00 47 [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 17 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 17 00 5B 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [11:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:29:52]wFMCommunicate OK [11:29:52]CreateOFDProtocolMessage done [11:29:52]OFDSenderStorePacket 112445 [11:29:52]StoreOFDPacket docnum=112445 [11:29:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 A7 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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 07 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B7 01 00 35 04 06 00 97 CD 8E BB 9A 6C 6B 85 74 08 7C 1C C6 2C [11:29:52]CheckFolder [11:29:52]dirname=/storage/ofd_packets [11:29:52]CheckFolder done [11:29:52]ProducePacketName [11:29:52]name=ofd_packets/00112445 [11:29:52]NVStorageSaveData ofd_packets/00112445 [11:29:52]File name is /storage/ofd_packets/00112445 [11:29:52]Write 301 bytes [11:29:52]NVStorageSaveData done [11:29:52]OFDSenderStorePacket done [11:29:52]KKMCreateOFDPacket done [11:29:52]NVStorageSaveData kkm_last_timestamp [11:29:52]File name is /storage/kkm_last_timestamp [11:29:52]Write 4 bytes [11:29:52]NVStorageSaveData done [11:29:52]ExternCall_PrintAddStr [11:29:52]wPrintStart [11:29:52]Write to MH i2c: 01 00 00 5C 72 CE [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: 01 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: 01 07 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: 01 07 00 5C 72 00 00 00 00 00 FF 0F E3 [11:29:52]RasterBufferAndPrint [11:29:52]line Счет N : (1)321124 [11:29:52]line ИНН: 02508201610067 [11:29:52]line Контрольно-Кассовый Чек [11:29:52]line ПРОДАЖА [11:29:52]line ТРК (МРК, ГНК) : 11 [11:29:52]line Товар: 2710124130 [11:29:52]line Аи-92-К-5 [11:29:52]line 15.070 * 66.40 [11:29:52]line = 1000.65 [11:29:52]line НДС 12% НСП 1% [11:29:52]line > о реализуемом товаре [11:29:52]line ОКРУГЛЕНИЕ: -0.65 [11:29:52]line ИТОГО: 1000.00 [11:29:52]line Внесено: 1000.00 [11:29:52]line СДАЧА: 0.00 [11:29:52]line НСП 1% : 8.85 [11:29:52]line НДС 12% : 106.26 [11:29:52]line Наличными: 1000.00 [11:29:52]line Безнал.: 0.00 [11:29:52]line Место: АЗС № 65 "Партнер Нефть" [11:29:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:29:52]line СНО: Общий режим [11:29:52]line Чек 46 23.06.2024 11:30 [11:29:52]line Смена: 392 ФФД: 1.0 [11:29:52]line ЗНМ: 0300000198 [11:29:52]line РНМ: 0000000000092771 [11:29:52]line Версия ККМ: 001 [11:29:52]line ФМ: 0000000000875083 [11:29:52]line ФД: 112445 [11:29:52]line ФПД: 166909118749292 [11:29:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T113045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112445&fm=166909118749292&tin=02508201610067®Number=0000000000092771&sum=100000 [11:29:52]OFD Sender: Processing packet 112445 [packets to send 38, broken 37] [11:29:52]ProducePacketName [11:29:52]name=ofd_packets/00112445 [11:29:52]OFD Sender: To server: pG, [11:29:52]CommunicateWithHost lk.salyk.kg:30040 [11:29:52]ConnectInit lk.salyk.kg [11:29:52]written 0, free lines is 4095 [11:29:53]Connected sock=11 [11:29:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 A7 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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 07 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B7 01 00 35 04 06 00 97 CD 8E BB 9A 6C 6B 85 74 08 7C 1C C6 2C [11:29:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 25 71 47 00 2E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B7 01 00 F4 03 04 00 54 9E 77 66 B6 04 01 00 00 E0 F9 06 4A 22 73 42 0F [11:29:53]CommunicateWithHost err = 0 [11:29:53]CheckOFDResponse [11:29:53]1017 (14) - 77093643461234 [11:29:53]1041 (16) - 0000000000875083 [11:29:53]1040 (4) - 112445 [11:29:53]1012 (4) - 23.06.2024 04:02 [11:29:53]1206 (1) - 0 [11:29:53]OFD Sender: Remove packet 112445 [11:29:53]ProducePacketName [11:29:53]name=ofd_packets/00112445 [11:29:53]NVStorageDeleteData [11:29:53]Write to MH i2c: 01 00 00 87 72 F9 [11:29:53]Write i2c OK [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: 01 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: 01 07 00 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: 01 07 00 87 72 00 00 00 00 00 D0 0C DC [11:29:53]RasterBufferAndPrint [11:29:53]line [11:29:53]line [11:29:53]line [11:29:53]line [11:29:53]line [11:29:53]written 0, free lines is 3287 [11:29:53]MH_Cut [11:29:53]Write to MH i2c: D1 01 00 8E 72 01 D2 [11:29:53]Write i2c OK [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: D1 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: D1 01 00 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: D1 01 00 8E 72 00 D1 [11:29:53]Write to MH i2c: 01 00 00 8F 72 01 [11:29:53]Write i2c OK [11:29:53]MH_I2C_Read... [11:29:53]OFD Sender: No OFD packet to send [11:29:54]*** Cut start [11:29:54]*** Partial cut [11:29:54]*** CUTSNS_PIN = 1 [11:29:54]*** CUTSNS_PIN = 0 [11:29:54]*** Brake cut motor [11:29:54]Read from MH i2c: 01 [11:29:54]MH_I2C_Read... [11:29:54]*** Stop cut motor [11:29:54]*** Cut end [11:29:54]Read from MH i2c: 01 07 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 8F 72 00 00 00 00 00 FF 0F 16 [11:29:54]process_action close_receipt done [11:29:54]requested_data is exist [11:29:54]produce_requested_data [11:29:54]requested_item fm.sn is exist - process it [11:29:54]wFMCommunicate request_size=4 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 11 00 00 [11:29:54]Write to MH i2c: E2 08 00 90 72 80 11 00 00 00 00 00 00 7C [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 17 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 17 00 90 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [11:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:29:54]wFMCommunicate OK [11:29:54]requested_item fd.num is exist - process it [11:29:54]SAM_PROTO_GetFieldsCounters [11:29:54]wFMCommunicate request_size=4 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 13 00 00 [11:29:54]Write to MH i2c: E2 08 00 91 72 80 13 00 00 00 00 00 00 7F [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 62 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 62 00 91 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B7 01 00 0E 04 04 00 88 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 A8 [11:29:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B7 01 00 0E 04 04 00 88 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 [11:29:55]wFMCommunicate OK [11:29:55]SAM_PROTO_GetFieldsCounters done [11:29:55]requested_item shift.num is exist - process it [11:29:55]requested_item shift.opened is exist - process it [11:29:55]req_shift_opened [11:29:55]FM_GetShiftState [11:29:55]SAM_PROTO_GetShiftState [11:29:55]wFMCommunicate request_size=4 [11:29:55]MH_SAM_APDU [11:29:55]CAPDU: 80 13 01 00 [11:29:55]Write to MH i2c: E2 08 00 92 72 80 13 01 00 00 00 00 00 81 [11:29:55]Write i2c OK [11:29:55]MH_I2C_Read... [11:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:55]Read from MH i2c: E2 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: E2 0E 00 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: E2 0E 00 92 72 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 9F [11:29:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:29:55]wFMCommunicate OK [11:29:55]SAM_PROTO_GetShiftState done [11:29:55]FM_GetShiftState done [11:29:55]req_shift_opened done [11:29:55]requested_item shift.open_date is exist - process it [11:29:55]req_shift_open_date [11:29:55]req_shift_open_date done [11:29:55]produce_requested_data done [11:29:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112445,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:29:55]process_action_free close_receipt [11:29:55]json_value_free [11:29:55]json_value_free done [11:29:55]process_json_proto returns [11:29:55]Send response to host [11:29:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112445,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:29:55]free response buf [11:29:55]execute_script done [11:29:55]execute_script returns [11:29:55]free content buf [11:29:55]Sock 7.Close socket [11:29:55]Sock 7.Thread stoped [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:22]accept exits with 9 [11:30:22]New connection [11:30:22]New thread 3066957156 created [11:30:22]Thread 3066813796 joined [11:30:22]Waiting for new connection... [11:30:22] Sock 9.Parse request [11:30:22]Sock 9.Check first char [11:30:22]Sock 9.First char is OK [11:30:22]request: POST /json_proto HTTP/1.0 [11:30:22]Method: POST [11:30:22]URL: /json_proto [11:30:22]Method is POST - this is cgi request [11:30:22]url: /json_proto [11:30:22]query_string will be loaded in cgi processing [11:30:22]execute_cgi json_proto POST (null) [11:30:22]execute_cgi path=json_proto method=POST [11:30:22]POST find Content-Length [11:30:22]Host: 172.17.59.68:8080 [11:30:22]Content-Length: 677 [11:30:22]Content-Type: application/json [11:30:22] [11:30:22]POST finish read [11:30:22]Found Content-Length = 677 [11:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:30:22]execute_script... [11:30: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)321125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:30:22]POST & json_proto [11:30:22]process_json_proto [11:30:22]json parsed OK: [11:30:22]protocol is kg_v1.0 [11:30:22]action value=close_receipt [11:30:22]process_action close_receipt [11:30:22]cmd_close_receipt [11:30:22]MH_GetDate [11:30:22]Write to MH i2c: F0 00 00 93 72 F4 [11:30:22]Write i2c OK [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: F0 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: F0 09 00 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: F0 09 00 93 72 00 85 07 78 66 BC EC 60 65 D4 [11:30:22]GetLastDocTimeStamp 1719142245 [11:30:22]current date 1719142277 [11:30:22]FM_GetShiftState [11:30:22]SAM_PROTO_GetShiftState [11:30:22]wFMCommunicate request_size=4 [11:30:22]MH_SAM_APDU [11:30:22]CAPDU: 80 13 01 00 [11:30:22]Write to MH i2c: E2 08 00 94 72 80 13 01 00 00 00 00 00 83 [11:30:22]Write i2c OK [11:30:22]MH_I2C_Read... [11:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:22]Read from MH i2c: E2 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 0E 00 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 0E 00 94 72 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A1 [11:30:22]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:30:22]wFMCommunicate OK [11:30:22]SAM_PROTO_GetShiftState done [11:30:22]FM_GetShiftState done [11:30:22]opened in 1719106490 [11:30:22]opened+sec_in_day 1719192890 [11:30:22]quantity*price = 50065 [11:30:22]sum+1 = 50067 [11:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 47 23.06.2024 11:31 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112446 ФПД: 185515826083780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T113117&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112446&fm=185515826083780&tin=02508201610067®Number=0000000000092771&sum=50000 [11:30:23]StoreToDocumentArchive [11:30:23]shift 392 fd 112446 [11:30:23]save to /storage/0392/doc_00112446 [11:30:23]save last doc name /storage/0392/doc_00112446 to /storage/kkm_last_doc_name [11:30:23]save OK [11:30:23]Clear old archive folders... [11:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:23]tlvbuf is 0123B5F0 [11:30:23]SAM_PROTO_ClearQueue [11:30:23]wFMCommunicate request_size=4 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 09 00 00 [11:30:23]Write to MH i2c: E2 08 00 A1 72 80 09 00 00 00 00 00 00 85 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 A1 72 00 90 00 87 [11:30:23]RAPDU: 90 00 [11:30:23]wFMCommunicate OK [11:30:23]SAM_PROTO_ClearQueue done [11:30:23]KKMCreateOFDPacket [11:30:23]OFDProtocolAddRootSTLVToBuf [11:30:23]FM_MakeSignedData [11:30:23]FM_MakeSignedData [11:30:23]SAM_PROTO_SignData [11:30:23]wFMCommunicate request_size=4 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 0D 01 02 [11:30:23]Write to MH i2c: E2 08 00 A2 72 80 0D 01 02 00 00 00 00 8D [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 A2 72 00 90 00 88 [11:30:23]RAPDU: 90 00 [11:30:23]wFMCommunicate OK [11:30:23]wFMCommunicate request_size=255 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2F 00 00 00 F4 03 04 00 85 07 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B7 01 00 35 04 06 00 A8 [11:30:23]Write to MH i2c: E2 02 01 A3 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2F 00 00 00 F4 03 04 00 85 07 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B7 01 00 35 04 06 00 A8 00 00 01 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 A3 72 00 90 00 89 [11:30:23]RAPDU: 90 00 [11:30:23]wFMCommunicate OK [11:30:23]wFMCommunicate request_size=10 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 0D 02 02 05 B9 C4 E9 F7 C4 [11:30:23]Write to MH i2c: E2 0D 00 A4 72 80 0D 02 02 05 00 B9 C4 E9 F7 C4 00 00 BB [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]OFD Sender: No OFD packet to send [11:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 A4 72 00 90 00 8A [11:30:23]RAPDU: 90 00 [11:30:23]wFMCommunicate OK [11:30:23]wFMCommunicate request_size=4 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 0D 03 02 [11:30:23]Write to MH i2c: E2 08 00 A5 72 80 0D 03 02 00 00 00 00 92 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 0B 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 0B 00 A5 72 00 55 13 A1 6D 26 7C 1B E3 90 00 A9 [11:30:23]RAPDU: 55 13 A1 6D 26 7C 1B E3 90 00 [11:30:23]wFMCommunicate OK [11:30:23]SAM_PROTO_SignData done [11:30:23]FM_MakeSignedData done [11:30:23]CreateOFDProtocolMessage [11:30:23]wFMCommunicate request_size=4 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 11 00 00 [11:30:23]Write to MH i2c: E2 08 00 A6 72 80 11 00 00 00 00 00 00 92 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 17 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 17 00 A6 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [11:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:30:23]wFMCommunicate OK [11:30:23]CreateOFDProtocolMessage done [11:30:23]OFDSenderStorePacket 112446 [11:30:23]StoreOFDPacket docnum=112446 [11:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 D6 07 01 37 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2F 00 00 00 F4 03 04 00 85 07 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B7 01 00 35 04 06 00 A8 B9 C4 E9 F7 C4 55 13 A1 6D 26 7C 1B E3 [11:30:23]CheckFolder [11:30:23]dirname=/storage/ofd_packets [11:30:23]CheckFolder done [11:30:23]ProducePacketName [11:30:23]name=ofd_packets/00112446 [11:30:23]NVStorageSaveData ofd_packets/00112446 [11:30:23]File name is /storage/ofd_packets/00112446 [11:30:23]Write 301 bytes [11:30:23]NVStorageSaveData done [11:30:23]OFDSenderStorePacket done [11:30:23]KKMCreateOFDPacket done [11:30:23]NVStorageSaveData kkm_last_timestamp [11:30:23]File name is /storage/kkm_last_timestamp [11:30:23]Write 4 bytes [11:30:23]NVStorageSaveData done [11:30:23]ExternCall_PrintAddStr [11:30:23]wPrintStart [11:30:23]Write to MH i2c: 01 00 00 A7 72 19 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: 01 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: 01 07 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: 01 07 00 A7 72 00 00 00 00 00 FF 0F 2E [11:30:23]RasterBufferAndPrint [11:30:23]line Счет N : (1)321125 [11:30:23]line ИНН: 02508201610067 [11:30:23]line Контрольно-Кассовый Чек [11:30:23]line ПРОДАЖА [11:30:23]line ТРК (МРК, ГНК) : 11 [11:30:23]line Товар: 2710124130 [11:30:23]line Аи-92-К-5 [11:30:23]line 7.540 * 66.40 [11:30:23]line = 500.66 [11:30:23]line НДС 12% НСП 1% [11:30:23]line > о реализуемом товаре [11:30:23]line ОКРУГЛЕНИЕ: -0.66 [11:30:23]line ИТОГО: 500.00 [11:30:23]line Внесено: 500.00 [11:30:23]line СДАЧА: 0.00 [11:30:23]line НСП 1% : 4.43 [11:30:23]line НДС 12% : 53.17 [11:30:23]line Наличными: 500.00 [11:30:23]line Безнал.: 0.00 [11:30:23]line Место: АЗС № 65 "Партнер Нефть" [11:30:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:30:23]line СНО: Общий режим [11:30:23]line Чек 47 23.06.2024 11:31 [11:30:23]line Смена: 392 ФФД: 1.0 [11:30:23]line ЗНМ: 0300000198 [11:30:23]line РНМ: 0000000000092771 [11:30:23]line Версия ККМ: 001 [11:30:23]line ФМ: 0000000000875083 [11:30:23]line ФД: 112446 [11:30:23]line ФПД: 185515826083780 [11:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T113117&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112446&fm=185515826083780&tin=02508201610067®Number=0000000000092771&sum=50000 [11:30:24]OFD Sender: Processing packet 112446 [packets to send 38, broken 37] [11:30:24]ProducePacketName [11:30:24]name=ofd_packets/00112446 [11:30:24]OFD Sender: To server: pG, [11:30:24]CommunicateWithHost lk.salyk.kg:30040 [11:30:24]ConnectInit lk.salyk.kg [11:30:24]written 0, free lines is 4095 [11:30:24]Connected sock=10 [11:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 D6 07 01 37 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2F 00 00 00 F4 03 04 00 85 07 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B7 01 00 35 04 06 00 A8 B9 C4 E9 F7 C4 55 13 A1 6D 26 7C 1B E3 [11:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F5 57 47 00 67 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B7 01 00 F4 03 04 00 73 9E 77 66 B6 04 01 00 00 0A E1 79 82 6D 77 65 0C [11:30:24]CommunicateWithHost err = 0 [11:30:24]CheckOFDResponse [11:30:24]1017 (14) - 77093643461234 [11:30:24]1041 (16) - 0000000000875083 [11:30:24]1040 (4) - 112446 [11:30:24]1012 (4) - 23.06.2024 04:02 [11:30:24]1206 (1) - 0 [11:30:24]OFD Sender: Remove packet 112446 [11:30:24]ProducePacketName [11:30:24]name=ofd_packets/00112446 [11:30:24]NVStorageDeleteData [11:30:24]Write to MH i2c: 01 00 00 D2 72 44 [11:30:24]Write i2c OK [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: 01 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: 01 07 00 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: 01 07 00 D2 72 00 00 00 00 00 D0 0C 27 [11:30:24]RasterBufferAndPrint [11:30:24]line [11:30:24]line [11:30:24]line [11:30:24]line [11:30:24]line [11:30:24]written 0, free lines is 3288 [11:30:24]MH_Cut [11:30:24]Write to MH i2c: D1 01 00 D9 72 01 1D [11:30:24]Write i2c OK [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: D1 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: D1 01 00 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: D1 01 00 D9 72 00 1C [11:30:24]Write to MH i2c: 01 00 00 DA 72 4C [11:30:24]Write i2c OK [11:30:24]MH_I2C_Read... [11:30:25]OFD Sender: No OFD packet to send [11:30:25]*** Cut start [11:30:25]*** Partial cut [11:30:25]*** CUTSNS_PIN = 1 [11:30:25]*** CUTSNS_PIN = 0 [11:30:25]*** Brake cut motor [11:30:26]Read from MH i2c: 01 [11:30:26]MH_I2C_Read... [11:30:26]*** Stop cut motor [11:30:26]*** Cut end [11:30:26]Read from MH i2c: 01 07 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: 01 07 00 DA 72 00 00 00 00 00 FF 0F 61 [11:30:26]process_action close_receipt done [11:30:26]requested_data is exist [11:30:26]produce_requested_data [11:30:26]requested_item fm.sn is exist - process it [11:30:26]wFMCommunicate request_size=4 [11:30:26]MH_SAM_APDU [11:30:26]CAPDU: 80 11 00 00 [11:30:26]Write to MH i2c: E2 08 00 DB 72 80 11 00 00 00 00 00 00 C7 [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:26]Read from MH i2c: E2 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 17 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 17 00 DB 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 19 [11:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:30:26]wFMCommunicate OK [11:30:26]requested_item fd.num is exist - process it [11:30:26]SAM_PROTO_GetFieldsCounters [11:30:26]wFMCommunicate request_size=4 [11:30:26]MH_SAM_APDU [11:30:26]CAPDU: 80 13 00 00 [11:30:26]Write to MH i2c: E2 08 00 DC 72 80 13 00 00 00 00 00 00 CA [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:26]Read from MH i2c: E2 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 62 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 62 00 DC 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B7 01 00 0E 04 04 00 88 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 F7 [11:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B7 01 00 0E 04 04 00 88 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 [11:30:26]wFMCommunicate OK [11:30:26]SAM_PROTO_GetFieldsCounters done [11:30:26]requested_item shift.num is exist - process it [11:30:26]requested_item shift.opened is exist - process it [11:30:26]req_shift_opened [11:30:26]FM_GetShiftState [11:30:26]SAM_PROTO_GetShiftState [11:30:26]wFMCommunicate request_size=4 [11:30:26]MH_SAM_APDU [11:30:26]CAPDU: 80 13 01 00 [11:30:26]Write to MH i2c: E2 08 00 DD 72 80 13 01 00 00 00 00 00 CC [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:26]Read from MH i2c: E2 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 0E 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 0E 00 DD 72 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EA [11:30:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:30:26]wFMCommunicate OK [11:30:26]SAM_PROTO_GetShiftState done [11:30:26]FM_GetShiftState done [11:30:26]req_shift_opened done [11:30:26]requested_item shift.open_date is exist - process it [11:30:26]req_shift_open_date [11:30:26]req_shift_open_date done [11:30:26]produce_requested_data done [11:30:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112446,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:30:26]process_action_free close_receipt [11:30:26]json_value_free [11:30:26]json_value_free done [11:30:26]process_json_proto returns [11:30:26]Send response to host [11:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112446,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:30:26]free response buf [11:30:26]execute_script done [11:30:26]execute_script returns [11:30:26]free content buf [11:30:26]Sock 9.Close socket [11:30:26]Sock 9.Thread stoped [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:45]accept exits with 7 [11:38:45]New connection [11:38:45]New thread 3066813796 created [11:38:45]Thread 3066957156 joined [11:38:45]Waiting for new connection... [11:38:45] Sock 7.Parse request [11:38:45]Sock 7.Check first char [11:38:45]Sock 7.First char is OK [11:38:45]request: POST /json_proto HTTP/1.0 [11:38:45]Method: POST [11:38:45]URL: /json_proto [11:38:45]Method is POST - this is cgi request [11:38:45]url: /json_proto [11:38:45]query_string will be loaded in cgi processing [11:38:45]execute_cgi json_proto POST (null) [11:38:45]execute_cgi path=json_proto method=POST [11:38:45]POST find Content-Length [11:38:45]Host: 172.17.59.68:8080 [11:38:45]Content-Length: 682 [11:38:45]Content-Type: application/json [11:38:45] [11:38:45]POST finish read [11:38:45]Found Content-Length = 682 [11:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:45]execute_script... [11:38: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)321126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:45]POST & json_proto [11:38:45]process_json_proto [11:38:45]json parsed OK: [11:38:45]protocol is kg_v1.0 [11:38:45]action value=close_receipt [11:38:45]process_action close_receipt [11:38:45]cmd_close_receipt [11:38:45]MH_GetDate [11:38:45]Write to MH i2c: F0 00 00 DE 72 3F [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: F0 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: F0 09 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: F0 09 00 DE 72 00 7C 09 78 66 BC EC 60 65 18 [11:38:45]GetLastDocTimeStamp 1719142277 [11:38:45]current date 1719142780 [11:38:45]FM_GetShiftState [11:38:45]SAM_PROTO_GetShiftState [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 13 01 00 [11:38:45]Write to MH i2c: E2 08 00 DF 72 80 13 01 00 00 00 00 00 CE [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0E 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0E 00 DF 72 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EC [11:38:45]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_GetShiftState done [11:38:45]FM_GetShiftState done [11:38:45]opened in 1719106490 [11:38:45]opened+sec_in_day 1719192890 [11:38:45]quantity*price = 100064 [11:38:45]sum+1 = 100066 [11:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 48 23.06.2024 11:39 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112447 ФПД: 145579287040874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T113940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112447&fm=145579287040874&tin=02508201610067®Number=0000000000092771&sum=100000 [11:38:46]StoreToDocumentArchive [11:38:46]shift 392 fd 112447 [11:38:46]save to /storage/0392/doc_00112447 [11:38:46]save last doc name /storage/0392/doc_00112447 to /storage/kkm_last_doc_name [11:38:46]save OK [11:38:46]Clear old archive folders... [11:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:46]tlvbuf is 011D1550 [11:38:46]SAM_PROTO_ClearQueue [11:38:46]wFMCommunicate request_size=4 [11:38:46]MH_SAM_APDU [11:38:46]CAPDU: 80 09 00 00 [11:38:46]Write to MH i2c: E2 08 00 EC 72 80 09 00 00 00 00 00 00 D0 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:46]Read from MH i2c: E2 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: E2 03 00 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: E2 03 00 EC 72 00 90 00 D2 [11:38:46]RAPDU: 90 00 [11:38:46]wFMCommunicate OK [11:38:46]SAM_PROTO_ClearQueue done [11:38:46]KKMCreateOFDPacket [11:38:46]OFDProtocolAddRootSTLVToBuf [11:38:46]FM_MakeSignedData [11:38:46]FM_MakeSignedData [11:38:46]SAM_PROTO_SignData [11:38:46]wFMCommunicate request_size=4 [11:38:46]MH_SAM_APDU [11:38:46]CAPDU: 80 0D 01 02 [11:38:46]Write to MH i2c: E2 08 00 ED 72 80 0D 01 02 00 00 00 00 D8 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:46]Read from MH i2c: E2 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: E2 03 00 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: E2 03 00 ED 72 00 90 00 D3 [11:38:46]RAPDU: 90 00 [11:38:46]wFMCommunicate OK [11:38:46]wFMCommunicate request_size=255 [11:38:46]MH_SAM_APDU [11:38:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7C 09 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B7 01 00 35 04 06 00 84 [11:38:46]Write to MH i2c: E2 02 01 EE 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7C 09 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B7 01 00 35 04 06 00 84 00 00 73 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 03 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 03 00 EE 72 00 90 00 D4 [11:38:47]RAPDU: 90 00 [11:38:47]wFMCommunicate OK [11:38:47]wFMCommunicate request_size=10 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 0D 02 02 05 67 51 B0 D3 6A [11:38:47]Write to MH i2c: E2 0D 00 EF 72 80 0D 02 02 05 00 67 51 B0 D3 6A 00 00 8A [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 03 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 03 00 EF 72 00 90 00 D5 [11:38:47]RAPDU: 90 00 [11:38:47]wFMCommunicate OK [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 0D 03 02 [11:38:47]Write to MH i2c: E2 08 00 F0 72 80 0D 03 02 00 00 00 00 DD [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 0B 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 0B 00 F0 72 00 67 54 0E D3 7B 02 45 B9 90 00 F5 [11:38:47]RAPDU: 67 54 0E D3 7B 02 45 B9 90 00 [11:38:47]wFMCommunicate OK [11:38:47]SAM_PROTO_SignData done [11:38:47]FM_MakeSignedData done [11:38:47]CreateOFDProtocolMessage [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 11 00 00 [11:38:47]Write to MH i2c: E2 08 00 F1 72 80 11 00 00 00 00 00 00 DD [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 17 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 17 00 F1 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [11:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:47]wFMCommunicate OK [11:38:47]CreateOFDProtocolMessage done [11:38:47]OFDSenderStorePacket 112447 [11:38:47]StoreOFDPacket docnum=112447 [11:38:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 52 8B 07 01 84 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7C 09 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B7 01 00 35 04 06 00 84 67 51 B0 D3 6A 67 54 0E D3 7B 02 45 B9 [11:38:47]CheckFolder [11:38:47]dirname=/storage/ofd_packets [11:38:47]CheckFolder done [11:38:47]ProducePacketName [11:38:47]name=ofd_packets/00112447 [11:38:47]NVStorageSaveData ofd_packets/00112447 [11:38:47]File name is /storage/ofd_packets/00112447 [11:38:47]Write 301 bytes [11:38:47]NVStorageSaveData done [11:38:47]OFDSenderStorePacket done [11:38:47]KKMCreateOFDPacket done [11:38:47]NVStorageSaveData kkm_last_timestamp [11:38:47]File name is /storage/kkm_last_timestamp [11:38:47]Write 4 bytes [11:38:47]NVStorageSaveData done [11:38:47]ExternCall_PrintAddStr [11:38:47]wPrintStart [11:38:47]Write to MH i2c: 01 00 00 F2 72 64 [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: 01 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: 01 07 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: 01 07 00 F2 72 00 00 00 00 00 FF 0F 79 [11:38:47]RasterBufferAndPrint [11:38:47]line Счет N : (1)321126 [11:38:47]line ИНН: 02508201610067 [11:38:47]line Контрольно-Кассовый Чек [11:38:47]line ПРОДАЖА [11:38:47]line ТРК (МРК, ГНК) : 11 [11:38:47]line Товар: 2710124130 [11:38:47]line Аи-92-К-5 [11:38:47]line 15.070 * 66.40 [11:38:47]line = 1000.65 [11:38:47]line НДС 12% НСП 1% [11:38:47]line > о реализуемом товаре [11:38:47]line ОКРУГЛЕНИЕ: -0.65 [11:38:47]line ИТОГО: 1000.00 [11:38:47]line Внесено: 1000.00 [11:38:47]line СДАЧА: 0.00 [11:38:47]line НСП 1% : 8.85 [11:38:47]line НДС 12% : 106.26 [11:38:47]line Наличными: 1000.00 [11:38:47]line Безнал.: 0.00 [11:38:47]line Место: АЗС № 65 "Партнер Нефть" [11:38:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:38:47]line СНО: Общий режим [11:38:47]line Чек 48 23.06.2024 11:39 [11:38:47]line Смена: 392 ФФД: 1.0 [11:38:47]line ЗНМ: 0300000198 [11:38:47]line РНМ: 0000000000092771 [11:38:47]line Версия ККМ: 001 [11:38:47]line ФМ: 0000000000875083 [11:38:47]line ФД: 112447 [11:38:47]line ФПД: 145579287040874 [11:38:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T113940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112447&fm=145579287040874&tin=02508201610067®Number=0000000000092771&sum=100000 [11:38:47]OFD Sender: Processing packet 112447 [packets to send 38, broken 37] [11:38:47]ProducePacketName [11:38:47]name=ofd_packets/00112447 [11:38:47]OFD Sender: To server: pG, [11:38:47]CommunicateWithHost lk.salyk.kg:30040 [11:38:47]ConnectInit lk.salyk.kg [11:38:47]written 0, free lines is 4095 [11:38:47]Connected sock=10 [11:38:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 52 8B 07 01 84 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7C 09 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B7 01 00 35 04 06 00 84 67 51 B0 D3 6A 67 54 0E D3 7B 02 45 B9 [11:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F0 D3 47 00 E4 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 38 37 35 30 38 33 10 04 04 00 3F B7 01 00 F4 03 04 00 6B A0 77 66 B6 04 01 00 00 C7 BF 8B 25 5B B4 77 6C [11:38:47]CommunicateWithHost err = 0 [11:38:47]CheckOFDResponse [11:38:47]1017 (14) - 77093643461234 [11:38:47]1041 (16) - 0000000000875083 [11:38:47]1040 (4) - 112447 [11:38:47]1012 (4) - 23.06.2024 04:11 [11:38:47]1206 (1) - 0 [11:38:47]OFD Sender: Remove packet 112447 [11:38:47]ProducePacketName [11:38:47]name=ofd_packets/00112447 [11:38:47]NVStorageDeleteData [11:38:48]Write to MH i2c: 01 00 00 1D 73 90 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: 01 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: 01 07 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: 01 07 00 1D 73 00 00 00 00 00 D0 0C 73 [11:38:48]RasterBufferAndPrint [11:38:48]line [11:38:48]line [11:38:48]line [11:38:48]line [11:38:48]line [11:38:48]written 0, free lines is 3287 [11:38:48]MH_Cut [11:38:48]Write to MH i2c: D1 01 00 24 73 01 69 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: D1 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: D1 01 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: D1 01 00 24 73 00 68 [11:38:48]Write to MH i2c: 01 00 00 25 73 98 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]OFD Sender: No OFD packet to send [11:38:48]*** Cut start [11:38:48]*** Partial cut [11:38:48]*** CUTSNS_PIN = 1 [11:38:48]*** CUTSNS_PIN = 0 [11:38:49]*** Brake cut motor [11:38:49]Read from MH i2c: 01 [11:38:49]MH_I2C_Read... [11:38:49]*** Stop cut motor [11:38:49]*** Cut end [11:38:49]Read from MH i2c: 01 07 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: 01 07 00 25 73 00 00 00 00 00 FF 0F AD [11:38:49]process_action close_receipt done [11:38:49]requested_data is exist [11:38:49]produce_requested_data [11:38:49]requested_item fm.sn is exist - process it [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 11 00 00 [11:38:49]Write to MH i2c: E2 08 00 26 73 80 11 00 00 00 00 00 00 13 [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 17 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 17 00 26 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [11:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:49]wFMCommunicate OK [11:38:49]requested_item fd.num is exist - process it [11:38:49]SAM_PROTO_GetFieldsCounters [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 13 00 00 [11:38:49]Write to MH i2c: E2 08 00 27 73 80 13 00 00 00 00 00 00 16 [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 62 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 62 00 27 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B7 01 00 0E 04 04 00 88 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 47 [11:38:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B7 01 00 0E 04 04 00 88 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 [11:38:49]wFMCommunicate OK [11:38:49]SAM_PROTO_GetFieldsCounters done [11:38:49]requested_item shift.num is exist - process it [11:38:49]requested_item shift.opened is exist - process it [11:38:49]req_shift_opened [11:38:49]FM_GetShiftState [11:38:49]SAM_PROTO_GetShiftState [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 13 01 00 [11:38:49]Write to MH i2c: E2 08 00 28 73 80 13 01 00 00 00 00 00 18 [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 0E 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 0E 00 28 73 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 36 [11:38:49]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:38:49]wFMCommunicate OK [11:38:49]SAM_PROTO_GetShiftState done [11:38:49]FM_GetShiftState done [11:38:49]req_shift_opened done [11:38:49]requested_item shift.open_date is exist - process it [11:38:49]req_shift_open_date [11:38:49]req_shift_open_date done [11:38:49]produce_requested_data done [11:38:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112447,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:38:49]process_action_free close_receipt [11:38:49]json_value_free [11:38:49]json_value_free done [11:38:49]process_json_proto returns [11:38:49]Send response to host [11:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112447,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:38:49]free response buf [11:38:49]execute_script done [11:38:49]execute_script returns [11:38:49]free content buf [11:38:49]Sock 7.Close socket [11:38:49]Sock 7.Thread stoped [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:01]accept exits with 9 [11:40:01]New connection [11:40:01]New thread 3066957156 created [11:40:01]Thread 3066813796 joined [11:40:01]Waiting for new connection... [11:40:01] Sock 9.Parse request [11:40:01]Sock 9.Check first char [11:40:01]Sock 9.First char is OK [11:40:01]request: POST /json_proto HTTP/1.0 [11:40:01]Method: POST [11:40:01]URL: /json_proto [11:40:01]Method is POST - this is cgi request [11:40:01]url: /json_proto [11:40:01]query_string will be loaded in cgi processing [11:40:01]execute_cgi json_proto POST (null) [11:40:01]execute_cgi path=json_proto method=POST [11:40:01]POST find Content-Length [11:40:01]Host: 172.17.59.68:8080 [11:40:01]Content-Length: 677 [11:40:01]Content-Type: application/json [11:40:01] [11:40:01]POST finish read [11:40:01]Found Content-Length = 677 [11:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.170, "sum" : 476.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 664.00, "total" : 476.00, "payments": [ { "type": 0, "sum" : 476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:01]execute_script... [11:40:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.170, "sum" : 476.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 664.00, "total" : 476.00, "payments": [ { "type": 0, "sum" : 476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:01]POST & json_proto [11:40:01]process_json_proto [11:40:01]json parsed OK: [11:40:01]protocol is kg_v1.0 [11:40:01]action value=close_receipt [11:40:01]process_action close_receipt [11:40:01]cmd_close_receipt [11:40:01]MH_GetDate [11:40:01]Write to MH i2c: F0 00 00 29 73 8B [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: F0 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: F0 09 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: F0 09 00 29 73 00 C8 09 78 66 BC EC 60 65 B0 [11:40:01]GetLastDocTimeStamp 1719142780 [11:40:01]current date 1719142856 [11:40:01]FM_GetShiftState [11:40:01]SAM_PROTO_GetShiftState [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 13 01 00 [11:40:01]Write to MH i2c: E2 08 00 2A 73 80 13 01 00 00 00 00 00 1A [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 2A 73 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 38 [11:40:01]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetShiftState done [11:40:01]FM_GetShiftState done [11:40:01]opened in 1719106490 [11:40:01]opened+sec_in_day 1719192890 [11:40:01]quantity*price = 47608 [11:40:01]sum+1 = 47610 [11:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 476.00 Внесено: 664.00 СДАЧА: 188.00 НСП 1% : 4.21 НДС 12% : 50.56 Наличными: 476.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 49 23.06.2024 11:40 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112448 ФПД: 249371616769139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114057&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112448&fm=249371616769139&tin=02508201610067®Number=0000000000092771&sum=47600 [11:40:03]StoreToDocumentArchive [11:40:03]shift 392 fd 112448 [11:40:03]save to /storage/0392/doc_00112448 [11:40:03]save last doc name /storage/0392/doc_00112448 to /storage/kkm_last_doc_name [11:40:03]save OK [11:40:03]Clear old archive folders... [11:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:03]tlvbuf is 0111A390 [11:40:03]SAM_PROTO_ClearQueue [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 09 00 00 [11:40:03]Write to MH i2c: E2 08 00 37 73 80 09 00 00 00 00 00 00 1C [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 37 73 00 90 00 1E [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]SAM_PROTO_ClearQueue done [11:40:03]KKMCreateOFDPacket [11:40:03]OFDProtocolAddRootSTLVToBuf [11:40:03]FM_MakeSignedData [11:40:03]FM_MakeSignedData [11:40:03]SAM_PROTO_SignData [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 01 02 [11:40:03]Write to MH i2c: E2 08 00 38 73 80 0D 01 02 00 00 00 00 24 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 38 73 00 90 00 1F [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=255 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F9 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 13 00 00 00 00 07 04 06 00 F0 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C9 09 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B7 01 00 35 04 06 00 E2 [11:40:03]Write to MH i2c: E2 02 01 39 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F9 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 13 00 00 00 00 07 04 06 00 F0 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C9 09 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B7 01 00 35 04 06 00 E2 00 00 16 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 39 73 00 90 00 20 [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=10 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 02 02 05 CD 5A A2 74 73 [11:40:03]Write to MH i2c: E2 0D 00 3A 73 80 0D 02 02 05 00 CD 5A A2 74 73 00 00 E1 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]OFD Sender: No OFD packet to send [11:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 3A 73 00 90 00 21 [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 03 02 [11:40:03]Write to MH i2c: E2 08 00 3B 73 80 0D 03 02 00 00 00 00 29 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 0B 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 0B 00 3B 73 00 FE 27 3B 69 A3 14 44 1A 90 00 08 [11:40:03]RAPDU: FE 27 3B 69 A3 14 44 1A 90 00 [11:40:03]wFMCommunicate OK [11:40:03]SAM_PROTO_SignData done [11:40:03]FM_MakeSignedData done [11:40:03]CreateOFDProtocolMessage [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 11 00 00 [11:40:03]Write to MH i2c: E2 08 00 3C 73 80 11 00 00 00 00 00 00 29 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 17 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 17 00 3C 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [11:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:40:03]wFMCommunicate OK [11:40:03]CreateOFDProtocolMessage done [11:40:03]OFDSenderStorePacket 112448 [11:40:03]StoreOFDPacket docnum=112448 [11:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 CD 07 01 35 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 35 FF 03 08 00 03 02 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F9 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 13 00 00 00 00 07 04 06 00 F0 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C9 09 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B7 01 00 35 04 06 00 E2 CD 5A A2 74 73 FE 27 3B 69 A3 14 44 1A [11:40:03]CheckFolder [11:40:03]dirname=/storage/ofd_packets [11:40:03]CheckFolder done [11:40:03]ProducePacketName [11:40:03]name=ofd_packets/00112448 [11:40:03]NVStorageSaveData ofd_packets/00112448 [11:40:03]File name is /storage/ofd_packets/00112448 [11:40:03]Write 301 bytes [11:40:03]NVStorageSaveData done [11:40:03]OFDSenderStorePacket done [11:40:03]KKMCreateOFDPacket done [11:40:03]NVStorageSaveData kkm_last_timestamp [11:40:03]File name is /storage/kkm_last_timestamp [11:40:03]Write 4 bytes [11:40:03]NVStorageSaveData done [11:40:03]ExternCall_PrintAddStr [11:40:03]wPrintStart [11:40:03]Write to MH i2c: 01 00 00 3D 73 B0 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: 01 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: 01 07 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: 01 07 00 3D 73 00 00 00 00 00 FF 0F C5 [11:40:03]RasterBufferAndPrint [11:40:03]line Счет N : (1)321127 [11:40:03]line ИНН: 02508201610067 [11:40:03]line Контрольно-Кассовый Чек [11:40:03]line ПРОДАЖА [11:40:03]line ТРК (МРК, ГНК) : 11 [11:40:03]line Товар: 2710124130 [11:40:03]line Аи-92-К-5 [11:40:03]line 7.170 * 66.40 [11:40:03]line = 476.09 [11:40:03]line НДС 12% НСП 1% [11:40:03]line > о реализуемом товаре [11:40:03]line ОКРУГЛЕНИЕ: -0.09 [11:40:03]line ИТОГО: 476.00 [11:40:03]line Внесено: 664.00 [11:40:03]line СДАЧА: 188.00 [11:40:03]line НСП 1% : 4.21 [11:40:03]line НДС 12% : 50.56 [11:40:03]line Наличными: 476.00 [11:40:03]line Безнал.: 0.00 [11:40:03]line Место: АЗС № 65 "Партнер Нефть" [11:40:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:40:03]line СНО: Общий режим [11:40:03]line Чек 49 23.06.2024 11:40 [11:40:03]line Смена: 392 ФФД: 1.0 [11:40:03]line ЗНМ: 0300000198 [11:40:03]line РНМ: 0000000000092771 [11:40:03]line Версия ККМ: 001 [11:40:03]line ФМ: 0000000000875083 [11:40:03]line ФД: 112448 [11:40:03]line ФПД: 249371616769139 [11:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114057&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112448&fm=249371616769139&tin=02508201610067®Number=0000000000092771&sum=47600 [11:40:03]OFD Sender: Processing packet 112448 [packets to send 38, broken 37] [11:40:03]ProducePacketName [11:40:03]name=ofd_packets/00112448 [11:40:03]OFD Sender: To server: pG, [11:40:03]CommunicateWithHost lk.salyk.kg:30040 [11:40:03]ConnectInit lk.salyk.kg [11:40:03]written 0, free lines is 4095 [11:40:04]Connected sock=10 [11:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 CD 07 01 35 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 35 FF 03 08 00 03 02 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F9 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 13 00 00 00 00 07 04 06 00 F0 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C9 09 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B7 01 00 35 04 06 00 E2 CD 5A A2 74 73 FE 27 3B 69 A3 14 44 1A [11:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EA B2 47 00 24 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B7 01 00 F4 03 04 00 B7 A0 77 66 B6 04 01 00 00 FB 19 26 3F 6E 41 7E 26 [11:40:04]CommunicateWithHost err = 0 [11:40:04]CheckOFDResponse [11:40:04]1017 (14) - 77093643461234 [11:40:04]1041 (16) - 0000000000875083 [11:40:04]1040 (4) - 112448 [11:40:04]1012 (4) - 23.06.2024 04:12 [11:40:04]1206 (1) - 0 [11:40:04]OFD Sender: Remove packet 112448 [11:40:04]ProducePacketName [11:40:04]name=ofd_packets/00112448 [11:40:04]NVStorageDeleteData [11:40:04]Write to MH i2c: 01 00 00 68 73 DB [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 68 73 00 00 00 00 00 CF 0C BD [11:40:04]RasterBufferAndPrint [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]written 0, free lines is 3285 [11:40:04]MH_Cut [11:40:04]Write to MH i2c: D1 01 00 6F 73 01 B4 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 01 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 01 00 6F 73 00 B3 [11:40:04]Write to MH i2c: 01 00 00 70 73 E3 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]OFD Sender: No OFD packet to send [11:40:05]*** Cut start [11:40:05]*** Partial cut [11:40:05]*** CUTSNS_PIN = 1 [11:40:05]*** CUTSNS_PIN = 0 [11:40:05]*** Brake cut motor [11:40:05]Read from MH i2c: 01 [11:40:05]MH_I2C_Read... [11:40:05]*** Stop cut motor [11:40:05]*** Cut end [11:40:05]Read from MH i2c: 01 07 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: 01 07 00 70 73 00 00 00 00 00 FF 0F F8 [11:40:05]process_action close_receipt done [11:40:05]requested_data is exist [11:40:05]produce_requested_data [11:40:05]requested_item fm.sn is exist - process it [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 11 00 00 [11:40:05]Write to MH i2c: E2 08 00 71 73 80 11 00 00 00 00 00 00 5E [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 17 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 17 00 71 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [11:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:40:05]wFMCommunicate OK [11:40:05]requested_item fd.num is exist - process it [11:40:05]SAM_PROTO_GetFieldsCounters [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 13 00 00 [11:40:05]Write to MH i2c: E2 08 00 72 73 80 13 00 00 00 00 00 00 61 [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 62 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 62 00 72 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B7 01 00 0E 04 04 00 88 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 96 [11:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:05]wFMCommunicate OK [11:40:05]SAM_PROTO_GetFieldsCounters done [11:40:05]requested_item shift.num is exist - process it [11:40:05]requested_item shift.opened is exist - process it [11:40:05]req_shift_opened [11:40:05]FM_GetShiftState [11:40:05]SAM_PROTO_GetShiftState [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 13 01 00 [11:40:05]Write to MH i2c: E2 08 00 73 73 80 13 01 00 00 00 00 00 63 [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:05]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 0E 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 0E 00 73 73 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 81 [11:40:06]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:40:06]wFMCommunicate OK [11:40:06]SAM_PROTO_GetShiftState done [11:40:06]FM_GetShiftState done [11:40:06]req_shift_opened done [11:40:06]requested_item shift.open_date is exist - process it [11:40:06]req_shift_open_date [11:40:06]req_shift_open_date done [11:40:06]produce_requested_data done [11:40:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112448,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:40:06]process_action_free close_receipt [11:40:06]json_value_free [11:40:06]json_value_free done [11:40:06]process_json_proto returns [11:40:06]Send response to host [11:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112448,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:40:06]free response buf [11:40:06]execute_script done [11:40:06]execute_script returns [11:40:06]free content buf [11:40:06]Sock 9.Close socket [11:40:06]Sock 9.Thread stoped [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:10]accept exits with 7 [11:41:10]New connection [11:41:10]New thread 3066813796 created [11:41:10]Thread 3066957156 joined [11:41:10]Waiting for new connection... [11:41:10] Sock 7.Parse request [11:41:10]Sock 7.Check first char [11:41:10]Sock 7.First char is OK [11:41:10]request: POST /json_proto HTTP/1.0 [11:41:10]Method: POST [11:41:10]URL: /json_proto [11:41:10]Method is POST - this is cgi request [11:41:10]url: /json_proto [11:41:10]query_string will be loaded in cgi processing [11:41:10]execute_cgi json_proto POST (null) [11:41:10]execute_cgi path=json_proto method=POST [11:41:10]POST find Content-Length [11:41:10]Host: 172.17.59.68:8080 [11:41:10]Content-Length: 677 [11:41:10]Content-Type: application/json [11:41:10] [11:41:10]POST finish read [11:41:10]Found Content-Length = 677 [11:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:41:10]execute_script... [11: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)321128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:41:10]POST & json_proto [11:41:10]process_json_proto [11:41:10]json parsed OK: [11:41:10]protocol is kg_v1.0 [11:41:10]action value=close_receipt [11:41:10]process_action close_receipt [11:41:10]cmd_close_receipt [11:41:10]MH_GetDate [11:41:10]Write to MH i2c: F0 00 00 74 73 D6 [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: F0 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: F0 09 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: F0 09 00 74 73 00 0D 0A 78 66 BC EC 60 65 41 [11:41:10]GetLastDocTimeStamp 1719142857 [11:41:10]current date 1719142925 [11:41:10]FM_GetShiftState [11:41:10]SAM_PROTO_GetShiftState [11:41:10]wFMCommunicate request_size=4 [11:41:10]MH_SAM_APDU [11:41:10]CAPDU: 80 13 01 00 [11:41:10]Write to MH i2c: E2 08 00 75 73 80 13 01 00 00 00 00 00 65 [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:10]Read from MH i2c: E2 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 0E 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 0E 00 75 73 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 83 [11:41:10]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:41:10]wFMCommunicate OK [11:41:10]SAM_PROTO_GetShiftState done [11:41:10]FM_GetShiftState done [11:41:10]opened in 1719106490 [11:41:10]opened+sec_in_day 1719192890 [11:41:10]quantity*price = 50065 [11:41:10]sum+1 = 50067 [11:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 50 23.06.2024 11:42 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112449 ФПД: 147703107555273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114205&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112449&fm=147703107555273&tin=02508201610067®Number=0000000000092771&sum=50000 [11:41:11]StoreToDocumentArchive [11:41:11]shift 392 fd 112449 [11:41:11]save to /storage/0392/doc_00112449 [11:41:11]save last doc name /storage/0392/doc_00112449 to /storage/kkm_last_doc_name [11:41:11]save OK [11:41:11]Clear old archive folders... [11:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:11]tlvbuf is 011F6E10 [11:41:11]SAM_PROTO_ClearQueue [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 09 00 00 [11:41:11]Write to MH i2c: E2 08 00 82 73 80 09 00 00 00 00 00 00 67 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 03 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 03 00 82 73 00 90 00 69 [11:41:11]RAPDU: 90 00 [11:41:11]wFMCommunicate OK [11:41:11]SAM_PROTO_ClearQueue done [11:41:11]KKMCreateOFDPacket [11:41:11]OFDProtocolAddRootSTLVToBuf [11:41:11]FM_MakeSignedData [11:41:11]FM_MakeSignedData [11:41:11]SAM_PROTO_SignData [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 0D 01 02 [11:41:11]Write to MH i2c: E2 08 00 83 73 80 0D 01 02 00 00 00 00 6F [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 03 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 03 00 83 73 00 90 00 6A [11:41:11]RAPDU: 90 00 [11:41:11]wFMCommunicate OK [11:41:11]wFMCommunicate request_size=255 [11:41:11]MH_SAM_APDU [11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 32 00 00 00 F4 03 04 00 0D 0A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B7 01 00 35 04 06 00 86 [11:41:11]Write to MH i2c: E2 02 01 84 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 32 00 00 00 F4 03 04 00 0D 0A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B7 01 00 35 04 06 00 86 00 00 52 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 03 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 03 00 84 73 00 90 00 6B [11:41:11]RAPDU: 90 00 [11:41:11]wFMCommunicate OK [11:41:11]wFMCommunicate request_size=10 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 0D 02 02 05 55 CF 42 0F C9 [11:41:11]Write to MH i2c: E2 0D 00 85 73 80 0D 02 02 05 00 55 CF 42 0F C9 00 00 BA [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 03 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 03 00 85 73 00 90 00 6C [11:41:11]RAPDU: 90 00 [11:41:11]wFMCommunicate OK [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 0D 03 02 [11:41:11]Write to MH i2c: E2 08 00 86 73 80 0D 03 02 00 00 00 00 74 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 0B 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 0B 00 86 73 00 71 9C 83 30 D8 A4 D8 BA 90 00 43 [11:41:11]RAPDU: 71 9C 83 30 D8 A4 D8 BA 90 00 [11:41:11]wFMCommunicate OK [11:41:11]SAM_PROTO_SignData done [11:41:11]FM_MakeSignedData done [11:41:11]CreateOFDProtocolMessage [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 11 00 00 [11:41:11]Write to MH i2c: E2 08 00 87 73 80 11 00 00 00 00 00 00 74 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 17 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 17 00 87 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [11:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:41:11]wFMCommunicate OK [11:41:11]CreateOFDProtocolMessage done [11:41:11]OFDSenderStorePacket 112449 [11:41:11]StoreOFDPacket docnum=112449 [11:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9E 27 07 01 06 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 32 00 00 00 F4 03 04 00 0D 0A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B7 01 00 35 04 06 00 86 55 CF 42 0F C9 71 9C 83 30 D8 A4 D8 BA [11:41:11]CheckFolder [11:41:11]dirname=/storage/ofd_packets [11:41:11]CheckFolder done [11:41:11]ProducePacketName [11:41:11]name=ofd_packets/00112449 [11:41:11]NVStorageSaveData ofd_packets/00112449 [11:41:11]File name is /storage/ofd_packets/00112449 [11:41:11]Write 301 bytes [11:41:11]NVStorageSaveData done [11:41:11]OFDSenderStorePacket done [11:41:11]KKMCreateOFDPacket done [11:41:11]NVStorageSaveData kkm_last_timestamp [11:41:11]File name is /storage/kkm_last_timestamp [11:41:11]Write 4 bytes [11:41:11]NVStorageSaveData done [11:41:11]ExternCall_PrintAddStr [11:41:11]wPrintStart [11:41:11]Write to MH i2c: 01 00 00 88 73 FB [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: 01 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: 01 07 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: 01 07 00 88 73 00 00 00 00 00 FF 0F 10 [11:41:11]RasterBufferAndPrint [11:41:11]line Счет N : (1)321128 [11:41:11]line ИНН: 02508201610067 [11:41:11]line Контрольно-Кассовый Чек [11:41:11]line ПРОДАЖА [11:41:11]line ТРК (МРК, ГНК) : 11 [11:41:11]line Товар: 2710124130 [11:41:11]line Аи-92-К-5 [11:41:11]line 7.540 * 66.40 [11:41:11]line = 500.66 [11:41:11]line НДС 12% НСП 1% [11:41:11]line > о реализуемом товаре [11:41:11]line ОКРУГЛЕНИЕ: -0.66 [11:41:11]line ИТОГО: 500.00 [11:41:11]line Внесено: 500.00 [11:41:11]line СДАЧА: 0.00 [11:41:11]line НСП 1% : 4.43 [11:41:11]line НДС 12% : 53.17 [11:41:11]line Наличными: 500.00 [11:41:11]line Безнал.: 0.00 [11:41:11]line Место: АЗС № 65 "Партнер Нефть" [11:41:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:41:11]line СНО: Общий режим [11:41:11]line Чек 50 23.06.2024 11:42 [11:41:11]line Смена: 392 ФФД: 1.0 [11:41:11]line ЗНМ: 0300000198 [11:41:11]line РНМ: 0000000000092771 [11:41:11]line Версия ККМ: 001 [11:41:11]line ФМ: 0000000000875083 [11:41:11]line ФД: 112449 [11:41:11]line ФПД: 147703107555273 [11:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114205&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112449&fm=147703107555273&tin=02508201610067®Number=0000000000092771&sum=50000 [11:41:12]OFD Sender: Processing packet 112449 [packets to send 38, broken 37] [11:41:12]ProducePacketName [11:41:12]name=ofd_packets/00112449 [11:41:12]OFD Sender: To server: pG, [11:41:12]CommunicateWithHost lk.salyk.kg:30040 [11:41:12]ConnectInit lk.salyk.kg [11:41:12]written 0, free lines is 4095 [11:41:12]Connected sock=10 [11:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9E 27 07 01 06 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 32 00 00 00 F4 03 04 00 0D 0A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B7 01 00 35 04 06 00 86 55 CF 42 0F C9 71 9C 83 30 D8 A4 D8 BA [11:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F8 33 47 00 02 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B7 01 00 F4 03 04 00 FB A0 77 66 B6 04 01 00 00 B9 3A 48 20 A9 02 AC AB [11:41:12]CommunicateWithHost err = 0 [11:41:12]CheckOFDResponse [11:41:12]1017 (14) - 77093643461234 [11:41:12]1041 (16) - 0000000000875083 [11:41:12]1040 (4) - 112449 [11:41:12]1012 (4) - 23.06.2024 04:13 [11:41:12]1206 (1) - 0 [11:41:12]OFD Sender: Remove packet 112449 [11:41:12]ProducePacketName [11:41:12]name=ofd_packets/00112449 [11:41:12]NVStorageDeleteData [11:41:12]Write to MH i2c: 01 00 00 B3 73 26 [11:41:12]Write i2c OK [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: 01 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: 01 07 00 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: 01 07 00 B3 73 00 00 00 00 00 D0 0C 09 [11:41:12]RasterBufferAndPrint [11:41:12]line [11:41:12]line [11:41:12]line [11:41:12]line [11:41:12]line [11:41:12]written 0, free lines is 3288 [11:41:12]MH_Cut [11:41:12]Write to MH i2c: D1 01 00 BA 73 01 FF [11:41:12]Write i2c OK [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: D1 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: D1 01 00 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: D1 01 00 BA 73 00 FE [11:41:12]Write to MH i2c: 01 00 00 BB 73 2E [11:41:12]Write i2c OK [11:41:12]MH_I2C_Read... [11:41:13]OFD Sender: No OFD packet to send [11:41:13]*** Cut start [11:41:13]*** Partial cut [11:41:13]*** CUTSNS_PIN = 1 [11:41:13]*** CUTSNS_PIN = 0 [11:41:13]*** Brake cut motor [11:41:14]Read from MH i2c: 01 [11:41:14]MH_I2C_Read... [11:41:14]*** Stop cut motor [11:41:14]*** Cut end [11:41:14]Read from MH i2c: 01 07 00 [11:41:14]MH_I2C_Read... [11:41:14]Read from MH i2c: 01 07 00 BB 73 00 00 00 00 00 FF 0F 43 [11:41:14]process_action close_receipt done [11:41:14]requested_data is exist [11:41:14]produce_requested_data [11:41:14]requested_item fm.sn is exist - process it [11:41:14]wFMCommunicate request_size=4 [11:41:14]MH_SAM_APDU [11:41:14]CAPDU: 80 11 00 00 [11:41:14]Write to MH i2c: E2 08 00 BC 73 80 11 00 00 00 00 00 00 A9 [11:41:14]Write i2c OK [11:41:14]MH_I2C_Read... [11:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:14]Read from MH i2c: E2 [11:41:14]MH_I2C_Read... [11:41:14]Read from MH i2c: E2 17 00 [11:41:14]MH_I2C_Read... [11:41:14]Read from MH i2c: E2 17 00 BC 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [11:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:41:14]wFMCommunicate OK [11:41:14]requested_item fd.num is exist - process it [11:41:14]SAM_PROTO_GetFieldsCounters [11:41:14]wFMCommunicate request_size=4 [11:41:14]MH_SAM_APDU [11:41:14]CAPDU: 80 13 00 00 [11:41:14]Write to MH i2c: E2 08 00 BD 73 80 13 00 00 00 00 00 00 AC [11:41:14]Write i2c OK [11:41:14]MH_I2C_Read... [11:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:14]Read from MH i2c: E2 [11:41:14]MH_I2C_Read... [11:41:14]Read from MH i2c: E2 62 00 [11:41:14]MH_I2C_Read... [11:41:14]Read from MH i2c: E2 62 00 BD 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B7 01 00 0E 04 04 00 88 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 E5 [11:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:14]wFMCommunicate OK [11:41:14]SAM_PROTO_GetFieldsCounters done [11:41:14]requested_item shift.num is exist - process it [11:41:14]requested_item shift.opened is exist - process it [11:41:14]req_shift_opened [11:41:14]FM_GetShiftState [11:41:14]SAM_PROTO_GetShiftState [11:41:14]wFMCommunicate request_size=4 [11:41:14]MH_SAM_APDU [11:41:14]CAPDU: 80 13 01 00 [11:41:14]Write to MH i2c: E2 08 00 BE 73 80 13 01 00 00 00 00 00 AE [11:41:14]Write i2c OK [11:41:14]MH_I2C_Read... [11:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:14]Read from MH i2c: E2 [11:41:14]MH_I2C_Read... [11:41:14]Read from MH i2c: E2 0E 00 [11:41:14]MH_I2C_Read... [11:41:14]Read from MH i2c: E2 0E 00 BE 73 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CC [11:41:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:41:14]wFMCommunicate OK [11:41:14]SAM_PROTO_GetShiftState done [11:41:14]FM_GetShiftState done [11:41:14]req_shift_opened done [11:41:14]requested_item shift.open_date is exist - process it [11:41:14]req_shift_open_date [11:41:14]req_shift_open_date done [11:41:14]produce_requested_data done [11:41:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112449,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:41:14]process_action_free close_receipt [11:41:14]json_value_free [11:41:14]json_value_free done [11:41:14]process_json_proto returns [11:41:14]Send response to host [11:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112449,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:41:14]free response buf [11:41:14]execute_script done [11:41:14]execute_script returns [11:41:14]free content buf [11:41:14]Sock 7.Close socket [11:41:14]Sock 7.Thread stoped [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:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:08]accept exits with 9 [11:42:08]New connection [11:42:08]New thread 3066957156 created [11:42:08]Thread 3066813796 joined [11:42:08]Waiting for new connection... [11:42:08] Sock 9.Parse request [11:42:08]Sock 9.Check first char [11:42:08]Sock 9.First char is OK [11:42:08]request: POST /json_proto HTTP/1.0 [11:42:08]Method: POST [11:42:08]URL: /json_proto [11:42:08]Method is POST - this is cgi request [11:42:08]url: /json_proto [11:42:08]query_string will be loaded in cgi processing [11:42:08]execute_cgi json_proto POST (null) [11:42:08]execute_cgi path=json_proto method=POST [11:42:08]POST find Content-Length [11:42:08]Host: 172.17.59.68:8080 [11:42:08]Content-Length: 682 [11:42:08]Content-Type: application/json [11:42:08] [11:42:08]POST finish read [11:42:08]Found Content-Length = 682 [11:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:08]execute_script... [11:42:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:08]POST & json_proto [11:42:08]process_json_proto [11:42:08]json parsed OK: [11:42:08]protocol is kg_v1.0 [11:42:08]action value=close_receipt [11:42:08]process_action close_receipt [11:42:08]cmd_close_receipt [11:42:08]MH_GetDate [11:42:08]Write to MH i2c: F0 00 00 BF 73 21 [11:42:08]Write i2c OK [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: F0 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: F0 09 00 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: F0 09 00 BF 73 00 47 0A 78 66 BC EC 60 65 C6 [11:42:08]GetLastDocTimeStamp 1719142925 [11:42:08]current date 1719142983 [11:42:08]FM_GetShiftState [11:42:08]SAM_PROTO_GetShiftState [11:42:08]wFMCommunicate request_size=4 [11:42:08]MH_SAM_APDU [11:42:08]CAPDU: 80 13 01 00 [11:42:08]Write to MH i2c: E2 08 00 C0 73 80 13 01 00 00 00 00 00 B0 [11:42:08]Write i2c OK [11:42:08]MH_I2C_Read... [11:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:08]Read from MH i2c: E2 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 0E 00 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 0E 00 C0 73 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CE [11:42:08]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:42:08]wFMCommunicate OK [11:42:08]SAM_PROTO_GetShiftState done [11:42:08]FM_GetShiftState done [11:42:08]opened in 1719106490 [11:42:08]opened+sec_in_day 1719192890 [11:42:08]quantity*price = 100064 [11:42:08]sum+1 = 100066 [11:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 51 23.06.2024 11:43 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112450 ФПД: 210573511892798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114303&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112450&fm=210573511892798&tin=02508201610067®Number=0000000000092771&sum=100000 [11:42:09]StoreToDocumentArchive [11:42:09]shift 392 fd 112450 [11:42:09]save to /storage/0392/doc_00112450 [11:42:09]save last doc name /storage/0392/doc_00112450 to /storage/kkm_last_doc_name [11:42:09]save OK [11:42:09]Clear old archive folders... [11:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:09]tlvbuf is 013AB580 [11:42:09]SAM_PROTO_ClearQueue [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 09 00 00 [11:42:09]Write to MH i2c: E2 08 00 CD 73 80 09 00 00 00 00 00 00 B2 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 CD 73 00 90 00 B4 [11:42:09]RAPDU: 90 00 [11:42:09]wFMCommunicate OK [11:42:09]SAM_PROTO_ClearQueue done [11:42:09]KKMCreateOFDPacket [11:42:09]OFDProtocolAddRootSTLVToBuf [11:42:09]FM_MakeSignedData [11:42:09]FM_MakeSignedData [11:42:09]SAM_PROTO_SignData [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 0D 01 02 [11:42:09]Write to MH i2c: E2 08 00 CE 73 80 0D 01 02 00 00 00 00 BA [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 CE 73 00 90 00 B5 [11:42:09]RAPDU: 90 00 [11:42:09]wFMCommunicate OK [11:42:09]wFMCommunicate request_size=255 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 47 0A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B7 01 00 35 04 06 00 BF [11:42:09]Write to MH i2c: E2 02 01 CF 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 47 0A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B7 01 00 35 04 06 00 BF 00 00 62 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 CF 73 00 90 00 B6 [11:42:09]RAPDU: 90 00 [11:42:09]wFMCommunicate OK [11:42:09]wFMCommunicate request_size=10 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 0D 02 02 05 83 F7 60 1F 3E [11:42:09]Write to MH i2c: E2 0D 00 D0 73 80 0D 02 02 05 00 83 F7 60 1F 3E 00 00 FE [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 D0 73 00 90 00 B7 [11:42:09]RAPDU: 90 00 [11:42:09]wFMCommunicate OK [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 0D 03 02 [11:42:09]Write to MH i2c: E2 08 00 D1 73 80 0D 03 02 00 00 00 00 BF [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0B 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0B 00 D1 73 00 6C 3B FA 8A 80 41 40 B9 90 00 A5 [11:42:09]RAPDU: 6C 3B FA 8A 80 41 40 B9 90 00 [11:42:09]wFMCommunicate OK [11:42:09]SAM_PROTO_SignData done [11:42:09]FM_MakeSignedData done [11:42:09]CreateOFDProtocolMessage [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 11 00 00 [11:42:09]Write to MH i2c: E2 08 00 D2 73 80 11 00 00 00 00 00 00 BF [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 17 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 17 00 D2 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [11:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:42:09]wFMCommunicate OK [11:42:09]CreateOFDProtocolMessage done [11:42:09]OFDSenderStorePacket 112450 [11:42:09]StoreOFDPacket docnum=112450 [11:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C 3F 07 01 60 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 47 0A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B7 01 00 35 04 06 00 BF 83 F7 60 1F 3E 6C 3B FA 8A 80 41 40 B9 [11:42:09]CheckFolder [11:42:09]dirname=/storage/ofd_packets [11:42:09]CheckFolder done [11:42:09]ProducePacketName [11:42:09]name=ofd_packets/00112450 [11:42:09]NVStorageSaveData ofd_packets/00112450 [11:42:09]File name is /storage/ofd_packets/00112450 [11:42:09]Write 301 bytes [11:42:09]NVStorageSaveData done [11:42:09]OFDSenderStorePacket done [11:42:09]KKMCreateOFDPacket done [11:42:09]NVStorageSaveData kkm_last_timestamp [11:42:09]File name is /storage/kkm_last_timestamp [11:42:09]Write 4 bytes [11:42:09]NVStorageSaveData done [11:42:09]ExternCall_PrintAddStr [11:42:09]wPrintStart [11:42:09]Write to MH i2c: 01 00 00 D3 73 46 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 07 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 07 00 D3 73 00 00 00 00 00 FF 0F 5B [11:42:09]RasterBufferAndPrint [11:42:09]line Счет N : (1)321129 [11:42:09]line ИНН: 02508201610067 [11:42:09]line Контрольно-Кассовый Чек [11:42:09]line ПРОДАЖА [11:42:09]line ТРК (МРК, ГНК) : 11 [11:42:09]line Товар: 2710124130 [11:42:09]line Аи-92-К-5 [11:42:09]line 15.070 * 66.40 [11:42:09]line = 1000.65 [11:42:09]line НДС 12% НСП 1% [11:42:09]line > о реализуемом товаре [11:42:09]line ОКРУГЛЕНИЕ: -0.65 [11:42:09]line ИТОГО: 1000.00 [11:42:09]line Внесено: 1000.00 [11:42:09]line СДАЧА: 0.00 [11:42:09]line НСП 1% : 8.85 [11:42:09]line НДС 12% : 106.26 [11:42:09]line Наличными: 1000.00 [11:42:09]line Безнал.: 0.00 [11:42:09]line Место: АЗС № 65 "Партнер Нефть" [11:42:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:42:09]line СНО: Общий режим [11:42:09]line Чек 51 23.06.2024 11:43 [11:42:10]line Смена: 392 ФФД: 1.0 [11:42:10]line ЗНМ: 0300000198 [11:42:10]line РНМ: 0000000000092771 [11:42:10]line Версия ККМ: 001 [11:42:10]line ФМ: 0000000000875083 [11:42:10]line ФД: 112450 [11:42:10]line ФПД: 210573511892798 [11:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114303&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112450&fm=210573511892798&tin=02508201610067®Number=0000000000092771&sum=100000 [11:42:10]OFD Sender: Processing packet 112450 [packets to send 38, broken 37] [11:42:10]ProducePacketName [11:42:10]name=ofd_packets/00112450 [11:42:10]OFD Sender: To server: pG, [11:42:10]CommunicateWithHost lk.salyk.kg:30040 [11:42:10]ConnectInit lk.salyk.kg [11:42:10]written 0, free lines is 4095 [11:42:10]Connected sock=10 [11:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C 3F 07 01 60 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 47 0A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B7 01 00 35 04 06 00 BF 83 F7 60 1F 3E 6C 3B FA 8A 80 41 40 B9 [11:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B0 8D 47 00 BE 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B7 01 00 F4 03 04 00 35 A1 77 66 B6 04 01 00 00 0F 7A 34 BF 6A 7C D0 60 [11:42:10]CommunicateWithHost err = 0 [11:42:10]CheckOFDResponse [11:42:10]1017 (14) - 77093643461234 [11:42:10]1041 (16) - 0000000000875083 [11:42:10]1040 (4) - 112450 [11:42:10]1012 (4) - 23.06.2024 04:14 [11:42:10]1206 (1) - 0 [11:42:10]OFD Sender: Remove packet 112450 [11:42:10]ProducePacketName [11:42:10]name=ofd_packets/00112450 [11:42:10]NVStorageDeleteData [11:42:10]Write to MH i2c: 01 00 00 FE 73 71 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 FE 73 00 00 00 00 00 C8 0C 4C [11:42:10]RasterBufferAndPrint [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]written 0, free lines is 3278 [11:42:10]MH_Cut [11:42:10]Write to MH i2c: D1 01 00 05 74 01 4B [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 01 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 01 00 05 74 00 4A [11:42:10]Write to MH i2c: 01 00 00 06 74 7A [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]OFD Sender: No OFD packet to send [11:42:11]*** Cut start [11:42:11]*** Partial cut [11:42:11]*** CUTSNS_PIN = 1 [11:42:11]*** CUTSNS_PIN = 0 [11:42:11]*** Brake cut motor [11:42:11]Read from MH i2c: 01 [11:42:11]MH_I2C_Read... [11:42:11]*** Stop cut motor [11:42:11]*** Cut end [11:42:11]Read from MH i2c: 01 07 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 06 74 00 00 00 00 00 FF 0F 8F [11:42:11]process_action close_receipt done [11:42:11]requested_data is exist [11:42:11]produce_requested_data [11:42:11]requested_item fm.sn is exist - process it [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 11 00 00 [11:42:11]Write to MH i2c: E2 08 00 07 74 80 11 00 00 00 00 00 00 F5 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 17 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 17 00 07 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [11:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:42:12]wFMCommunicate OK [11:42:12]requested_item fd.num is exist - process it [11:42:12]SAM_PROTO_GetFieldsCounters [11:42:12]wFMCommunicate request_size=4 [11:42:12]MH_SAM_APDU [11:42:12]CAPDU: 80 13 00 00 [11:42:12]Write to MH i2c: E2 08 00 08 74 80 13 00 00 00 00 00 00 F8 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 62 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 62 00 08 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B7 01 00 0E 04 04 00 88 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 35 [11:42:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:12]wFMCommunicate OK [11:42:12]SAM_PROTO_GetFieldsCounters done [11:42:12]requested_item shift.num is exist - process it [11:42:12]requested_item shift.opened is exist - process it [11:42:12]req_shift_opened [11:42:12]FM_GetShiftState [11:42:12]SAM_PROTO_GetShiftState [11:42:12]wFMCommunicate request_size=4 [11:42:12]MH_SAM_APDU [11:42:12]CAPDU: 80 13 01 00 [11:42:12]Write to MH i2c: E2 08 00 09 74 80 13 01 00 00 00 00 00 FA [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 0E 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 0E 00 09 74 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 18 [11:42:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:42:12]wFMCommunicate OK [11:42:12]SAM_PROTO_GetShiftState done [11:42:12]FM_GetShiftState done [11:42:12]req_shift_opened done [11:42:12]requested_item shift.open_date is exist - process it [11:42:12]req_shift_open_date [11:42:12]req_shift_open_date done [11:42:12]produce_requested_data done [11:42:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112450,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:42:12]process_action_free close_receipt [11:42:12]json_value_free [11:42:12]json_value_free done [11:42:12]process_json_proto returns [11:42:12]Send response to host [11:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112450,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:42:12]free response buf [11:42:12]execute_script done [11:42:12]execute_script returns [11:42:12]free content buf [11:42:12]Sock 9.Close socket [11:42:12]Sock 9.Thread stoped [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]int [11:42:30]Write to MH i2c: 01 00 00 0A 74 7E [11:42:30]*** FLAG_PRN_PAP1 set [11:42:30]Write i2c OK [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: 01 [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: 01 07 00 [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: 01 07 00 0A 74 00 01 00 00 00 FF 0F 94 [11:42:30]state=0 [11:42:30]No paper [11:42:30]int [11:42:30]Write to MH i2c: 01 00 00 0B 74 7F [11:42:30]*** FLAG_PRN_PAP2 set [11:42:30]Write i2c OK [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: 01 [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: 01 07 00 [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: 01 07 00 0B 74 00 03 00 00 00 FF 0F 97 [11:42:30]state=0 [11:42:30]No paper [11:42:30]Cover opened [11:42:30]OFD Sender: No OFD packet to send [11:42:32]int [11:42:32]Write to MH i2c: 01 00 00 0C 74 80 [11:42:32]*** FLAG_PRN_PAP2 reset [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 0C 74 00 01 00 00 00 FF 0F 96 [11:42:32]state=3 [11:42:32]No paper [11:42:32]Cover closed [11:42:32]int [11:42:32]Write to MH i2c: 01 00 00 0D 74 81 [11:42:32]*** FLAG_PRN_PAP2 set [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 0D 74 00 03 00 00 00 FF 0F 99 [11:42:32]state=0 [11:42:32]No paper [11:42:32]Cover opened [11:42:35]OFD Sender: No OFD packet to send [11:42:37]Write to MH i2c: 01 00 00 0E 74 82 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 0E 74 00 03 00 00 00 FF 0F 9A [11:42:37]state=3 [11:42:37]No paper [11:42:37]Cover opened [11:42:38]int [11:42:38]Write to MH i2c: 01 00 00 0F 74 83 [11:42:38]*** FLAG_PRN_PAP2 reset [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 07 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 07 00 0F 74 00 01 00 00 00 FF 0F 99 [11:42:38]state=3 [11:42:38]No paper [11:42:38]Cover closed [11:42:38]int [11:42:38]Write to MH i2c: 01 00 00 10 74 84 [11:42:38]*** FLAG_PRN_PAP1 reset [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 07 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 07 00 10 74 00 00 00 00 00 FF 0F 99 [11:42:38]state=0 [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [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:31]accept exits with 7 [11:45:31]New connection [11:45:31]New thread 3066813796 created [11:45:31]Thread 3066957156 joined [11:45:31]Waiting for new connection... [11:45:31] Sock 7.Parse request [11:45:31]Sock 7.Check first char [11:45:31]Sock 7.First char is OK [11:45:31]request: POST /json_proto HTTP/1.0 [11:45:31]Method: POST [11:45:31]URL: /json_proto [11:45:31]Method is POST - this is cgi request [11:45:31]url: /json_proto [11:45:31]query_string will be loaded in cgi processing [11:45:31]execute_cgi json_proto POST (null) [11:45:31]execute_cgi path=json_proto method=POST [11:45:31]POST find Content-Length [11:45:31]Host: 172.17.59.68:8080 [11:45:31]Content-Length: 677 [11:45:31]Content-Type: application/json [11:45:31] [11:45:31]POST finish read [11:45:31]Found Content-Length = 677 [11:45:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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:45:31]execute_script... [11:45: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)321130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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:45:31]POST & json_proto [11:45:31]process_json_proto [11:45:31]json parsed OK: [11:45:31]protocol is kg_v1.0 [11:45:31]action value=close_receipt [11:45:31]process_action close_receipt [11:45:31]cmd_close_receipt [11:45:31]MH_GetDate [11:45:31]Write to MH i2c: F0 00 00 11 74 74 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: F0 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: F0 09 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: F0 09 00 11 74 00 12 0B 78 66 BC EC 60 65 E5 [11:45:31]GetLastDocTimeStamp 1719142983 [11:45:31]current date 1719143186 [11:45:31]FM_GetShiftState [11:45:31]SAM_PROTO_GetShiftState [11:45:31]wFMCommunicate request_size=4 [11:45:31]MH_SAM_APDU [11:45:31]CAPDU: 80 13 01 00 [11:45:31]Write to MH i2c: E2 08 00 12 74 80 13 01 00 00 00 00 00 03 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:31]Read from MH i2c: E2 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 0E 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 0E 00 12 74 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 21 [11:45:31]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:45:31]wFMCommunicate OK [11:45:31]SAM_PROTO_GetShiftState done [11:45:31]FM_GetShiftState done [11:45:31]opened in 1719106490 [11:45:31]opened+sec_in_day 1719192890 [11:45:31]quantity*price = 25032 [11:45:31]sum+1 = 25034 [11:45:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 52 23.06.2024 11:46 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112451 ФПД: 158606172670300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114626&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112451&fm=158606172670300&tin=02508201610067®Number=0000000000092771&sum=25000 [11:45:32]StoreToDocumentArchive [11:45:32]shift 392 fd 112451 [11:45:32]save to /storage/0392/doc_00112451 [11:45:32]save last doc name /storage/0392/doc_00112451 to /storage/kkm_last_doc_name [11:45:32]save OK [11:45:32]Clear old archive folders... [11:45:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:32]tlvbuf is 0119A9E0 [11:45:32]SAM_PROTO_ClearQueue [11:45:32]wFMCommunicate request_size=4 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 09 00 00 [11:45:32]Write to MH i2c: E2 08 00 1F 74 80 09 00 00 00 00 00 00 05 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 1F 74 00 90 00 07 [11:45:32]RAPDU: 90 00 [11:45:32]wFMCommunicate OK [11:45:32]SAM_PROTO_ClearQueue done [11:45:32]KKMCreateOFDPacket [11:45:32]OFDProtocolAddRootSTLVToBuf [11:45:32]FM_MakeSignedData [11:45:32]FM_MakeSignedData [11:45:32]SAM_PROTO_SignData [11:45:32]wFMCommunicate request_size=4 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 0D 01 02 [11:45:32]Write to MH i2c: E2 08 00 20 74 80 0D 01 02 00 00 00 00 0D [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 20 74 00 90 00 08 [11:45:32]RAPDU: 90 00 [11:45:32]wFMCommunicate OK [11:45:32]wFMCommunicate request_size=255 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 34 00 00 00 F4 03 04 00 12 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B7 01 00 35 04 06 00 90 [11:45:32]Write to MH i2c: E2 02 01 21 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 34 00 00 00 F4 03 04 00 12 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B7 01 00 35 04 06 00 90 00 00 B0 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 21 74 00 90 00 09 [11:45:32]RAPDU: 90 00 [11:45:32]wFMCommunicate OK [11:45:32]wFMCommunicate request_size=10 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 0D 02 02 05 40 60 94 C9 5C [11:45:32]Write to MH i2c: E2 0D 00 22 74 80 0D 02 02 05 00 40 60 94 C9 5C 00 00 73 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:33]Read from MH i2c: E2 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 03 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 03 00 22 74 00 90 00 0A [11:45:33]RAPDU: 90 00 [11:45:33]wFMCommunicate OK [11:45:33]wFMCommunicate request_size=4 [11:45:33]MH_SAM_APDU [11:45:33]CAPDU: 80 0D 03 02 [11:45:33]Write to MH i2c: E2 08 00 23 74 80 0D 03 02 00 00 00 00 12 [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:33]Read from MH i2c: E2 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 0B 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 0B 00 23 74 00 9E 1B 22 AA 85 F8 33 19 90 00 61 [11:45:33]RAPDU: 9E 1B 22 AA 85 F8 33 19 90 00 [11:45:33]wFMCommunicate OK [11:45:33]SAM_PROTO_SignData done [11:45:33]FM_MakeSignedData done [11:45:33]CreateOFDProtocolMessage [11:45:33]wFMCommunicate request_size=4 [11:45:33]MH_SAM_APDU [11:45:33]CAPDU: 80 11 00 00 [11:45:33]Write to MH i2c: E2 08 00 24 74 80 11 00 00 00 00 00 00 12 [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:33]Read from MH i2c: E2 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 17 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 17 00 24 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 64 [11:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:45:33]wFMCommunicate OK [11:45:33]CreateOFDProtocolMessage done [11:45:33]OFDSenderStorePacket 112451 [11:45:33]StoreOFDPacket docnum=112451 [11:45:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD AA 07 01 17 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 34 00 00 00 F4 03 04 00 12 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B7 01 00 35 04 06 00 90 40 60 94 C9 5C 9E 1B 22 AA 85 F8 33 19 [11:45:33]CheckFolder [11:45:33]dirname=/storage/ofd_packets [11:45:33]CheckFolder done [11:45:33]ProducePacketName [11:45:33]name=ofd_packets/00112451 [11:45:33]NVStorageSaveData ofd_packets/00112451 [11:45:33]File name is /storage/ofd_packets/00112451 [11:45:33]Write 301 bytes [11:45:33]NVStorageSaveData done [11:45:33]OFDSenderStorePacket done [11:45:33]KKMCreateOFDPacket done [11:45:33]NVStorageSaveData kkm_last_timestamp [11:45:33]File name is /storage/kkm_last_timestamp [11:45:33]Write 4 bytes [11:45:33]NVStorageSaveData done [11:45:33]ExternCall_PrintAddStr [11:45:33]wPrintStart [11:45:33]Write to MH i2c: 01 00 00 25 74 99 [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: 01 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: 01 07 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: 01 07 00 25 74 00 00 00 00 00 FF 0F AE [11:45:33]RasterBufferAndPrint [11:45:33]line Счет N : (1)321130 [11:45:33]line ИНН: 02508201610067 [11:45:33]line Контрольно-Кассовый Чек [11:45:33]line ПРОДАЖА [11:45:33]line ТРК (МРК, ГНК) : 11 [11:45:33]line Товар: 2710124130 [11:45:33]line Аи-92-К-5 [11:45:33]line 3.770 * 66.40 [11:45:33]line = 250.33 [11:45:33]line НДС 12% НСП 1% [11:45:33]line > о реализуемом товаре [11:45:33]line ОКРУГЛЕНИЕ: -0.33 [11:45:33]line ИТОГО: 250.00 [11:45:33]line Внесено: 250.00 [11:45:33]line СДАЧА: 0.00 [11:45:33]line НСП 1% : 2.21 [11:45:33]line НДС 12% : 26.58 [11:45:33]line Наличными: 250.00 [11:45:33]line Безнал.: 0.00 [11:45:33]line Место: АЗС № 65 "Партнер Нефть" [11:45:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:45:33]line СНО: Общий режим [11:45:33]line Чек 52 23.06.2024 11:46 [11:45:33]line Смена: 392 ФФД: 1.0 [11:45:33]line ЗНМ: 0300000198 [11:45:33]line РНМ: 0000000000092771 [11:45:33]line Версия ККМ: 001 [11:45:33]line ФМ: 0000000000875083 [11:45:33]line ФД: 112451 [11:45:33]line ФПД: 158606172670300 [11:45:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114626&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112451&fm=158606172670300&tin=02508201610067®Number=0000000000092771&sum=25000 [11:45:33]OFD Sender: Processing packet 112451 [packets to send 38, broken 37] [11:45:33]ProducePacketName [11:45:33]name=ofd_packets/00112451 [11:45:33]OFD Sender: To server: pG, [11:45:33]CommunicateWithHost lk.salyk.kg:30040 [11:45:33]ConnectInit lk.salyk.kg [11:45:33]written 0, free lines is 4095 [11:45:33]Connected sock=10 [11:45:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD AA 07 01 17 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 34 00 00 00 F4 03 04 00 12 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B7 01 00 35 04 06 00 90 40 60 94 C9 5C 9E 1B 22 AA 85 F8 33 19 [11:45:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 28 47 00 65 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B7 01 00 F4 03 04 00 00 A2 77 66 B6 04 01 00 00 FB 76 B4 45 0E B5 DB 23 [11:45:33]CommunicateWithHost err = 0 [11:45:33]CheckOFDResponse [11:45:33]1017 (14) - 77093643461234 [11:45:33]1041 (16) - 0000000000875083 [11:45:33]1040 (4) - 112451 [11:45:33]1012 (4) - 23.06.2024 04:18 [11:45:33]1206 (1) - 0 [11:45:33]OFD Sender: Remove packet 112451 [11:45:33]ProducePacketName [11:45:33]name=ofd_packets/00112451 [11:45:33]NVStorageDeleteData [11:45:33]Write to MH i2c: 01 00 00 50 74 C4 [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: 01 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: 01 07 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: 01 07 00 50 74 00 00 00 00 00 CD 0C A4 [11:45:33]RasterBufferAndPrint [11:45:33]line [11:45:33]line [11:45:33]line [11:45:33]line [11:45:33]line [11:45:33]written 0, free lines is 3283 [11:45:33]MH_Cut [11:45:33]Write to MH i2c: D1 01 00 57 74 01 9D [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: D1 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: D1 01 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: D1 01 00 57 74 00 9C [11:45:33]Write to MH i2c: 01 00 00 58 74 CC [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:34]OFD Sender: No OFD packet to send [11:45:34]*** Cut start [11:45:34]*** Partial cut [11:45:34]*** CUTSNS_PIN = 1 [11:45:34]*** CUTSNS_PIN = 0 [11:45:34]*** Brake cut motor [11:45:35]Read from MH i2c: 01 [11:45:35]MH_I2C_Read... [11:45:35]*** Stop cut motor [11:45:35]*** Cut end [11:45:35]Read from MH i2c: 01 07 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 58 74 00 00 00 00 00 FF 0F E1 [11:45:35]process_action close_receipt done [11:45:35]requested_data is exist [11:45:35]produce_requested_data [11:45:35]requested_item fm.sn is exist - process it [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 11 00 00 [11:45:35]Write to MH i2c: E2 08 00 59 74 80 11 00 00 00 00 00 00 47 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 17 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 17 00 59 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [11:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:45:35]wFMCommunicate OK [11:45:35]requested_item fd.num is exist - process it [11:45:35]SAM_PROTO_GetFieldsCounters [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 13 00 00 [11:45:35]Write to MH i2c: E2 08 00 5A 74 80 13 00 00 00 00 00 00 4A [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 62 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 62 00 5A 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B7 01 00 0E 04 04 00 88 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 8B [11:45:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:35]wFMCommunicate OK [11:45:35]SAM_PROTO_GetFieldsCounters done [11:45:35]requested_item shift.num is exist - process it [11:45:35]requested_item shift.opened is exist - process it [11:45:35]req_shift_opened [11:45:35]FM_GetShiftState [11:45:35]SAM_PROTO_GetShiftState [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 13 01 00 [11:45:35]Write to MH i2c: E2 08 00 5B 74 80 13 01 00 00 00 00 00 4C [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 0E 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 0E 00 5B 74 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 6A [11:45:35]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:45:35]wFMCommunicate OK [11:45:35]SAM_PROTO_GetShiftState done [11:45:35]FM_GetShiftState done [11:45:35]req_shift_opened done [11:45:35]requested_item shift.open_date is exist - process it [11:45:35]req_shift_open_date [11:45:35]req_shift_open_date done [11:45:35]produce_requested_data done [11:45:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112451,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:45:35]process_action_free close_receipt [11:45:35]json_value_free [11:45:35]json_value_free done [11:45:35]process_json_proto returns [11:45:35]Send response to host [11:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112451,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:45:35]free response buf [11:45:35]execute_script done [11:45:35]execute_script returns [11:45:35]free content buf [11:45:35]Sock 7.Close socket [11:45:35]Sock 7.Thread stoped [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47: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:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:35]accept exits with 9 [11:48:35]New connection [11:48:35]New thread 3066957156 created [11:48:35]Thread 3066813796 joined [11:48:35]Waiting for new connection... [11:48:35] Sock 9.Parse request [11:48:35]Sock 9.Check first char [11:48:35]Sock 9.First char is OK [11:48:35]request: POST /json_proto HTTP/1.0 [11:48:35]Method: POST [11:48:35]URL: /json_proto [11:48:35]Method is POST - this is cgi request [11:48:35]url: /json_proto [11:48:35]query_string will be loaded in cgi processing [11:48:35]execute_cgi json_proto POST (null) [11:48:35]execute_cgi path=json_proto method=POST [11:48:35]POST find Content-Length [11:48:35]Host: 172.17.59.68:8080 [11:48:35]Content-Length: 677 [11:48:35]Content-Type: application/json [11:48:35] [11:48:35]POST finish read [11:48:35]Found Content-Length = 677 [11:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:35]execute_script... [11:48:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:35]POST & json_proto [11:48:35]process_json_proto [11:48:35]json parsed OK: [11:48:35]protocol is kg_v1.0 [11:48:35]action value=close_receipt [11:48:35]process_action close_receipt [11:48:35]cmd_close_receipt [11:48:35]MH_GetDate [11:48:35]Write to MH i2c: F0 00 00 5C 74 BF [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: F0 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: F0 09 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: F0 09 00 5C 74 00 CA 0B 78 66 BC EC 60 65 E8 [11:48:35]GetLastDocTimeStamp 1719143186 [11:48:35]current date 1719143370 [11:48:35]FM_GetShiftState [11:48:35]SAM_PROTO_GetShiftState [11:48:35]wFMCommunicate request_size=4 [11:48:35]MH_SAM_APDU [11:48:35]CAPDU: 80 13 01 00 [11:48:35]Write to MH i2c: E2 08 00 5D 74 80 13 01 00 00 00 00 00 4E [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 0E 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 0E 00 5D 74 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 6C [11:48:35]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:48:35]wFMCommunicate OK [11:48:35]SAM_PROTO_GetShiftState done [11:48:35]FM_GetShiftState done [11:48:35]opened in 1719106490 [11:48:35]opened+sec_in_day 1719192890 [11:48:35]quantity*price = 30012 [11:48:35]sum+1 = 30014 [11:48:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 53 23.06.2024 11:49 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112452 ФПД: 225595611112455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112452&fm=225595611112455&tin=02508201610067®Number=0000000000092771&sum=30000 [11:48:36]StoreToDocumentArchive [11:48:36]shift 392 fd 112452 [11:48:36]save to /storage/0392/doc_00112452 [11:48:36]save last doc name /storage/0392/doc_00112452 to /storage/kkm_last_doc_name [11:48:36]save OK [11:48:36]Clear old archive folders... [11:48:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:36]tlvbuf is 01333D70 [11:48:36]SAM_PROTO_ClearQueue [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 09 00 00 [11:48:36]Write to MH i2c: E2 08 00 6A 74 80 09 00 00 00 00 00 00 50 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 03 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 03 00 6A 74 00 90 00 52 [11:48:36]RAPDU: 90 00 [11:48:36]wFMCommunicate OK [11:48:36]SAM_PROTO_ClearQueue done [11:48:36]KKMCreateOFDPacket [11:48:36]OFDProtocolAddRootSTLVToBuf [11:48:36]FM_MakeSignedData [11:48:36]FM_MakeSignedData [11:48:36]SAM_PROTO_SignData [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 0D 01 02 [11:48:36]Write to MH i2c: E2 08 00 6B 74 80 0D 01 02 00 00 00 00 58 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 03 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 03 00 6B 74 00 90 00 53 [11:48:36]RAPDU: 90 00 [11:48:36]wFMCommunicate OK [11:48:36]wFMCommunicate request_size=255 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 35 00 00 00 F4 03 04 00 CA 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B7 01 00 35 04 06 00 CD [11:48:36]Write to MH i2c: E2 02 01 6C 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 35 00 00 00 F4 03 04 00 CA 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B7 01 00 35 04 06 00 CD 00 00 E4 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 03 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 03 00 6C 74 00 90 00 54 [11:48:37]RAPDU: 90 00 [11:48:37]wFMCommunicate OK [11:48:37]wFMCommunicate request_size=10 [11:48:37]MH_SAM_APDU [11:48:37]CAPDU: 80 0D 02 02 05 2D 92 43 64 07 [11:48:37]Write to MH i2c: E2 0D 00 6D 74 80 0D 02 02 05 00 2D 92 43 64 07 00 00 D2 [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 03 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 03 00 6D 74 00 90 00 55 [11:48:37]RAPDU: 90 00 [11:48:37]wFMCommunicate OK [11:48:37]wFMCommunicate request_size=4 [11:48:37]MH_SAM_APDU [11:48:37]CAPDU: 80 0D 03 02 [11:48:37]Write to MH i2c: E2 08 00 6E 74 80 0D 03 02 00 00 00 00 5D [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 0B 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 0B 00 6E 74 00 91 E4 9F 1B 2C EC E2 0E 90 00 95 [11:48:37]RAPDU: 91 E4 9F 1B 2C EC E2 0E 90 00 [11:48:37]wFMCommunicate OK [11:48:37]SAM_PROTO_SignData done [11:48:37]FM_MakeSignedData done [11:48:37]CreateOFDProtocolMessage [11:48:37]wFMCommunicate request_size=4 [11:48:37]MH_SAM_APDU [11:48:37]CAPDU: 80 11 00 00 [11:48:37]Write to MH i2c: E2 08 00 6F 74 80 11 00 00 00 00 00 00 5D [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 17 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 17 00 6F 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AF [11:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:48:37]wFMCommunicate OK [11:48:37]CreateOFDProtocolMessage done [11:48:37]OFDSenderStorePacket 112452 [11:48:37]StoreOFDPacket docnum=112452 [11:48:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6D E2 07 01 F9 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 35 00 00 00 F4 03 04 00 CA 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B7 01 00 35 04 06 00 CD 2D 92 43 64 07 91 E4 9F 1B 2C EC E2 0E [11:48:37]CheckFolder [11:48:37]dirname=/storage/ofd_packets [11:48:37]CheckFolder done [11:48:37]ProducePacketName [11:48:37]name=ofd_packets/00112452 [11:48:37]NVStorageSaveData ofd_packets/00112452 [11:48:37]File name is /storage/ofd_packets/00112452 [11:48:37]Write 301 bytes [11:48:37]NVStorageSaveData done [11:48:37]OFDSenderStorePacket done [11:48:37]KKMCreateOFDPacket done [11:48:37]NVStorageSaveData kkm_last_timestamp [11:48:37]File name is /storage/kkm_last_timestamp [11:48:37]Write 4 bytes [11:48:37]NVStorageSaveData done [11:48:37]ExternCall_PrintAddStr [11:48:37]wPrintStart [11:48:37]Write to MH i2c: 01 00 00 70 74 E4 [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: 01 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: 01 07 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: 01 07 00 70 74 00 00 00 00 00 FF 0F F9 [11:48:37]RasterBufferAndPrint [11:48:37]line Счет N : (1)321131 [11:48:37]line ИНН: 02508201610067 [11:48:37]line Контрольно-Кассовый Чек [11:48:37]line ПРОДАЖА [11:48:37]line ТРК (МРК, ГНК) : 11 [11:48:37]line Товар: 2710124130 [11:48:37]line Аи-92-К-5 [11:48:37]line 4.520 * 66.40 [11:48:37]line = 300.13 [11:48:37]line НДС 12% НСП 1% [11:48:37]line > о реализуемом товаре [11:48:37]line ОКРУГЛЕНИЕ: -0.13 [11:48:37]line ИТОГО: 300.00 [11:48:37]line Внесено: 300.00 [11:48:37]line СДАЧА: 0.00 [11:48:37]line НСП 1% : 2.66 [11:48:37]line НДС 12% : 31.87 [11:48:37]line Наличными: 300.00 [11:48:37]line Безнал.: 0.00 [11:48:37]line Место: АЗС № 65 "Партнер Нефть" [11:48:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:48:37]line СНО: Общий режим [11:48:37]line Чек 53 23.06.2024 11:49 [11:48:37]line Смена: 392 ФФД: 1.0 [11:48:37]line ЗНМ: 0300000198 [11:48:37]line РНМ: 0000000000092771 [11:48:37]line Версия ККМ: 001 [11:48:37]line ФМ: 0000000000875083 [11:48:37]line ФД: 112452 [11:48:37]line ФПД: 225595611112455 [11:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T114930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112452&fm=225595611112455&tin=02508201610067®Number=0000000000092771&sum=30000 [11:48:37]OFD Sender: Processing packet 112452 [packets to send 38, broken 37] [11:48:37]ProducePacketName [11:48:37]name=ofd_packets/00112452 [11:48:37]OFD Sender: To server: pG, [11:48:37]CommunicateWithHost lk.salyk.kg:30040 [11:48:37]ConnectInit lk.salyk.kg [11:48:37]written 0, free lines is 4095 [11:48:37]Connected sock=10 [11:48:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6D E2 07 01 F9 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 35 00 00 00 F4 03 04 00 CA 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B7 01 00 35 04 06 00 CD 2D 92 43 64 07 91 E4 9F 1B 2C EC E2 0E [11:48:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 22 6D 47 00 5F 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B7 01 00 F4 03 04 00 B9 A2 77 66 B6 04 01 00 00 BB C8 77 48 7A 0D 90 27 [11:48:37]CommunicateWithHost err = 0 [11:48:37]CheckOFDResponse [11:48:37]1017 (14) - 77093643461234 [11:48:37]1041 (16) - 0000000000875083 [11:48:37]1040 (4) - 112452 [11:48:37]1012 (4) - 23.06.2024 04:21 [11:48:37]1206 (1) - 0 [11:48:37]OFD Sender: Remove packet 112452 [11:48:37]ProducePacketName [11:48:37]name=ofd_packets/00112452 [11:48:37]NVStorageDeleteData [11:48:38]Write to MH i2c: 01 00 00 9B 74 0F [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 07 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 07 00 9B 74 00 00 00 00 00 C6 0C E8 [11:48:38]RasterBufferAndPrint [11:48:38]line [11:48:38]line [11:48:38]line [11:48:38]line [11:48:38]line [11:48:38]written 0, free lines is 3279 [11:48:38]MH_Cut [11:48:38]Write to MH i2c: D1 01 00 A2 74 01 E8 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: D1 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: D1 01 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: D1 01 00 A2 74 00 E7 [11:48:38]Write to MH i2c: 01 00 00 A3 74 17 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]OFD Sender: No OFD packet to send [11:48:38]*** Cut start [11:48:38]*** Partial cut [11:48:38]*** CUTSNS_PIN = 1 [11:48:38]*** CUTSNS_PIN = 0 [11:48:39]*** Brake cut motor [11:48:39]Read from MH i2c: 01 [11:48:39]MH_I2C_Read... [11:48:39]*** Stop cut motor [11:48:39]*** Cut end [11:48:39]Read from MH i2c: 01 07 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: 01 07 00 A3 74 00 00 00 00 00 FF 0F 2C [11:48:39]process_action close_receipt done [11:48:39]requested_data is exist [11:48:39]produce_requested_data [11:48:39]requested_item fm.sn is exist - process it [11:48:39]wFMCommunicate request_size=4 [11:48:39]MH_SAM_APDU [11:48:39]CAPDU: 80 11 00 00 [11:48:39]Write to MH i2c: E2 08 00 A4 74 80 11 00 00 00 00 00 00 92 [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 [11:48:39]MH_I2C_Read... [11:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:39]Read from MH i2c: E2 17 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 17 00 A4 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [11:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:48:39]wFMCommunicate OK [11:48:39]requested_item fd.num is exist - process it [11:48:39]SAM_PROTO_GetFieldsCounters [11:48:39]wFMCommunicate request_size=4 [11:48:39]MH_SAM_APDU [11:48:39]CAPDU: 80 13 00 00 [11:48:39]Write to MH i2c: E2 08 00 A5 74 80 13 00 00 00 00 00 00 95 [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:39]Read from MH i2c: E2 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 62 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 62 00 A5 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B7 01 00 0E 04 04 00 88 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 DA [11:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:39]wFMCommunicate OK [11:48:39]SAM_PROTO_GetFieldsCounters done [11:48:39]requested_item shift.num is exist - process it [11:48:39]requested_item shift.opened is exist - process it [11:48:39]req_shift_opened [11:48:39]FM_GetShiftState [11:48:39]SAM_PROTO_GetShiftState [11:48:39]wFMCommunicate request_size=4 [11:48:39]MH_SAM_APDU [11:48:39]CAPDU: 80 13 01 00 [11:48:39]Write to MH i2c: E2 08 00 A6 74 80 13 01 00 00 00 00 00 97 [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:39]Read from MH i2c: E2 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 0E 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 0E 00 A6 74 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B5 [11:48:39]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:48:39]wFMCommunicate OK [11:48:39]SAM_PROTO_GetShiftState done [11:48:39]FM_GetShiftState done [11:48:39]req_shift_opened done [11:48:39]requested_item shift.open_date is exist - process it [11:48:39]req_shift_open_date [11:48:39]req_shift_open_date done [11:48:39]produce_requested_data done [11:48:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112452,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:48:39]process_action_free close_receipt [11:48:39]json_value_free [11:48:39]json_value_free done [11:48:39]process_json_proto returns [11:48:39]Send response to host [11:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112452,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:48:39]free response buf [11:48:39]execute_script done [11:48:39]execute_script returns [11:48:39]free content buf [11:48:39]Sock 9.Close socket [11:48:39]Sock 9.Thread stoped [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:14]accept exits with 7 [11:49:14]New connection [11:49:14]New thread 3066813796 created [11:49:14]Thread 3066957156 joined [11:49:14]Waiting for new connection... [11:49:14] Sock 7.Parse request [11:49:14]Sock 7.Check first char [11:49:14]Sock 7.First char is OK [11:49:14]request: POST /json_proto HTTP/1.0 [11:49:14]Method: POST [11:49:14]URL: /json_proto [11:49:14]Method is POST - this is cgi request [11:49:14]url: /json_proto [11:49:14]query_string will be loaded in cgi processing [11:49:14]execute_cgi json_proto POST (null) [11:49:14]execute_cgi path=json_proto method=POST [11:49:14]POST find Content-Length [11:49:14]Host: 172.17.59.68:8080 [11:49:14]Content-Length: 677 [11:49:14]Content-Type: application/json [11:49:14] [11:49:14]POST finish read [11:49:14]Found Content-Length = 677 [11:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:49:14]execute_script... [11:49: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)321132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:49:14]POST & json_proto [11:49:14]process_json_proto [11:49:14]json parsed OK: [11:49:14]protocol is kg_v1.0 [11:49:14]action value=close_receipt [11:49:14]process_action close_receipt [11:49:14]cmd_close_receipt [11:49:14]MH_GetDate [11:49:14]Write to MH i2c: F0 00 00 A7 74 0A [11:49:14]Write i2c OK [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: F0 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: F0 09 00 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: F0 09 00 A7 74 00 F1 0B 78 66 BC EC 60 65 5A [11:49:14]GetLastDocTimeStamp 1719143370 [11:49:14]current date 1719143409 [11:49:14]FM_GetShiftState [11:49:14]SAM_PROTO_GetShiftState [11:49:14]wFMCommunicate request_size=4 [11:49:14]MH_SAM_APDU [11:49:14]CAPDU: 80 13 01 00 [11:49:14]Write to MH i2c: E2 08 00 A8 74 80 13 01 00 00 00 00 00 99 [11:49:14]Write i2c OK [11:49:14]MH_I2C_Read... [11:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:14]Read from MH i2c: E2 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: E2 0E 00 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: E2 0E 00 A8 74 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B7 [11:49:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:49:14]wFMCommunicate OK [11:49:14]SAM_PROTO_GetShiftState done [11:49:14]FM_GetShiftState done [11:49:14]opened in 1719106490 [11:49:14]opened+sec_in_day 1719192890 [11:49:14]quantity*price = 20052 [11:49:14]sum+1 = 20054 [11:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 54 23.06.2024 11:50 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112453 ФПД: 217803941347251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T115009&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112453&fm=217803941347251&tin=02508201610067®Number=0000000000092771&sum=20000 [11:49:15]StoreToDocumentArchive [11:49:15]shift 392 fd 112453 [11:49:15]save to /storage/0392/doc_00112453 [11:49:15]save last doc name /storage/0392/doc_00112453 to /storage/kkm_last_doc_name [11:49:15]save OK [11:49:15]Clear old archive folders... [11:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:15]tlvbuf is 013361D0 [11:49:15]SAM_PROTO_ClearQueue [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 09 00 00 [11:49:15]Write to MH i2c: E2 08 00 B5 74 80 09 00 00 00 00 00 00 9B [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 B5 74 00 90 00 9D [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_ClearQueue done [11:49:15]KKMCreateOFDPacket [11:49:15]OFDProtocolAddRootSTLVToBuf [11:49:15]FM_MakeSignedData [11:49:15]FM_MakeSignedData [11:49:15]SAM_PROTO_SignData [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 01 02 [11:49:15]Write to MH i2c: E2 08 00 B6 74 80 0D 01 02 00 00 00 00 A3 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 B6 74 00 90 00 9E [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=255 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 36 00 00 00 F4 03 04 00 F1 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B7 01 00 35 04 06 00 C6 [11:49:15]Write to MH i2c: E2 02 01 B7 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 36 00 00 00 F4 03 04 00 F1 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B7 01 00 35 04 06 00 C6 00 00 72 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 B7 74 00 90 00 9F [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=10 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 02 02 05 17 6E 8D FF B3 [11:49:15]Write to MH i2c: E2 0D 00 B8 74 80 0D 02 02 05 00 17 6E 8D FF B3 00 00 74 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 B8 74 00 90 00 A0 [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 03 02 [11:49:15]Write to MH i2c: E2 08 00 B9 74 80 0D 03 02 00 00 00 00 A8 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0B 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0B 00 B9 74 00 E5 DE AD 1F 7C 30 92 B5 90 00 2B [11:49:15]RAPDU: E5 DE AD 1F 7C 30 92 B5 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_SignData done [11:49:15]FM_MakeSignedData done [11:49:15]CreateOFDProtocolMessage [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 11 00 00 [11:49:15]Write to MH i2c: E2 08 00 BA 74 80 11 00 00 00 00 00 00 A8 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 17 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 17 00 BA 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [11:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:49:15]wFMCommunicate OK [11:49:15]CreateOFDProtocolMessage done [11:49:15]OFDSenderStorePacket 112453 [11:49:15]StoreOFDPacket docnum=112453 [11:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA 62 07 01 38 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 36 00 00 00 F4 03 04 00 F1 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B7 01 00 35 04 06 00 C6 17 6E 8D FF B3 E5 DE AD 1F 7C 30 92 B5 [11:49:15]CheckFolder [11:49:15]dirname=/storage/ofd_packets [11:49:15]CheckFolder done [11:49:15]ProducePacketName [11:49:15]name=ofd_packets/00112453 [11:49:15]NVStorageSaveData ofd_packets/00112453 [11:49:15]File name is /storage/ofd_packets/00112453 [11:49:15]Write 301 bytes [11:49:15]NVStorageSaveData done [11:49:15]OFDSenderStorePacket done [11:49:15]KKMCreateOFDPacket done [11:49:15]NVStorageSaveData kkm_last_timestamp [11:49:15]File name is /storage/kkm_last_timestamp [11:49:15]Write 4 bytes [11:49:15]NVStorageSaveData done [11:49:15]ExternCall_PrintAddStr [11:49:15]wPrintStart [11:49:15]Write to MH i2c: 01 00 00 BB 74 2F [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 07 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 07 00 BB 74 00 00 00 00 00 FF 0F 44 [11:49:15]RasterBufferAndPrint [11:49:15]line Счет N : (1)321132 [11:49:15]line ИНН: 02508201610067 [11:49:15]line Контрольно-Кассовый Чек [11:49:15]line ПРОДАЖА [11:49:15]line ТРК (МРК, ГНК) : 11 [11:49:15]line Товар: 2710124130 [11:49:15]line Аи-92-К-5 [11:49:15]line 3.020 * 66.40 [11:49:15]line = 200.53 [11:49:15]line НДС 12% НСП 1% [11:49:15]line > о реализуемом товаре [11:49:15]line ОКРУГЛЕНИЕ: -0.53 [11:49:15]line ИТОГО: 200.00 [11:49:15]line Внесено: 200.00 [11:49:15]line СДАЧА: 0.00 [11:49:15]line НСП 1% : 1.77 [11:49:15]line НДС 12% : 21.29 [11:49:15]line Наличными: 200.00 [11:49:15]line Безнал.: 0.00 [11:49:15]line Место: АЗС № 65 "Партнер Нефть" [11:49:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:49:15]line СНО: Общий режим [11:49:15]line Чек 54 23.06.2024 11:50 [11:49:15]line Смена: 392 ФФД: 1.0 [11:49:15]line ЗНМ: 0300000198 [11:49:15]line РНМ: 0000000000092771 [11:49:15]line Версия ККМ: 001 [11:49:15]line ФМ: 0000000000875083 [11:49:15]line ФД: 112453 [11:49:15]line ФПД: 217803941347251 [11:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T115009&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112453&fm=217803941347251&tin=02508201610067®Number=0000000000092771&sum=20000 [11:49:16]OFD Sender: Processing packet 112453 [packets to send 38, broken 37] [11:49:16]ProducePacketName [11:49:16]name=ofd_packets/00112453 [11:49:16]OFD Sender: To server: pG, [11:49:16]CommunicateWithHost lk.salyk.kg:30040 [11:49:16]ConnectInit lk.salyk.kg [11:49:16]written 0, free lines is 4095 [11:49:16]Connected sock=10 [11:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA 62 07 01 38 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 36 00 00 00 F4 03 04 00 F1 0B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B7 01 00 35 04 06 00 C6 17 6E 8D FF B3 E5 DE AD 1F 7C 30 92 B5 [11:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6E 5A 47 00 4B EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B7 01 00 F4 03 04 00 DF A2 77 66 B6 04 01 00 00 C8 36 90 AF DC 62 D9 8E [11:49:16]CommunicateWithHost err = 0 [11:49:16]CheckOFDResponse [11:49:16]1017 (14) - 77093643461234 [11:49:16]1041 (16) - 0000000000875083 [11:49:16]1040 (4) - 112453 [11:49:16]1012 (4) - 23.06.2024 04:21 [11:49:16]1206 (1) - 0 [11:49:16]OFD Sender: Remove packet 112453 [11:49:16]ProducePacketName [11:49:16]name=ofd_packets/00112453 [11:49:16]NVStorageDeleteData [11:49:16]Write to MH i2c: 01 00 00 E6 74 5A [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 E6 74 00 00 00 00 00 CA 0C 37 [11:49:16]RasterBufferAndPrint [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]written 0, free lines is 3280 [11:49:16]MH_Cut [11:49:16]Write to MH i2c: D1 01 00 ED 74 01 33 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 01 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 01 00 ED 74 00 32 [11:49:16]Write to MH i2c: 01 00 00 EE 74 62 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]OFD Sender: No OFD packet to send [11:49:17]*** Cut start [11:49:17]*** Partial cut [11:49:17]*** CUTSNS_PIN = 1 [11:49:17]*** CUTSNS_PIN = 0 [11:49:17]*** Brake cut motor [11:49:17]Read from MH i2c: 01 [11:49:18]MH_I2C_Read... [11:49:18]*** Stop cut motor [11:49:18]*** Cut end [11:49:18]Read from MH i2c: 01 07 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: 01 07 00 EE 74 00 00 00 00 00 FF 0F 77 [11:49:18]process_action close_receipt done [11:49:18]requested_data is exist [11:49:18]produce_requested_data [11:49:18]requested_item fm.sn is exist - process it [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 11 00 00 [11:49:18]Write to MH i2c: E2 08 00 EF 74 80 11 00 00 00 00 00 00 DD [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 17 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 17 00 EF 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [11:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:49:18]wFMCommunicate OK [11:49:18]requested_item fd.num is exist - process it [11:49:18]SAM_PROTO_GetFieldsCounters [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 13 00 00 [11:49:18]Write to MH i2c: E2 08 00 F0 74 80 13 00 00 00 00 00 00 E0 [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 62 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 62 00 F0 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B7 01 00 0E 04 04 00 88 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 29 [11:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:18]wFMCommunicate OK [11:49:18]SAM_PROTO_GetFieldsCounters done [11:49:18]requested_item shift.num is exist - process it [11:49:18]requested_item shift.opened is exist - process it [11:49:18]req_shift_opened [11:49:18]FM_GetShiftState [11:49:18]SAM_PROTO_GetShiftState [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 13 01 00 [11:49:18]Write to MH i2c: E2 08 00 F1 74 80 13 01 00 00 00 00 00 E2 [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 0E 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 0E 00 F1 74 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 00 [11:49:18]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:49:18]wFMCommunicate OK [11:49:18]SAM_PROTO_GetShiftState done [11:49:18]FM_GetShiftState done [11:49:18]req_shift_opened done [11:49:18]requested_item shift.open_date is exist - process it [11:49:18]req_shift_open_date [11:49:18]req_shift_open_date done [11:49:18]produce_requested_data done [11:49:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112453,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:49:18]process_action_free close_receipt [11:49:18]json_value_free [11:49:18]json_value_free done [11:49:18]process_json_proto returns [11:49:18]Send response to host [11:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112453,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:49:18]free response buf [11:49:18]execute_script done [11:49:18]execute_script returns [11:49:18]free content buf [11:49:18]Sock 7.Close socket [11:49:18]Sock 7.Thread stoped [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:37]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:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:28]accept exits with 9 [11:51:28]New connection [11:51:28]New thread 3066957156 created [11:51:28]Thread 3066813796 joined [11:51:28]Waiting for new connection... [11:51:28] Sock 9.Parse request [11:51:28]Sock 9.Check first char [11:51:28]Sock 9.First char is OK [11:51:28]request: POST /json_proto HTTP/1.0 [11:51:28]Method: POST [11:51:28]URL: /json_proto [11:51:28]Method is POST - this is cgi request [11:51:28]url: /json_proto [11:51:28]query_string will be loaded in cgi processing [11:51:28]execute_cgi json_proto POST (null) [11:51:28]execute_cgi path=json_proto method=POST [11:51:28]POST find Content-Length [11:51:28]Host: 172.17.59.68:8080 [11:51:28]Content-Length: 678 [11:51:28]Content-Type: application/json [11:51:28] [11:51:28]POST finish read [11:51:28]Found Content-Length = 678 [11:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:51:28]execute_script... [11:51: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)321133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:51:28]POST & json_proto [11:51:28]process_json_proto [11:51:28]json parsed OK: [11:51:28]protocol is kg_v1.0 [11:51:28]action value=close_receipt [11:51:28]process_action close_receipt [11:51:28]cmd_close_receipt [11:51:28]MH_GetDate [11:51:28]Write to MH i2c: F0 00 00 F2 74 55 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: F0 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: F0 09 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: F0 09 00 F2 74 00 78 0C 78 66 BC EC 60 65 2D [11:51:28]GetLastDocTimeStamp 1719143409 [11:51:28]current date 1719143544 [11:51:28]FM_GetShiftState [11:51:28]SAM_PROTO_GetShiftState [11:51:28]wFMCommunicate request_size=4 [11:51:28]MH_SAM_APDU [11:51:28]CAPDU: 80 13 01 00 [11:51:28]Write to MH i2c: E2 08 00 F3 74 80 13 01 00 00 00 00 00 E4 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:28]Read from MH i2c: E2 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: E2 0E 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: E2 0E 00 F3 74 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 02 [11:51:28]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:51:28]wFMCommunicate OK [11:51:28]SAM_PROTO_GetShiftState done [11:51:28]FM_GetShiftState done [11:51:28]opened in 1719106490 [11:51:28]opened+sec_in_day 1719192890 [11:51:28]quantity*price = 70052 [11:51:28]sum+1 = 70053 [11:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 55 23.06.2024 11:52 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112454 ФПД: 279679554616718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T115224&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112454&fm=279679554616718&tin=02508201610067®Number=0000000000092771&sum=70000 [11:51:29]StoreToDocumentArchive [11:51:29]shift 392 fd 112454 [11:51:29]save to /storage/0392/doc_00112454 [11:51:29]save last doc name /storage/0392/doc_00112454 to /storage/kkm_last_doc_name [11:51:29]save OK [11:51:29]Clear old archive folders... [11:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:29]tlvbuf is 0114BFE0 [11:51:29]SAM_PROTO_ClearQueue [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 09 00 00 [11:51:29]Write to MH i2c: E2 08 00 00 75 80 09 00 00 00 00 00 00 E7 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 03 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 03 00 00 75 00 90 00 E9 [11:51:29]RAPDU: 90 00 [11:51:29]wFMCommunicate OK [11:51:29]SAM_PROTO_ClearQueue done [11:51:29]KKMCreateOFDPacket [11:51:29]OFDProtocolAddRootSTLVToBuf [11:51:29]FM_MakeSignedData [11:51:29]FM_MakeSignedData [11:51:29]SAM_PROTO_SignData [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 0D 01 02 [11:51:29]Write to MH i2c: E2 08 00 01 75 80 0D 01 02 00 00 00 00 EF [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:30]Read from MH i2c: E2 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 03 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 03 00 01 75 00 90 00 EA [11:51:30]RAPDU: 90 00 [11:51:30]wFMCommunicate OK [11:51:30]wFMCommunicate request_size=255 [11:51:30]MH_SAM_APDU [11:51:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 37 00 00 00 F4 03 04 00 78 0C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B7 01 00 35 04 06 00 FE [11:51:30]Write to MH i2c: E2 02 01 02 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 37 00 00 00 F4 03 04 00 78 0C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B7 01 00 35 04 06 00 FE 00 00 D3 [11:51:30]Write i2c OK [11:51:30]MH_I2C_Read... [11:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:30]Read from MH i2c: E2 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 03 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 03 00 02 75 00 90 00 EB [11:51:30]RAPDU: 90 00 [11:51:30]wFMCommunicate OK [11:51:30]wFMCommunicate request_size=10 [11:51:30]MH_SAM_APDU [11:51:30]CAPDU: 80 0D 02 02 05 5D F8 80 FD 8E [11:51:30]Write to MH i2c: E2 0D 00 03 75 80 0D 02 02 05 00 5D F8 80 FD 8E 00 00 5C [11:51:30]Write i2c OK [11:51:30]MH_I2C_Read... [11:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:30]Read from MH i2c: E2 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 03 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 03 00 03 75 00 90 00 EC [11:51:30]RAPDU: 90 00 [11:51:30]wFMCommunicate OK [11:51:30]wFMCommunicate request_size=4 [11:51:30]MH_SAM_APDU [11:51:30]CAPDU: 80 0D 03 02 [11:51:30]Write to MH i2c: E2 08 00 04 75 80 0D 03 02 00 00 00 00 F4 [11:51:30]Write i2c OK [11:51:30]MH_I2C_Read... [11:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:30]Read from MH i2c: E2 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 0B 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 0B 00 04 75 00 0E 5C 10 E2 59 17 47 C7 90 00 CF [11:51:30]RAPDU: 0E 5C 10 E2 59 17 47 C7 90 00 [11:51:30]wFMCommunicate OK [11:51:30]SAM_PROTO_SignData done [11:51:30]FM_MakeSignedData done [11:51:30]CreateOFDProtocolMessage [11:51:30]wFMCommunicate request_size=4 [11:51:30]MH_SAM_APDU [11:51:30]CAPDU: 80 11 00 00 [11:51:30]Write to MH i2c: E2 08 00 05 75 80 11 00 00 00 00 00 00 F4 [11:51:30]Write i2c OK [11:51:30]MH_I2C_Read... [11:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:30]Read from MH i2c: E2 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 17 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 17 00 05 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [11:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:51:30]wFMCommunicate OK [11:51:30]CreateOFDProtocolMessage done [11:51:30]OFDSenderStorePacket 112454 [11:51:30]StoreOFDPacket docnum=112454 [11:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 84 07 01 DE 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 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 37 00 00 00 F4 03 04 00 78 0C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B7 01 00 35 04 06 00 FE 5D F8 80 FD 8E 0E 5C 10 E2 59 17 47 C7 [11:51:30]CheckFolder [11:51:30]dirname=/storage/ofd_packets [11:51:30]CheckFolder done [11:51:30]ProducePacketName [11:51:30]name=ofd_packets/00112454 [11:51:30]NVStorageSaveData ofd_packets/00112454 [11:51:30]File name is /storage/ofd_packets/00112454 [11:51:30]Write 301 bytes [11:51:30]NVStorageSaveData done [11:51:30]OFDSenderStorePacket done [11:51:30]KKMCreateOFDPacket done [11:51:30]NVStorageSaveData kkm_last_timestamp [11:51:30]File name is /storage/kkm_last_timestamp [11:51:30]Write 4 bytes [11:51:30]NVStorageSaveData done [11:51:30]ExternCall_PrintAddStr [11:51:30]wPrintStart [11:51:30]Write to MH i2c: 01 00 00 06 75 7B [11:51:30]Write i2c OK [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: 01 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: 01 07 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: 01 07 00 06 75 00 00 00 00 00 FF 0F 90 [11:51:30]RasterBufferAndPrint [11:51:30]line Счет N : (1)321133 [11:51:30]line ИНН: 02508201610067 [11:51:30]line Контрольно-Кассовый Чек [11:51:30]line ПРОДАЖА [11:51:30]line ТРК (МРК, ГНК) : 11 [11:51:30]line Товар: 2710124130 [11:51:30]line Аи-92-К-5 [11:51:30]line 10.550 * 66.40 [11:51:30]line = 700.52 [11:51:30]line НДС 12% НСП 1% [11:51:30]line > о реализуемом товаре [11:51:30]line ОКРУГЛЕНИЕ: -0.52 [11:51:30]line ИТОГО: 700.00 [11:51:30]line Внесено: 700.00 [11:51:30]line СДАЧА: 0.00 [11:51:30]line НСП 1% : 6.20 [11:51:30]line НДС 12% : 74.39 [11:51:30]line Наличными: 700.00 [11:51:30]line Безнал.: 0.00 [11:51:30]line Место: АЗС № 65 "Партнер Нефть" [11:51:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:51:30]line СНО: Общий режим [11:51:30]line Чек 55 23.06.2024 11:52 [11:51:30]line Смена: 392 ФФД: 1.0 [11:51:30]line ЗНМ: 0300000198 [11:51:30]line РНМ: 0000000000092771 [11:51:30]line Версия ККМ: 001 [11:51:30]line ФМ: 0000000000875083 [11:51:30]line ФД: 112454 [11:51:30]line ФПД: 279679554616718 [11:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T115224&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112454&fm=279679554616718&tin=02508201610067®Number=0000000000092771&sum=70000 [11:51:30]OFD Sender: Processing packet 112454 [packets to send 38, broken 37] [11:51:30]ProducePacketName [11:51:30]name=ofd_packets/00112454 [11:51:30]OFD Sender: To server: pG, [11:51:30]CommunicateWithHost lk.salyk.kg:30040 [11:51:30]ConnectInit lk.salyk.kg [11:51:30]written 0, free lines is 4095 [11:51:30]Connected sock=10 [11:51:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 84 07 01 DE 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 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 37 00 00 00 F4 03 04 00 78 0C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B7 01 00 35 04 06 00 FE 5D F8 80 FD 8E 0E 5C 10 E2 59 17 47 C7 [11:51:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 83 9C 47 00 33 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B7 01 00 F4 03 04 00 66 A3 77 66 B6 04 01 00 00 49 7F E6 02 A4 ED E3 0D [11:51:31]CommunicateWithHost err = 0 [11:51:31]CheckOFDResponse [11:51:31]1017 (14) - 77093643461234 [11:51:31]1041 (16) - 0000000000875083 [11:51:31]1040 (4) - 112454 [11:51:31]1012 (4) - 23.06.2024 04:24 [11:51:31]1206 (1) - 0 [11:51:31]OFD Sender: Remove packet 112454 [11:51:31]ProducePacketName [11:51:31]name=ofd_packets/00112454 [11:51:31]NVStorageDeleteData [11:51:31]Write to MH i2c: 01 00 00 31 75 A6 [11:51:31]Write i2c OK [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: 01 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: 01 07 00 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: 01 07 00 31 75 00 00 00 00 00 CA 0C 83 [11:51:31]RasterBufferAndPrint [11:51:31]line [11:51:31]line [11:51:31]line [11:51:31]line [11:51:31]line [11:51:31]written 0, free lines is 3281 [11:51:31]MH_Cut [11:51:31]Write to MH i2c: D1 01 00 38 75 01 7F [11:51:31]Write i2c OK [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: D1 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: D1 01 00 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: D1 01 00 38 75 00 7E [11:51:31]Write to MH i2c: 01 00 00 39 75 AE [11:51:31]Write i2c OK [11:51:31]MH_I2C_Read... [11:51:31]OFD Sender: No OFD packet to send [11:51:32]*** Cut start [11:51:32]*** Partial cut [11:51:32]*** CUTSNS_PIN = 1 [11:51:32]*** CUTSNS_PIN = 0 [11:51:32]*** Brake cut motor [11:51:32]Read from MH i2c: 01 [11:51:32]MH_I2C_Read... [11:51:32]*** Stop cut motor [11:51:32]*** Cut end [11:51:32]Read from MH i2c: 01 07 00 [11:51:32]MH_I2C_Read... [11:51:32]Read from MH i2c: 01 07 00 39 75 00 00 00 00 00 FF 0F C3 [11:51:32]process_action close_receipt done [11:51:32]requested_data is exist [11:51:32]produce_requested_data [11:51:32]requested_item fm.sn is exist - process it [11:51:32]wFMCommunicate request_size=4 [11:51:32]MH_SAM_APDU [11:51:32]CAPDU: 80 11 00 00 [11:51:32]Write to MH i2c: E2 08 00 3A 75 80 11 00 00 00 00 00 00 29 [11:51:32]Write i2c OK [11:51:32]MH_I2C_Read... [11:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:32]Read from MH i2c: E2 [11:51:32]MH_I2C_Read... [11:51:32]Read from MH i2c: E2 17 00 [11:51:32]MH_I2C_Read... [11:51:32]Read from MH i2c: E2 17 00 3A 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [11:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:51:32]wFMCommunicate OK [11:51:32]requested_item fd.num is exist - process it [11:51:32]SAM_PROTO_GetFieldsCounters [11:51:32]wFMCommunicate request_size=4 [11:51:32]MH_SAM_APDU [11:51:32]CAPDU: 80 13 00 00 [11:51:32]Write to MH i2c: E2 08 00 3B 75 80 13 00 00 00 00 00 00 2C [11:51:32]Write i2c OK [11:51:32]MH_I2C_Read... [11:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:32]Read from MH i2c: E2 [11:51:32]MH_I2C_Read... [11:51:32]Read from MH i2c: E2 62 00 [11:51:32]MH_I2C_Read... [11:51:32]Read from MH i2c: E2 62 00 3B 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B7 01 00 0E 04 04 00 88 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 79 [11:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:32]wFMCommunicate OK [11:51:32]SAM_PROTO_GetFieldsCounters done [11:51:32]requested_item shift.num is exist - process it [11:51:32]requested_item shift.opened is exist - process it [11:51:32]req_shift_opened [11:51:32]FM_GetShiftState [11:51:32]SAM_PROTO_GetShiftState [11:51:32]wFMCommunicate request_size=4 [11:51:32]MH_SAM_APDU [11:51:32]CAPDU: 80 13 01 00 [11:51:32]Write to MH i2c: E2 08 00 3C 75 80 13 01 00 00 00 00 00 2E [11:51:32]Write i2c OK [11:51:32]MH_I2C_Read... [11:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:32]Read from MH i2c: E2 [11:51:32]MH_I2C_Read... [11:51:32]Read from MH i2c: E2 0E 00 [11:51:32]MH_I2C_Read... [11:51:32]Read from MH i2c: E2 0E 00 3C 75 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4C [11:51:32]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:51:32]wFMCommunicate OK [11:51:32]SAM_PROTO_GetShiftState done [11:51:32]FM_GetShiftState done [11:51:32]req_shift_opened done [11:51:32]requested_item shift.open_date is exist - process it [11:51:32]req_shift_open_date [11:51:32]req_shift_open_date done [11:51:32]produce_requested_data done [11:51:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112454,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:51:32]process_action_free close_receipt [11:51:32]json_value_free [11:51:32]json_value_free done [11:51:32]process_json_proto returns [11:51:32]Send response to host [11:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112454,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:51:32]free response buf [11:51:32]execute_script done [11:51:32]execute_script returns [11:51:32]free content buf [11:51:32]Sock 9.Close socket [11:51:32]Sock 9.Thread stoped [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:54]accept exits with 7 [11:55:54]New connection [11:55:54]New thread 3066813796 created [11:55:54]Thread 3066957156 joined [11:55:54]Waiting for new connection... [11:55:54] Sock 7.Parse request [11:55:54]Sock 7.Check first char [11:55:54]Sock 7.First char is OK [11:55:54]request: POST /json_proto HTTP/1.0 [11:55:54]Method: POST [11:55:54]URL: /json_proto [11:55:54]Method is POST - this is cgi request [11:55:54]url: /json_proto [11:55:54]query_string will be loaded in cgi processing [11:55:54]execute_cgi json_proto POST (null) [11:55:54]execute_cgi path=json_proto method=POST [11:55:54]POST find Content-Length [11:55:54]Host: 172.17.59.68:8080 [11:55:54]Content-Length: 677 [11:55:54]Content-Type: application/json [11:55:54] [11:55:54]POST finish read [11:55:54]Found Content-Length = 677 [11:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.070, "sum" : 270.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:54]execute_script... [11:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.070, "sum" : 270.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:54]POST & json_proto [11:55:54]process_json_proto [11:55:55]json parsed OK: [11:55:55]protocol is kg_v1.0 [11:55:55]action value=close_receipt [11:55:55]process_action close_receipt [11:55:55]cmd_close_receipt [11:55:55]MH_GetDate [11:55:55]Write to MH i2c: F0 00 00 3D 75 A1 [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: F0 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: F0 09 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: F0 09 00 3D 75 00 82 0D 78 66 BC EC 60 65 84 [11:55:55]GetLastDocTimeStamp 1719143544 [11:55:55]current date 1719143810 [11:55:55]FM_GetShiftState [11:55:55]SAM_PROTO_GetShiftState [11:55:55]wFMCommunicate request_size=4 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 13 01 00 [11:55:55]Write to MH i2c: E2 08 00 3E 75 80 13 01 00 00 00 00 00 30 [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 0E 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 0E 00 3E 75 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4E [11:55:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:55:55]wFMCommunicate OK [11:55:55]SAM_PROTO_GetShiftState done [11:55:55]FM_GetShiftState done [11:55:55]opened in 1719106490 [11:55:55]opened+sec_in_day 1719192890 [11:55:55]quantity*price = 27024 [11:55:55]sum+1 = 27026 [11:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 56 23.06.2024 11:56 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112455 ФПД: 32692428642137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T115650&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112455&fm=32692428642137&tin=02508201610067®Number=0000000000092771&sum=27000 [11:55:56]StoreToDocumentArchive [11:55:56]shift 392 fd 112455 [11:55:56]save to /storage/0392/doc_00112455 [11:55:56]save last doc name /storage/0392/doc_00112455 to /storage/kkm_last_doc_name [11:55:56]save OK [11:55:56]Clear old archive folders... [11:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:56]tlvbuf is 011D1C30 [11:55:56]SAM_PROTO_ClearQueue [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 09 00 00 [11:55:56]Write to MH i2c: E2 08 00 4B 75 80 09 00 00 00 00 00 00 32 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 4B 75 00 90 00 34 [11:55:56]RAPDU: 90 00 [11:55:56]wFMCommunicate OK [11:55:56]SAM_PROTO_ClearQueue done [11:55:56]KKMCreateOFDPacket [11:55:56]OFDProtocolAddRootSTLVToBuf [11:55:56]FM_MakeSignedData [11:55:56]FM_MakeSignedData [11:55:56]SAM_PROTO_SignData [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 0D 01 02 [11:55:56]Write to MH i2c: E2 08 00 4C 75 80 0D 01 02 00 00 00 00 3A [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 4C 75 00 90 00 35 [11:55:56]RAPDU: 90 00 [11:55:56]wFMCommunicate OK [11:55:56]wFMCommunicate request_size=255 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 91 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 82 0D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B7 01 00 35 04 06 00 1D [11:55:56]Write to MH i2c: E2 02 01 4D 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 91 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 82 0D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B7 01 00 35 04 06 00 1D 00 00 78 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 4D 75 00 90 00 36 [11:55:56]RAPDU: 90 00 [11:55:56]wFMCommunicate OK [11:55:56]wFMCommunicate request_size=10 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 0D 02 02 05 BB CC 98 97 59 [11:55:56]Write to MH i2c: E2 0D 00 4E 75 80 0D 02 02 05 00 BB CC 98 97 59 00 00 56 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 4E 75 00 90 00 37 [11:55:56]RAPDU: 90 00 [11:55:56]wFMCommunicate OK [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 0D 03 02 [11:55:56]Write to MH i2c: E2 08 00 4F 75 80 0D 03 02 00 00 00 00 3F [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 0B 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 0B 00 4F 75 00 5D 75 B5 CB 03 1A E6 E8 90 00 7D [11:55:56]RAPDU: 5D 75 B5 CB 03 1A E6 E8 90 00 [11:55:56]wFMCommunicate OK [11:55:56]SAM_PROTO_SignData done [11:55:56]FM_MakeSignedData done [11:55:56]CreateOFDProtocolMessage [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 11 00 00 [11:55:56]Write to MH i2c: E2 08 00 50 75 80 11 00 00 00 00 00 00 3F [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 17 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 17 00 50 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [11:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:55:56]wFMCommunicate OK [11:55:56]CreateOFDProtocolMessage done [11:55:56]OFDSenderStorePacket 112455 [11:55:56]StoreOFDPacket docnum=112455 [11:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 95 07 01 B7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 91 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 82 0D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B7 01 00 35 04 06 00 1D BB CC 98 97 59 5D 75 B5 CB 03 1A E6 E8 [11:55:56]CheckFolder [11:55:56]dirname=/storage/ofd_packets [11:55:56]CheckFolder done [11:55:56]ProducePacketName [11:55:56]name=ofd_packets/00112455 [11:55:56]NVStorageSaveData ofd_packets/00112455 [11:55:56]File name is /storage/ofd_packets/00112455 [11:55:56]Write 301 bytes [11:55:56]NVStorageSaveData done [11:55:56]OFDSenderStorePacket done [11:55:56]KKMCreateOFDPacket done [11:55:56]NVStorageSaveData kkm_last_timestamp [11:55:56]File name is /storage/kkm_last_timestamp [11:55:56]Write 4 bytes [11:55:56]NVStorageSaveData done [11:55:56]ExternCall_PrintAddStr [11:55:56]wPrintStart [11:55:56]Write to MH i2c: 01 00 00 51 75 C6 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 51 75 00 00 00 00 00 FF 0F DB [11:55:56]RasterBufferAndPrint [11:55:56]line Счет N : (1)321134 [11:55:56]line ИНН: 02508201610067 [11:55:56]line Контрольно-Кассовый Чек [11:55:56]line ПРОДАЖА [11:55:56]line ТРК (МРК, ГНК) : 11 [11:55:56]line Товар: 2710124130 [11:55:56]line Аи-92-К-5 [11:55:56]line 4.070 * 66.40 [11:55:56]line = 270.25 [11:55:56]line НДС 12% НСП 1% [11:55:56]line > о реализуемом товаре [11:55:56]line ОКРУГЛЕНИЕ: -0.25 [11:55:56]line ИТОГО: 270.00 [11:55:56]line Внесено: 270.00 [11:55:56]line СДАЧА: 0.00 [11:55:56]line НСП 1% : 2.39 [11:55:56]line НДС 12% : 28.70 [11:55:56]line Наличными: 270.00 [11:55:56]line Безнал.: 0.00 [11:55:56]line Место: АЗС № 65 "Партнер Нефть" [11:55:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:55:56]line СНО: Общий режим [11:55:56]line Чек 56 23.06.2024 11:56 [11:55:56]line Смена: 392 ФФД: 1.0 [11:55:56]line ЗНМ: 0300000198 [11:55:56]line РНМ: 0000000000092771 [11:55:56]line Версия ККМ: 001 [11:55:56]line ФМ: 0000000000875083 [11:55:56]line ФД: 112455 [11:55:56]line ФПД: 32692428642137 [11:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T115650&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112455&fm=32692428642137&tin=02508201610067®Number=0000000000092771&sum=27000 [11:55:57]OFD Sender: Processing packet 112455 [packets to send 38, broken 37] [11:55:57]ProducePacketName [11:55:57]name=ofd_packets/00112455 [11:55:57]OFD Sender: To server: pG, [11:55:57]CommunicateWithHost lk.salyk.kg:30040 [11:55:57]ConnectInit lk.salyk.kg [11:55:57]written 0, free lines is 4095 [11:55:57]Connected sock=9 [11:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 95 07 01 B7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 91 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 82 0D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B7 01 00 35 04 06 00 1D BB CC 98 97 59 5D 75 B5 CB 03 1A E6 E8 [11:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 21 75 47 00 8B 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B7 01 00 F4 03 04 00 70 A4 77 66 B6 04 01 00 00 9F 1D A9 94 67 67 09 64 [11:55:57]CommunicateWithHost err = 0 [11:55:57]CheckOFDResponse [11:55:57]1017 (14) - 77093643461234 [11:55:57]1041 (16) - 0000000000875083 [11:55:57]1040 (4) - 112455 [11:55:57]1012 (4) - 23.06.2024 04:28 [11:55:57]1206 (1) - 0 [11:55:57]OFD Sender: Remove packet 112455 [11:55:57]ProducePacketName [11:55:57]name=ofd_packets/00112455 [11:55:57]NVStorageDeleteData [11:55:57]Write to MH i2c: 01 00 00 7C 75 F1 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: 01 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: 01 07 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: 01 07 00 7C 75 00 00 00 00 00 CE 0C D2 [11:55:57]RasterBufferAndPrint [11:55:57]line [11:55:57]line [11:55:57]line [11:55:57]line [11:55:57]line [11:55:57]written 0, free lines is 3286 [11:55:57]MH_Cut [11:55:57]Write to MH i2c: D1 01 00 83 75 01 CA [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: D1 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: D1 01 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: D1 01 00 83 75 00 C9 [11:55:57]Write to MH i2c: 01 00 00 84 75 F9 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]OFD Sender: No OFD packet to send [11:55:58]*** Cut start [11:55:58]*** Partial cut [11:55:58]*** CUTSNS_PIN = 1 [11:55:58]*** CUTSNS_PIN = 0 [11:55:58]*** Brake cut motor [11:55:58]Read from MH i2c: 01 [11:55:58]MH_I2C_Read... [11:55:58]*** Stop cut motor [11:55:58]*** Cut end [11:55:58]Read from MH i2c: 01 07 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 07 00 84 75 00 00 00 00 00 FF 0F 0E [11:55:58]process_action close_receipt done [11:55:58]requested_data is exist [11:55:58]produce_requested_data [11:55:58]requested_item fm.sn is exist - process it [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 11 00 00 [11:55:58]Write to MH i2c: E2 08 00 85 75 80 11 00 00 00 00 00 00 74 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 17 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 17 00 85 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [11:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:55:58]wFMCommunicate OK [11:55:58]requested_item fd.num is exist - process it [11:55:58]SAM_PROTO_GetFieldsCounters [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 13 00 00 [11:55:58]Write to MH i2c: E2 08 00 86 75 80 13 00 00 00 00 00 00 77 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 62 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 62 00 86 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B7 01 00 0E 04 04 00 88 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 C8 [11:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:59]wFMCommunicate OK [11:55:59]SAM_PROTO_GetFieldsCounters done [11:55:59]requested_item shift.num is exist - process it [11:55:59]requested_item shift.opened is exist - process it [11:55:59]req_shift_opened [11:55:59]FM_GetShiftState [11:55:59]SAM_PROTO_GetShiftState [11:55:59]wFMCommunicate request_size=4 [11:55:59]MH_SAM_APDU [11:55:59]CAPDU: 80 13 01 00 [11:55:59]Write to MH i2c: E2 08 00 87 75 80 13 01 00 00 00 00 00 79 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 0E 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 0E 00 87 75 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 97 [11:55:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:55:59]wFMCommunicate OK [11:55:59]SAM_PROTO_GetShiftState done [11:55:59]FM_GetShiftState done [11:55:59]req_shift_opened done [11:55:59]requested_item shift.open_date is exist - process it [11:55:59]req_shift_open_date [11:55:59]req_shift_open_date done [11:55:59]produce_requested_data done [11:55:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112455,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:55:59]process_action_free close_receipt [11:55:59]json_value_free [11:55:59]json_value_free done [11:55:59]process_json_proto returns [11:55:59]Send response to host [11:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112455,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:55:59]free response buf [11:55:59]execute_script done [11:55:59]execute_script returns [11:55:59]free content buf [11:55:59]Sock 7.Close socket [11:55:59]Sock 7.Thread stoped [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]accept exits with 10 [11:56:22]New connection [11:56:22]New thread 3066957156 created [11:56:22]Thread 3066813796 joined [11:56:22]Waiting for new connection... [11:56:22] Sock 10.Parse request [11:56:22]Sock 10.Check first char [11:56:22]Sock 10.First char is OK [11:56:22]request: POST /json_proto HTTP/1.0 [11:56:22]Method: POST [11:56:22]URL: /json_proto [11:56:22]Method is POST - this is cgi request [11:56:22]url: /json_proto [11:56:22]query_string will be loaded in cgi processing [11:56:22]execute_cgi json_proto POST (null) [11:56:22]execute_cgi path=json_proto method=POST [11:56:22]POST find Content-Length [11:56:22]Host: 172.17.59.68:8080 [11:56:22]Content-Length: 805 [11:56:22]Content-Type: application/json [11:56:22] [11:56:22]POST finish read [11:56:22]Found Content-Length = 805 [11:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:22]execute_script... [11:56: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)321135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:22]POST & json_proto [11:56:22]process_json_proto [11:56:22]json parsed OK: [11:56:22]protocol is kg_v1.0 [11:56:22]action value=close_receipt [11:56:22]process_action close_receipt [11:56:22]cmd_close_receipt [11:56:22]MH_GetDate [11:56:22]Write to MH i2c: F0 00 00 88 75 EC [11:56:22]Write i2c OK [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: F0 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: F0 09 00 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: F0 09 00 88 75 00 9D 0D 78 66 BC EC 60 65 EA [11:56:22]GetLastDocTimeStamp 1719143810 [11:56:22]current date 1719143837 [11:56:22]FM_GetShiftState [11:56:22]SAM_PROTO_GetShiftState [11:56:22]wFMCommunicate request_size=4 [11:56:22]MH_SAM_APDU [11:56:22]CAPDU: 80 13 01 00 [11:56:22]Write to MH i2c: E2 08 00 89 75 80 13 01 00 00 00 00 00 7B [11:56:22]Write i2c OK [11:56:22]MH_I2C_Read... [11:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:22]Read from MH i2c: E2 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 0E 00 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 0E 00 89 75 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 99 [11:56:22]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:56:22]wFMCommunicate OK [11:56:22]SAM_PROTO_GetShiftState done [11:56:22]FM_GetShiftState done [11:56:22]opened in 1719106490 [11:56:22]opened+sec_in_day 1719192890 [11:56:22]quantity*price = 25032 [11:56:22]sum+1 = 25034 [11:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.33 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 0.00 Безнал.: 250.33 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 57 23.06.2024 11:57 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112456 ФПД: 274251547550116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T115717&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112456&fm=274251547550116&tin=02508201610067®Number=0000000000092771&sum=25033 [11:56:23]StoreToDocumentArchive [11:56:23]shift 392 fd 112456 [11:56:23]save to /storage/0392/doc_00112456 [11:56:23]save last doc name /storage/0392/doc_00112456 to /storage/kkm_last_doc_name [11:56:23]save OK [11:56:23]Clear old archive folders... [11:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:23]tlvbuf is 01348D40 [11:56:23]SAM_PROTO_ClearQueue [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 09 00 00 [11:56:23]Write to MH i2c: E2 08 00 96 75 80 09 00 00 00 00 00 00 7D [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 96 75 00 90 00 7F [11:56:23]RAPDU: 90 00 [11:56:23]wFMCommunicate OK [11:56:23]SAM_PROTO_ClearQueue done [11:56:23]KKMCreateOFDPacket [11:56:23]OFDProtocolAddRootSTLVToBuf [11:56:23]FM_MakeSignedData [11:56:23]FM_MakeSignedData [11:56:23]SAM_PROTO_SignData [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 0D 01 02 [11:56:23]Write to MH i2c: E2 08 00 97 75 80 0D 01 02 00 00 00 00 85 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 97 75 00 90 00 80 [11:56:23]RAPDU: 90 00 [11:56:23]wFMCommunicate OK [11:56:23]wFMCommunicate request_size=255 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D 0D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B7 01 00 35 04 06 00 F9 [11:56:23]Write to MH i2c: E2 02 01 98 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D 0D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B7 01 00 35 04 06 00 F9 00 00 6A [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 98 75 00 90 00 81 [11:56:23]RAPDU: 90 00 [11:56:23]wFMCommunicate OK [11:56:23]wFMCommunicate request_size=10 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 0D 02 02 05 6E 2A 12 21 A4 [11:56:23]Write to MH i2c: E2 0D 00 99 75 80 0D 02 02 05 00 6E 2A 12 21 A4 00 00 01 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 99 75 00 90 00 82 [11:56:23]RAPDU: 90 00 [11:56:23]wFMCommunicate OK [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 0D 03 02 [11:56:23]Write to MH i2c: E2 08 00 9A 75 80 0D 03 02 00 00 00 00 8A [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 0B 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 0B 00 9A 75 00 B1 08 62 E7 2A 24 BB 6F 90 00 05 [11:56:23]RAPDU: B1 08 62 E7 2A 24 BB 6F 90 00 [11:56:23]wFMCommunicate OK [11:56:23]SAM_PROTO_SignData done [11:56:23]FM_MakeSignedData done [11:56:23]CreateOFDProtocolMessage [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 11 00 00 [11:56:23]Write to MH i2c: E2 08 00 9B 75 80 11 00 00 00 00 00 00 8A [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 17 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 17 00 9B 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [11:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:56:23]wFMCommunicate OK [11:56:23]CreateOFDProtocolMessage done [11:56:23]OFDSenderStorePacket 112456 [11:56:23]StoreOFDPacket docnum=112456 [11:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 5F 07 01 33 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D 0D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B7 01 00 35 04 06 00 F9 6E 2A 12 21 A4 B1 08 62 E7 2A 24 BB 6F [11:56:23]CheckFolder [11:56:23]dirname=/storage/ofd_packets [11:56:23]CheckFolder done [11:56:23]ProducePacketName [11:56:23]name=ofd_packets/00112456 [11:56:23]NVStorageSaveData ofd_packets/00112456 [11:56:23]File name is /storage/ofd_packets/00112456 [11:56:23]Write 301 bytes [11:56:23]NVStorageSaveData done [11:56:23]OFDSenderStorePacket done [11:56:23]KKMCreateOFDPacket done [11:56:23]NVStorageSaveData kkm_last_timestamp [11:56:23]File name is /storage/kkm_last_timestamp [11:56:23]Write 4 bytes [11:56:23]NVStorageSaveData done [11:56:23]ExternCall_PrintAddStr [11:56:23]wPrintStart [11:56:23]Write to MH i2c: 01 00 00 9C 75 11 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: 01 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: 01 07 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: 01 07 00 9C 75 00 00 00 00 00 FF 0F 26 [11:56:23]RasterBufferAndPrint [11:56:23]line Счет N : (1)321135 [11:56:23]line ИНН: 02508201610067 [11:56:23]line Контрольно-Кассовый Чек [11:56:23]line ПРОДАЖА [11:56:23]line ТРК (МРК, ГНК) : 11 [11:56:23]line Товар: 2710124130 [11:56:23]line Аи-92-К-5 [11:56:23]line 3.770 * 66.40 [11:56:23]line = 250.33 [11:56:23]line НДС 12% НСП 1% [11:56:23]line > о реализуемом товаре [11:56:23]line ИТОГО: 250.33 [11:56:23]line НСП 1% : 2.21 [11:56:23]line НДС 12% : 26.58 [11:56:23]line Наличными: 0.00 [11:56:23]line Безнал.: 250.33 [11:56:23]line Место: АЗС № 65 "Партнер Нефть" [11:56:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:56:23]line СНО: Общий режим [11:56:23]line Чек 57 23.06.2024 11:57 [11:56:23]line Смена: 392 ФФД: 1.0 [11:56:23]line ЗНМ: 0300000198 [11:56:23]line РНМ: 0000000000092771 [11:56:23]line Версия ККМ: 001 [11:56:23]line Платежная система: О! деньги [11:56:23]line ФМ: 0000000000875083 [11:56:23]line ФД: 112456 [11:56:23]line ФПД: 274251547550116 [11:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T115717&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112456&fm=274251547550116&tin=02508201610067®Number=0000000000092771&sum=25033 [11:56:24]OFD Sender: Processing packet 112456 [packets to send 38, broken 37] [11:56:24]ProducePacketName [11:56:24]name=ofd_packets/00112456 [11:56:24]OFD Sender: To server: pG, [11:56:24]CommunicateWithHost lk.salyk.kg:30040 [11:56:24]ConnectInit lk.salyk.kg [11:56:24]written 0, free lines is 4095 [11:56:24]Connected sock=9 [11:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 5F 07 01 33 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D 0D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B7 01 00 35 04 06 00 F9 6E 2A 12 21 A4 B1 08 62 E7 2A 24 BB 6F [11:56:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 04 0F 47 00 A4 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B7 01 00 F4 03 04 00 8B A4 77 66 B6 04 01 00 00 EC 84 98 1A A5 69 DC 61 [11:56:24]CommunicateWithHost err = 0 [11:56:24]CheckOFDResponse [11:56:24]1017 (14) - 77093643461234 [11:56:24]1041 (16) - 0000000000875083 [11:56:24]1040 (4) - 112456 [11:56:24]1012 (4) - 23.06.2024 04:28 [11:56:24]1206 (1) - 0 [11:56:24]OFD Sender: Remove packet 112456 [11:56:24]ProducePacketName [11:56:24]name=ofd_packets/00112456 [11:56:24]NVStorageDeleteData [11:56:24]Write to MH i2c: 01 00 00 C6 75 3B [11:56:24]Write i2c OK [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: 01 [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: 01 07 00 [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: 01 07 00 C6 75 00 00 00 00 00 DE 0C 2C [11:56:24]RasterBufferAndPrint [11:56:24]line [11:56:24]line [11:56:24]line [11:56:24]line [11:56:24]line [11:56:24]written 0, free lines is 3303 [11:56:24]MH_Cut [11:56:24]Write to MH i2c: D1 01 00 CD 75 01 14 [11:56:24]Write i2c OK [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: D1 [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: D1 01 00 [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: D1 01 00 CD 75 00 13 [11:56:24]Write to MH i2c: 01 00 00 CE 75 43 [11:56:24]Write i2c OK [11:56:24]MH_I2C_Read... [11:56:25]OFD Sender: No OFD packet to send [11:56:25]*** Cut start [11:56:25]*** Partial cut [11:56:25]*** CUTSNS_PIN = 1 [11:56:25]*** CUTSNS_PIN = 0 [11:56:25]*** Brake cut motor [11:56:25]Read from MH i2c: 01 [11:56:25]MH_I2C_Read... [11:56:25]*** Stop cut motor [11:56:25]*** Cut end [11:56:25]Read from MH i2c: 01 07 00 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: 01 07 00 CE 75 00 00 00 00 00 FF 0F 58 [11:56:25]process_action close_receipt done [11:56:25]requested_data is exist [11:56:25]produce_requested_data [11:56:25]requested_item fm.sn is exist - process it [11:56:25]wFMCommunicate request_size=4 [11:56:25]MH_SAM_APDU [11:56:25]CAPDU: 80 11 00 00 [11:56:25]Write to MH i2c: E2 08 00 CF 75 80 11 00 00 00 00 00 00 BE [11:56:25]Write i2c OK [11:56:25]MH_I2C_Read... [11:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:25]Read from MH i2c: E2 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 17 00 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 17 00 CF 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [11:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:56:25]wFMCommunicate OK [11:56:25]requested_item fd.num is exist - process it [11:56:25]SAM_PROTO_GetFieldsCounters [11:56:25]wFMCommunicate request_size=4 [11:56:25]MH_SAM_APDU [11:56:25]CAPDU: 80 13 00 00 [11:56:25]Write to MH i2c: E2 08 00 D0 75 80 13 00 00 00 00 00 00 C1 [11:56:25]Write i2c OK [11:56:25]MH_I2C_Read... [11:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:26]Read from MH i2c: E2 [11:56:26]MH_I2C_Read... [11:56:26]Read from MH i2c: E2 62 00 [11:56:26]MH_I2C_Read... [11:56:26]Read from MH i2c: E2 62 00 D0 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 48 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11:56:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 48 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:26]wFMCommunicate OK [11:56:26]SAM_PROTO_GetFieldsCounters done [11:56:26]requested_item shift.num is exist - process it [11:56:26]requested_item shift.opened is exist - process it [11:56:26]req_shift_opened [11:56:26]FM_GetShiftState [11:56:26]SAM_PROTO_GetShiftState [11:56:26]wFMCommunicate request_size=4 [11:56:26]MH_SAM_APDU [11:56:26]CAPDU: 80 13 01 00 [11:56:26]Write to MH i2c: E2 08 00 D1 75 80 13 01 00 00 00 00 00 C3 [11:56:26]Write i2c OK [11:56:26]MH_I2C_Read... [11:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:26]Read from MH i2c: E2 [11:56:26]MH_I2C_Read... [11:56:26]Read from MH i2c: E2 0E 00 [11:56:26]MH_I2C_Read... [11:56:26]Read from MH i2c: E2 0E 00 D1 75 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E1 [11:56:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [11:56:26]wFMCommunicate OK [11:56:26]SAM_PROTO_GetShiftState done [11:56:26]FM_GetShiftState done [11:56:26]req_shift_opened done [11:56:26]requested_item shift.open_date is exist - process it [11:56:26]req_shift_open_date [11:56:26]req_shift_open_date done [11:56:26]produce_requested_data done [11:56:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112456,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [11:56:26]process_action_free close_receipt [11:56:26]json_value_free [11:56:26]json_value_free done [11:56:26]process_json_proto returns [11:56:26]Send response to host [11:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112456,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [11:56:26]free response buf [11:56:26]execute_script done [11:56:26]execute_script returns [11:56:26]free content buf [11:56:26]Sock 10.Close socket [11:56:26]Sock 10.Thread stoped [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]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:45]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [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:12]accept exits with 7 [12:03:12]New connection [12:03:12]New thread 3066813796 created [12:03:12]Thread 3066957156 joined [12:03:12]Waiting for new connection... [12:03:12] Sock 7.Parse request [12:03:12]Sock 7.Check first char [12:03:12]Sock 7.First char is OK [12:03:12]request: POST /json_proto HTTP/1.0 [12:03:12]Method: POST [12:03:12]URL: /json_proto [12:03:12]Method is POST - this is cgi request [12:03:12]url: /json_proto [12:03:12]query_string will be loaded in cgi processing [12:03:12]execute_cgi json_proto POST (null) [12:03:12]execute_cgi path=json_proto method=POST [12:03:12]POST find Content-Length [12:03:12]Host: 172.17.59.68:8080 [12:03:12]Content-Length: 682 [12:03:12]Content-Type: application/json [12:03:12] [12:03:12]POST finish read [12:03:12]Found Content-Length = 682 [12:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 33.280, "sum" : 2209.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2209.00, "payments": [ { "type": 0, "sum" : 2209.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:12]execute_script... [12:03: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)321136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 33.280, "sum" : 2209.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2209.00, "payments": [ { "type": 0, "sum" : 2209.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:12]POST & json_proto [12:03:12]process_json_proto [12:03:12]json parsed OK: [12:03:12]protocol is kg_v1.0 [12:03:12]action value=close_receipt [12:03:12]process_action close_receipt [12:03:12]cmd_close_receipt [12:03:12]MH_GetDate [12:03:12]Write to MH i2c: F0 00 00 D2 75 36 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: F0 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: F0 09 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: F0 09 00 D2 75 00 38 0F 78 66 BC EC 60 65 D1 [12:03:12]GetLastDocTimeStamp 1719143837 [12:03:12]current date 1719144248 [12:03:12]FM_GetShiftState [12:03:12]SAM_PROTO_GetShiftState [12:03:12]wFMCommunicate request_size=4 [12:03:12]MH_SAM_APDU [12:03:12]CAPDU: 80 13 01 00 [12:03:12]Write to MH i2c: E2 08 00 D3 75 80 13 01 00 00 00 00 00 C5 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:12]Read from MH i2c: E2 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 0E 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 0E 00 D3 75 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E3 [12:03:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:03:12]wFMCommunicate OK [12:03:12]SAM_PROTO_GetShiftState done [12:03:12]FM_GetShiftState done [12:03:12]opened in 1719106490 [12:03:12]opened+sec_in_day 1719192890 [12:03:12]quantity*price = 220979 [12:03:12]sum+1 = 220980 [12:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 2209.00 Внесено: 4000.00 СДАЧА: 1791.00 НСП 1% : 19.56 НДС 12% : 234.67 Наличными: 2209.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 58 23.06.2024 12:04 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112457 ФПД: 179299385699289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T120408&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112457&fm=179299385699289&tin=02508201610067®Number=0000000000092771&sum=220900 [12:03:13]StoreToDocumentArchive [12:03:13]shift 392 fd 112457 [12:03:13]save to /storage/0392/doc_00112457 [12:03:13]save last doc name /storage/0392/doc_00112457 to /storage/kkm_last_doc_name [12:03:13]save OK [12:03:13]Clear old archive folders... [12:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:13]tlvbuf is 011D1880 [12:03:13]SAM_PROTO_ClearQueue [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 09 00 00 [12:03:13]Write to MH i2c: E2 08 00 E0 75 80 09 00 00 00 00 00 00 C7 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:13]Read from MH i2c: E2 03 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 E0 75 00 90 00 C9 [12:03:13]RAPDU: 90 00 [12:03:13]wFMCommunicate OK [12:03:13]SAM_PROTO_ClearQueue done [12:03:13]KKMCreateOFDPacket [12:03:13]OFDProtocolAddRootSTLVToBuf [12:03:13]FM_MakeSignedData [12:03:13]FM_MakeSignedData [12:03:13]SAM_PROTO_SignData [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 0D 01 02 [12:03:13]Write to MH i2c: E2 08 00 E1 75 80 0D 01 02 00 00 00 00 CF [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 E1 75 00 90 00 CA [12:03:14]RAPDU: 90 00 [12:03:14]wFMCommunicate OK [12:03:14]wFMCommunicate request_size=255 [12:03:14]MH_SAM_APDU [12:03:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 82 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 33 5F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 5E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 5B 00 00 00 00 07 04 06 00 E4 5E 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 00 00 00 F4 03 04 00 38 0F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B7 01 00 35 04 06 00 A3 [12:03:14]Write to MH i2c: E2 02 01 E2 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 82 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 33 5F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 5E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 5B 00 00 00 00 07 04 06 00 E4 5E 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 00 00 00 F4 03 04 00 38 0F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B7 01 00 35 04 06 00 A3 00 00 C0 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 E2 75 00 90 00 CB [12:03:14]RAPDU: 90 00 [12:03:14]wFMCommunicate OK [12:03:14]wFMCommunicate request_size=10 [12:03:14]MH_SAM_APDU [12:03:14]CAPDU: 80 0D 02 02 05 12 64 31 6B D9 [12:03:14]Write to MH i2c: E2 0D 00 E3 75 80 0D 02 02 05 00 12 64 31 6B D9 00 00 C7 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 E3 75 00 90 00 CC [12:03:14]RAPDU: 90 00 [12:03:14]wFMCommunicate OK [12:03:14]wFMCommunicate request_size=4 [12:03:14]MH_SAM_APDU [12:03:14]CAPDU: 80 0D 03 02 [12:03:14]Write to MH i2c: E2 08 00 E4 75 80 0D 03 02 00 00 00 00 D4 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 0B 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 0B 00 E4 75 00 6A A7 58 9D 2E A7 81 7B 90 00 AC [12:03:14]RAPDU: 6A A7 58 9D 2E A7 81 7B 90 00 [12:03:14]wFMCommunicate OK [12:03:14]SAM_PROTO_SignData done [12:03:14]FM_MakeSignedData done [12:03:14]CreateOFDProtocolMessage [12:03:14]wFMCommunicate request_size=4 [12:03:14]MH_SAM_APDU [12:03:14]CAPDU: 80 11 00 00 [12:03:14]Write to MH i2c: E2 08 00 E5 75 80 11 00 00 00 00 00 00 D4 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 17 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 17 00 E5 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [12:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:03:14]wFMCommunicate OK [12:03:14]CreateOFDProtocolMessage done [12:03:14]OFDSenderStorePacket 112457 [12:03:14]StoreOFDPacket docnum=112457 [12:03:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 69 07 01 F5 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 82 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 33 5F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 5E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 5B 00 00 00 00 07 04 06 00 E4 5E 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 00 00 00 F4 03 04 00 38 0F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B7 01 00 35 04 06 00 A3 12 64 31 6B D9 6A A7 58 9D 2E A7 81 7B [12:03:14]CheckFolder [12:03:14]dirname=/storage/ofd_packets [12:03:14]CheckFolder done [12:03:14]ProducePacketName [12:03:14]name=ofd_packets/00112457 [12:03:14]NVStorageSaveData ofd_packets/00112457 [12:03:14]File name is /storage/ofd_packets/00112457 [12:03:14]Write 301 bytes [12:03:14]NVStorageSaveData done [12:03:14]OFDSenderStorePacket done [12:03:14]KKMCreateOFDPacket done [12:03:14]NVStorageSaveData kkm_last_timestamp [12:03:14]File name is /storage/kkm_last_timestamp [12:03:14]Write 4 bytes [12:03:14]NVStorageSaveData done [12:03:14]ExternCall_PrintAddStr [12:03:14]wPrintStart [12:03:14]Write to MH i2c: 01 00 00 E6 75 5B [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 07 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 07 00 E6 75 00 00 00 00 00 FF 0F 70 [12:03:14]RasterBufferAndPrint [12:03:14]line Счет N : (1)321136 [12:03:14]line ИНН: 02508201610067 [12:03:14]line Контрольно-Кассовый Чек [12:03:14]line ПРОДАЖА [12:03:14]line ТРК (МРК, ГНК) : 11 [12:03:14]line Товар: 2710124130 [12:03:14]line Аи-92-К-5 [12:03:14]line 33.280 * 66.40 [12:03:14]line = 2209.79 [12:03:14]line НДС 12% НСП 1% [12:03:14]line > о реализуемом товаре [12:03:14]line ОКРУГЛЕНИЕ: -0.79 [12:03:14]line ИТОГО: 2209.00 [12:03:14]line Внесено: 4000.00 [12:03:14]line СДАЧА: 1791.00 [12:03:14]line НСП 1% : 19.56 [12:03:14]line НДС 12% : 234.67 [12:03:14]line Наличными: 2209.00 [12:03:14]line Безнал.: 0.00 [12:03:14]line Место: АЗС № 65 "Партнер Нефть" [12:03:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:03:14]line СНО: Общий режим [12:03:14]line Чек 58 23.06.2024 12:04 [12:03:14]line Смена: 392 ФФД: 1.0 [12:03:14]line ЗНМ: 0300000198 [12:03:14]line РНМ: 0000000000092771 [12:03:14]line Версия ККМ: 001 [12:03:14]line ФМ: 0000000000875083 [12:03:14]line ФД: 112457 [12:03:14]line ФПД: 179299385699289 [12:03:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T120408&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112457&fm=179299385699289&tin=02508201610067®Number=0000000000092771&sum=220900 [12:03:14]OFD Sender: Processing packet 112457 [packets to send 38, broken 37] [12:03:14]ProducePacketName [12:03:14]name=ofd_packets/00112457 [12:03:14]OFD Sender: To server: pG, [12:03:14]CommunicateWithHost lk.salyk.kg:30040 [12:03:14]ConnectInit lk.salyk.kg [12:03:14]written 0, free lines is 4095 [12:03:14]Connected sock=10 [12:03:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 69 07 01 F5 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 82 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 33 5F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 5E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 5B 00 00 00 00 07 04 06 00 E4 5E 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 00 00 00 F4 03 04 00 38 0F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B7 01 00 35 04 06 00 A3 12 64 31 6B D9 6A A7 58 9D 2E A7 81 7B [12:03:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 4C 47 00 CB 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B7 01 00 F4 03 04 00 26 A6 77 66 B6 04 01 00 00 13 10 AC 57 3B 05 8F 13 [12:03:15]CommunicateWithHost err = 0 [12:03:15]CheckOFDResponse [12:03:15]1017 (14) - 77093643461234 [12:03:15]1041 (16) - 0000000000875083 [12:03:15]1040 (4) - 112457 [12:03:15]1012 (4) - 23.06.2024 04:35 [12:03:15]1206 (1) - 0 [12:03:15]OFD Sender: Remove packet 112457 [12:03:15]ProducePacketName [12:03:15]name=ofd_packets/00112457 [12:03:15]NVStorageDeleteData [12:03:15]Write to MH i2c: 01 00 00 11 76 87 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: 01 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: 01 07 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: 01 07 00 11 76 00 00 00 00 00 D5 0C 6F [12:03:15]RasterBufferAndPrint [12:03:15]line [12:03:15]line [12:03:15]line [12:03:15]line [12:03:15]line [12:03:15]written 0, free lines is 3292 [12:03:15]MH_Cut [12:03:15]Write to MH i2c: D1 01 00 18 76 01 60 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: D1 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: D1 01 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: D1 01 00 18 76 00 5F [12:03:15]Write to MH i2c: 01 00 00 19 76 8F [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]OFD Sender: No OFD packet to send [12:03:16]*** Cut start [12:03:16]*** Partial cut [12:03:16]*** CUTSNS_PIN = 1 [12:03:16]*** CUTSNS_PIN = 0 [12:03:16]*** Brake cut motor [12:03:16]Read from MH i2c: 01 [12:03:16]MH_I2C_Read... [12:03:16]*** Stop cut motor [12:03:16]*** Cut end [12:03:16]Read from MH i2c: 01 07 00 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: 01 07 00 19 76 00 00 00 00 00 FF 0F A4 [12:03:16]process_action close_receipt done [12:03:16]requested_data is exist [12:03:16]produce_requested_data [12:03:16]requested_item fm.sn is exist - process it [12:03:16]wFMCommunicate request_size=4 [12:03:16]MH_SAM_APDU [12:03:16]CAPDU: 80 11 00 00 [12:03:16]Write to MH i2c: E2 08 00 1A 76 80 11 00 00 00 00 00 00 0A [12:03:16]Write i2c OK [12:03:16]MH_I2C_Read... [12:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:16]Read from MH i2c: E2 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: E2 17 00 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: E2 17 00 1A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [12:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:03:16]wFMCommunicate OK [12:03:16]requested_item fd.num is exist - process it [12:03:16]SAM_PROTO_GetFieldsCounters [12:03:16]wFMCommunicate request_size=4 [12:03:16]MH_SAM_APDU [12:03:16]CAPDU: 80 13 00 00 [12:03:16]Write to MH i2c: E2 08 00 1B 76 80 13 00 00 00 00 00 00 0D [12:03:16]Write i2c OK [12:03:16]MH_I2C_Read... [12:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:16]Read from MH i2c: E2 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: E2 62 00 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: E2 62 00 1B 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B7 01 00 0E 04 04 00 88 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 66 [12:03:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B7 01 00 0E 04 04 00 88 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 [12:03:16]wFMCommunicate OK [12:03:16]SAM_PROTO_GetFieldsCounters done [12:03:16]requested_item shift.num is exist - process it [12:03:16]requested_item shift.opened is exist - process it [12:03:16]req_shift_opened [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 1C 76 80 13 01 00 00 00 00 00 0F [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 1C 76 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2D [12:03:16]RAPDU: 09 00 01 BA 7B 77 66 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]req_shift_opened done [12:03:16]requested_item shift.open_date is exist - process it [12:03:16]req_shift_open_date [12:03:16]req_shift_open_date done [12:03:16]produce_requested_data done [12:03:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112457,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:03:16]process_action_free close_receipt [12:03:16]json_value_free [12:03:16]json_value_free done [12:03:16]process_json_proto returns [12:03:16]Send response to host [12:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112457,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:03:16]free response buf [12:03:16]execute_script done [12:03:16]execute_script returns [12:03:16]free content buf [12:03:16]Sock 7.Close socket [12:03:16]Sock 7.Thread stoped [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:30]accept exits with 9 [12:05:30]New connection [12:05:30]New thread 3066957156 created [12:05:30]Thread 3066813796 joined [12:05:30]Waiting for new connection... [12:05:30] Sock 9.Parse request [12:05:30]Sock 9.Check first char [12:05:30]Sock 9.First char is OK [12:05:30]request: POST /json_proto HTTP/1.0 [12:05:30]Method: POST [12:05:30]URL: /json_proto [12:05:30]Method is POST - this is cgi request [12:05:30]url: /json_proto [12:05:30]query_string will be loaded in cgi processing [12:05:30]execute_cgi json_proto POST (null) [12:05:30]execute_cgi path=json_proto method=POST [12:05:30]POST find Content-Length [12:05:30]Host: 172.17.59.68:8080 [12:05:30]Content-Length: 682 [12:05:30]Content-Type: application/json [12:05:30] [12:05:30]POST finish read [12:05:30]Found Content-Length = 682 [12:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:30]execute_script... [12:05: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)321137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:30]POST & json_proto [12:05:30]process_json_proto [12:05:30]json parsed OK: [12:05:30]protocol is kg_v1.0 [12:05:30]action value=close_receipt [12:05:30]process_action close_receipt [12:05:30]cmd_close_receipt [12:05:30]MH_GetDate [12:05:30]Write to MH i2c: F0 00 00 1D 76 82 [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: F0 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: F0 09 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: F0 09 00 1D 76 00 C2 0F 78 66 BC EC 60 65 A7 [12:05:30]GetLastDocTimeStamp 1719144248 [12:05:30]current date 1719144386 [12:05:30]FM_GetShiftState [12:05:30]SAM_PROTO_GetShiftState [12:05:30]wFMCommunicate request_size=4 [12:05:30]MH_SAM_APDU [12:05:30]CAPDU: 80 13 01 00 [12:05:30]Write to MH i2c: E2 08 00 1E 76 80 13 01 00 00 00 00 00 11 [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:30]Read from MH i2c: E2 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 0E 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 0E 00 1E 76 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2F [12:05:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:05:30]wFMCommunicate OK [12:05:30]SAM_PROTO_GetShiftState done [12:05:30]FM_GetShiftState done [12:05:30]opened in 1719106490 [12:05:30]opened+sec_in_day 1719192890 [12:05:30]quantity*price = 100064 [12:05:30]sum+1 = 100066 [12:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 59 23.06.2024 12:06 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112458 ФПД: 197173016914941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T120626&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112458&fm=197173016914941&tin=02508201610067®Number=0000000000092771&sum=100000 [12:05:31]StoreToDocumentArchive [12:05:31]shift 392 fd 112458 [12:05:31]save to /storage/0392/doc_00112458 [12:05:31]save last doc name /storage/0392/doc_00112458 to /storage/kkm_last_doc_name [12:05:31]save OK [12:05:31]Clear old archive folders... [12:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:31]tlvbuf is 01180430 [12:05:31]SAM_PROTO_ClearQueue [12:05:31]wFMCommunicate request_size=4 [12:05:31]MH_SAM_APDU [12:05:31]CAPDU: 80 09 00 00 [12:05:31]Write to MH i2c: E2 08 00 2B 76 80 09 00 00 00 00 00 00 13 [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:31]Read from MH i2c: E2 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 03 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 03 00 2B 76 00 90 00 15 [12:05:31]RAPDU: 90 00 [12:05:31]wFMCommunicate OK [12:05:31]SAM_PROTO_ClearQueue done [12:05:31]KKMCreateOFDPacket [12:05:31]OFDProtocolAddRootSTLVToBuf [12:05:31]FM_MakeSignedData [12:05:31]FM_MakeSignedData [12:05:31]SAM_PROTO_SignData [12:05:31]wFMCommunicate request_size=4 [12:05:31]MH_SAM_APDU [12:05:31]CAPDU: 80 0D 01 02 [12:05:31]Write to MH i2c: E2 08 00 2C 76 80 0D 01 02 00 00 00 00 1B [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:32]Read from MH i2c: E2 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 03 00 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 03 00 2C 76 00 90 00 16 [12:05:32]RAPDU: 90 00 [12:05:32]wFMCommunicate OK [12:05:32]wFMCommunicate request_size=255 [12:05:32]MH_SAM_APDU [12:05:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C2 0F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B7 01 00 35 04 06 00 B3 [12:05:32]Write to MH i2c: E2 02 01 2D 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C2 0F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B7 01 00 35 04 06 00 B3 00 00 47 [12:05:32]Write i2c OK [12:05:32]MH_I2C_Read... [12:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:32]Read from MH i2c: E2 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 03 00 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 03 00 2D 76 00 90 00 17 [12:05:32]RAPDU: 90 00 [12:05:32]wFMCommunicate OK [12:05:32]wFMCommunicate request_size=10 [12:05:32]MH_SAM_APDU [12:05:32]CAPDU: 80 0D 02 02 05 53 EB A1 EB FD [12:05:32]Write to MH i2c: E2 0D 00 2E 76 80 0D 02 02 05 00 53 EB A1 EB FD 00 00 EF [12:05:32]Write i2c OK [12:05:32]MH_I2C_Read... [12:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:32]Read from MH i2c: E2 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 03 00 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 03 00 2E 76 00 90 00 18 [12:05:32]RAPDU: 90 00 [12:05:32]wFMCommunicate OK [12:05:32]wFMCommunicate request_size=4 [12:05:32]MH_SAM_APDU [12:05:32]CAPDU: 80 0D 03 02 [12:05:32]Write to MH i2c: E2 08 00 2F 76 80 0D 03 02 00 00 00 00 20 [12:05:32]Write i2c OK [12:05:32]MH_I2C_Read... [12:05:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:32]Read from MH i2c: E2 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 0B 00 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 0B 00 2F 76 00 E8 02 51 C8 81 16 3A 31 90 00 26 [12:05:32]RAPDU: E8 02 51 C8 81 16 3A 31 90 00 [12:05:32]wFMCommunicate OK [12:05:32]SAM_PROTO_SignData done [12:05:32]FM_MakeSignedData done [12:05:32]CreateOFDProtocolMessage [12:05:32]wFMCommunicate request_size=4 [12:05:32]MH_SAM_APDU [12:05:32]CAPDU: 80 11 00 00 [12:05:32]Write to MH i2c: E2 08 00 30 76 80 11 00 00 00 00 00 00 20 [12:05:32]Write i2c OK [12:05:32]MH_I2C_Read... [12:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:32]Read from MH i2c: E2 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 17 00 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 17 00 30 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 72 [12:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:05:32]wFMCommunicate OK [12:05:32]CreateOFDProtocolMessage done [12:05:32]OFDSenderStorePacket 112458 [12:05:32]StoreOFDPacket docnum=112458 [12:05:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 80 07 01 E3 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C2 0F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B7 01 00 35 04 06 00 B3 53 EB A1 EB FD E8 02 51 C8 81 16 3A 31 [12:05:32]CheckFolder [12:05:32]dirname=/storage/ofd_packets [12:05:32]CheckFolder done [12:05:32]ProducePacketName [12:05:32]name=ofd_packets/00112458 [12:05:32]NVStorageSaveData ofd_packets/00112458 [12:05:32]File name is /storage/ofd_packets/00112458 [12:05:32]Write 301 bytes [12:05:32]NVStorageSaveData done [12:05:32]OFDSenderStorePacket done [12:05:32]KKMCreateOFDPacket done [12:05:32]NVStorageSaveData kkm_last_timestamp [12:05:32]File name is /storage/kkm_last_timestamp [12:05:32]Write 4 bytes [12:05:32]NVStorageSaveData done [12:05:32]ExternCall_PrintAddStr [12:05:32]wPrintStart [12:05:32]Write to MH i2c: 01 00 00 31 76 A7 [12:05:32]Write i2c OK [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: 01 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: 01 07 00 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: 01 07 00 31 76 00 00 00 00 00 FF 0F BC [12:05:32]RasterBufferAndPrint [12:05:32]line Счет N : (1)321137 [12:05:32]line ИНН: 02508201610067 [12:05:32]line Контрольно-Кассовый Чек [12:05:32]line ПРОДАЖА [12:05:32]line ТРК (МРК, ГНК) : 11 [12:05:32]line Товар: 2710124130 [12:05:32]line Аи-92-К-5 [12:05:32]line 15.070 * 66.40 [12:05:32]line = 1000.65 [12:05:32]line НДС 12% НСП 1% [12:05:32]line > о реализуемом товаре [12:05:32]line ОКРУГЛЕНИЕ: -0.65 [12:05:32]line ИТОГО: 1000.00 [12:05:32]line Внесено: 1000.00 [12:05:32]line СДАЧА: 0.00 [12:05:32]line НСП 1% : 8.85 [12:05:32]line НДС 12% : 106.26 [12:05:32]line Наличными: 1000.00 [12:05:32]line Безнал.: 0.00 [12:05:32]line Место: АЗС № 65 "Партнер Нефть" [12:05:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:05:32]line СНО: Общий режим [12:05:32]line Чек 59 23.06.2024 12:06 [12:05:32]line Смена: 392 ФФД: 1.0 [12:05:32]line ЗНМ: 0300000198 [12:05:32]line РНМ: 0000000000092771 [12:05:32]line Версия ККМ: 001 [12:05:32]line ФМ: 0000000000875083 [12:05:32]line ФД: 112458 [12:05:32]line ФПД: 197173016914941 [12:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T120626&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112458&fm=197173016914941&tin=02508201610067®Number=0000000000092771&sum=100000 [12:05:32]OFD Sender: Processing packet 112458 [packets to send 38, broken 37] [12:05:32]ProducePacketName [12:05:32]name=ofd_packets/00112458 [12:05:32]OFD Sender: To server: pG, [12:05:32]CommunicateWithHost lk.salyk.kg:30040 [12:05:32]ConnectInit lk.salyk.kg [12:05:32]written 0, free lines is 4095 [12:05:32]Connected sock=10 [12:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 80 07 01 E3 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C2 0F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B7 01 00 35 04 06 00 B3 53 EB A1 EB FD E8 02 51 C8 81 16 3A 31 [12:05:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F6 8A 47 00 7A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B7 01 00 F4 03 04 00 B0 A6 77 66 B6 04 01 00 00 F8 DF 37 5A B0 79 E9 68 [12:05:33]CommunicateWithHost err = 0 [12:05:33]CheckOFDResponse [12:05:33]1017 (14) - 77093643461234 [12:05:33]1041 (16) - 0000000000875083 [12:05:33]1040 (4) - 112458 [12:05:33]1012 (4) - 23.06.2024 04:38 [12:05:33]1206 (1) - 0 [12:05:33]OFD Sender: Remove packet 112458 [12:05:33]ProducePacketName [12:05:33]name=ofd_packets/00112458 [12:05:33]NVStorageDeleteData [12:05:33]Write to MH i2c: 01 00 00 5C 76 D2 [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: 01 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: 01 07 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: 01 07 00 5C 76 00 00 00 00 00 CF 0C B4 [12:05:33]RasterBufferAndPrint [12:05:33]line [12:05:33]line [12:05:33]line [12:05:33]line [12:05:33]line [12:05:33]written 0, free lines is 3286 [12:05:33]MH_Cut [12:05:33]Write to MH i2c: D1 01 00 63 76 01 AB [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: D1 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: D1 01 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: D1 01 00 63 76 00 AA [12:05:33]Write to MH i2c: 01 00 00 64 76 DA [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]OFD Sender: No OFD packet to send [12:05:34]*** Cut start [12:05:34]*** Partial cut [12:05:34]*** CUTSNS_PIN = 1 [12:05:34]*** CUTSNS_PIN = 0 [12:05:34]*** Brake cut motor [12:05:34]Read from MH i2c: 01 [12:05:34]MH_I2C_Read... [12:05:34]*** Stop cut motor [12:05:34]*** Cut end [12:05:34]Read from MH i2c: 01 07 00 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: 01 07 00 64 76 00 00 00 00 00 FF 0F EF [12:05:34]process_action close_receipt done [12:05:34]requested_data is exist [12:05:34]produce_requested_data [12:05:34]requested_item fm.sn is exist - process it [12:05:34]wFMCommunicate request_size=4 [12:05:34]MH_SAM_APDU [12:05:34]CAPDU: 80 11 00 00 [12:05:34]Write to MH i2c: E2 08 00 65 76 80 11 00 00 00 00 00 00 55 [12:05:34]Write i2c OK [12:05:34]MH_I2C_Read... [12:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:34]Read from MH i2c: E2 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: E2 17 00 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: E2 17 00 65 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [12:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:05:34]wFMCommunicate OK [12:05:34]requested_item fd.num is exist - process it [12:05:34]SAM_PROTO_GetFieldsCounters [12:05:34]wFMCommunicate request_size=4 [12:05:34]MH_SAM_APDU [12:05:34]CAPDU: 80 13 00 00 [12:05:34]Write to MH i2c: E2 08 00 66 76 80 13 00 00 00 00 00 00 58 [12:05:34]Write i2c OK [12:05:34]MH_I2C_Read... [12:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:34]Read from MH i2c: E2 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: E2 62 00 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: E2 62 00 66 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B7 01 00 0E 04 04 00 88 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 B5 [12:05:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B7 01 00 0E 04 04 00 88 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 [12:05:34]wFMCommunicate OK [12:05:34]SAM_PROTO_GetFieldsCounters done [12:05:34]requested_item shift.num is exist - process it [12:05:34]requested_item shift.opened is exist - process it [12:05:34]req_shift_opened [12:05:34]FM_GetShiftState [12:05:34]SAM_PROTO_GetShiftState [12:05:34]wFMCommunicate request_size=4 [12:05:34]MH_SAM_APDU [12:05:34]CAPDU: 80 13 01 00 [12:05:34]Write to MH i2c: E2 08 00 67 76 80 13 01 00 00 00 00 00 5A [12:05:34]Write i2c OK [12:05:34]MH_I2C_Read... [12:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:34]Read from MH i2c: E2 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: E2 0E 00 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: E2 0E 00 67 76 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 78 [12:05:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:05:34]wFMCommunicate OK [12:05:34]SAM_PROTO_GetShiftState done [12:05:34]FM_GetShiftState done [12:05:34]req_shift_opened done [12:05:34]requested_item shift.open_date is exist - process it [12:05:34]req_shift_open_date [12:05:34]req_shift_open_date done [12:05:34]produce_requested_data done [12:05:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112458,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:05:34]process_action_free close_receipt [12:05:34]json_value_free [12:05:34]json_value_free done [12:05:34]process_json_proto returns [12:05:34]Send response to host [12:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112458,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:05:34]free response buf [12:05:34]execute_script done [12:05:34]execute_script returns [12:05:34]free content buf [12:05:34]Sock 9.Close socket [12:05:34]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:14]accept exits with 7 [12:07:14]New connection [12:07:14]New thread 3066813796 created [12:07:14]Thread 3066957156 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.59.68:8080 [12:07:14]Content-Length: 677 [12:07:14]Content-Type: application/json [12:07:14] [12:07:14]POST finish read [12:07:14]Found Content-Length = 677 [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)321138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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: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)321138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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: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 68 76 CD [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 68 76 00 29 10 78 66 BC EC 60 65 5A [12:07:14]GetLastDocTimeStamp 1719144386 [12:07:14]current date 1719144489 [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 69 76 80 13 01 00 00 00 00 00 5C [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 69 76 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 7A [12:07:14]RAPDU: 09 00 01 BA 7B 77 66 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 1719106490 [12:07:14]opened+sec_in_day 1719192890 [12:07:14]quantity*price = 30012 [12:07:14]sum+1 = 30014 [12:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 60 23.06.2024 12:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112459 ФПД: 219024432213464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T120809&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112459&fm=219024432213464&tin=02508201610067®Number=0000000000092771&sum=30000 [12:07:15]StoreToDocumentArchive [12:07:15]shift 392 fd 112459 [12:07:15]save to /storage/0392/doc_00112459 [12:07:15]save last doc name /storage/0392/doc_00112459 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 012E3090 [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 76 76 80 09 00 00 00 00 00 00 5E [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 76 76 00 90 00 60 [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 77 76 80 0D 01 02 00 00 00 00 66 [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 77 76 00 90 00 61 [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 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 3C 00 00 00 F4 03 04 00 29 10 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B7 01 00 35 04 06 00 C7 [12:07:15]Write to MH i2c: E2 02 01 78 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 3C 00 00 00 F4 03 04 00 29 10 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B7 01 00 35 04 06 00 C7 00 00 5E [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 78 76 00 90 00 62 [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 33 99 7A AD D8 [12:07:15]Write to MH i2c: E2 0D 00 79 76 80 0D 02 02 05 00 33 99 7A AD D8 00 00 3E [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 79 76 00 90 00 63 [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 7A 76 80 0D 03 02 00 00 00 00 6B [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 7A 76 00 BB 37 D9 47 D5 23 25 A4 90 00 3F [12:07:15]RAPDU: BB 37 D9 47 D5 23 25 A4 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 7B 76 80 11 00 00 00 00 00 00 6B [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 7B 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [12:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:07:15]wFMCommunicate OK [12:07:15]CreateOFDProtocolMessage done [12:07:15]OFDSenderStorePacket 112459 [12:07:15]StoreOFDPacket docnum=112459 [12:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 54 07 01 1F 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 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 3C 00 00 00 F4 03 04 00 29 10 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B7 01 00 35 04 06 00 C7 33 99 7A AD D8 BB 37 D9 47 D5 23 25 A4 [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/00112459 [12:07:15]NVStorageSaveData ofd_packets/00112459 [12:07:15]File name is /storage/ofd_packets/00112459 [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 7C 76 F2 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 7C 76 00 00 00 00 00 FF 0F 07 [12:07:15]RasterBufferAndPrint [12:07:15]line Счет N : (1)321138 [12:07:15]line ИНН: 02508201610067 [12:07:15]line Контрольно-Кассовый Чек [12:07:15]line ПРОДАЖА [12:07:15]line ТРК (МРК, ГНК) : 11 [12:07:15]line Товар: 2710124130 [12:07:15]line Аи-92-К-5 [12:07:15]line 4.520 * 66.40 [12:07:15]line = 300.13 [12:07:15]line НДС 12% НСП 1% [12:07:15]line > о реализуемом товаре [12:07:15]line ОКРУГЛЕНИЕ: -0.13 [12:07:15]line ИТОГО: 300.00 [12:07:15]line Внесено: 300.00 [12:07:15]line СДАЧА: 0.00 [12:07:15]line НСП 1% : 2.66 [12:07:15]line НДС 12% : 31.87 [12:07:15]line Наличными: 300.00 [12:07:15]line Безнал.: 0.00 [12:07:15]line Место: АЗС № 65 "Партнер Нефть" [12:07:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:07:15]line СНО: Общий режим [12:07:15]line Чек 60 23.06.2024 12:08 [12:07:15]line Смена: 392 ФФД: 1.0 [12:07:15]line ЗНМ: 0300000198 [12:07:15]line РНМ: 0000000000092771 [12:07:15]line Версия ККМ: 001 [12:07:15]line ФМ: 0000000000875083 [12:07:15]line ФД: 112459 [12:07:15]line ФПД: 219024432213464 [12:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T120809&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112459&fm=219024432213464&tin=02508201610067®Number=0000000000092771&sum=30000 [12:07:16]OFD Sender: Processing packet 112459 [packets to send 38, broken 37] [12:07:16]ProducePacketName [12:07:16]name=ofd_packets/00112459 [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]written 0, free lines is 4095 [12:07:16]Connected sock=10 [12:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 54 07 01 1F 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 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 3C 00 00 00 F4 03 04 00 29 10 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B7 01 00 35 04 06 00 C7 33 99 7A AD D8 BB 37 D9 47 D5 23 25 A4 [12:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 40 D8 47 00 75 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B7 01 00 F4 03 04 00 17 A7 77 66 B6 04 01 00 00 E0 CE 43 AB A1 4F 47 3F [12:07:16]CommunicateWithHost err = 0 [12:07:16]CheckOFDResponse [12:07:16]1017 (14) - 77093643461234 [12:07:16]1041 (16) - 0000000000875083 [12:07:16]1040 (4) - 112459 [12:07:16]1012 (4) - 23.06.2024 04:39 [12:07:16]1206 (1) - 0 [12:07:16]OFD Sender: Remove packet 112459 [12:07:16]ProducePacketName [12:07:16]name=ofd_packets/00112459 [12:07:16]NVStorageDeleteData [12:07:16]Write to MH i2c: 01 00 00 A7 76 1D [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 A7 76 00 00 00 00 00 CD 0C FD [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 3283 [12:07:16]MH_Cut [12:07:16]Write to MH i2c: D1 01 00 AE 76 01 F6 [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 AE 76 00 F5 [12:07:16]Write to MH i2c: 01 00 00 AF 76 25 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [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:17]*** 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 AF 76 00 00 00 00 00 FF 0F 3A [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 B0 76 80 11 00 00 00 00 00 00 A0 [12:07:18]Write i2c OK [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 [12:07:18]MH_I2C_Read... [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 B0 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [12:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 B1 76 80 13 00 00 00 00 00 00 A3 [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 B1 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B7 01 00 0E 04 04 00 88 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 04 [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 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B7 01 00 0E 04 04 00 88 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 [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 B2 76 80 13 01 00 00 00 00 00 A5 [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 B2 76 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C3 [12:07:18]RAPDU: 09 00 01 BA 7B 77 66 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":"0000000000875083","fd.num":112459,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [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":"0000000000875083","fd.num":112459,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [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:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:00]accept exits with 9 [12:09:00]New connection [12:09:00]New thread 3066957156 created [12:09:00]Thread 3066813796 joined [12:09:00]Waiting for new connection... [12:09:00] Sock 9.Parse request [12:09:00]Sock 9.Check first char [12:09:00]Sock 9.First char is OK [12:09:00]request: POST /json_proto HTTP/1.0 [12:09:00]Method: POST [12:09:00]URL: /json_proto [12:09:00]Method is POST - this is cgi request [12:09:00]url: /json_proto [12:09:00]query_string will be loaded in cgi processing [12:09:00]execute_cgi json_proto POST (null) [12:09:00]execute_cgi path=json_proto method=POST [12:09:00]POST find Content-Length [12:09:00]Host: 172.17.59.68:8080 [12:09:00]Content-Length: 677 [12:09:00]Content-Type: application/json [12:09:00] [12:09:00]POST finish read [12:09:00]Found Content-Length = 677 [12:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:00]execute_script... [12:09: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)321139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:00]POST & json_proto [12:09:00]process_json_proto [12:09:00]json parsed OK: [12:09:00]protocol is kg_v1.0 [12:09:00]action value=close_receipt [12:09:00]process_action close_receipt [12:09:00]cmd_close_receipt [12:09:00]MH_GetDate [12:09:00]Write to MH i2c: F0 00 00 B3 76 18 [12:09:00]Write i2c OK [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: F0 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: F0 09 00 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: F0 09 00 B3 76 00 93 10 78 66 BC EC 60 65 0F [12:09:00]GetLastDocTimeStamp 1719144489 [12:09:00]current date 1719144595 [12:09:00]FM_GetShiftState [12:09:00]SAM_PROTO_GetShiftState [12:09:00]wFMCommunicate request_size=4 [12:09:00]MH_SAM_APDU [12:09:00]CAPDU: 80 13 01 00 [12:09:00]Write to MH i2c: E2 08 00 B4 76 80 13 01 00 00 00 00 00 A7 [12:09:00]Write i2c OK [12:09:00]MH_I2C_Read... [12:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:00]Read from MH i2c: E2 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 0E 00 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 0E 00 B4 76 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C5 [12:09:00]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:09:00]wFMCommunicate OK [12:09:00]SAM_PROTO_GetShiftState done [12:09:00]FM_GetShiftState done [12:09:00]opened in 1719106490 [12:09:00]opened+sec_in_day 1719192890 [12:09:00]quantity*price = 35059 [12:09:00]sum+1 = 35060 [12:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 61 23.06.2024 12:09 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112460 ФПД: 168192622224238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T120955&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112460&fm=168192622224238&tin=02508201610067®Number=0000000000092771&sum=35000 [12:09:01]StoreToDocumentArchive [12:09:01]shift 392 fd 112460 [12:09:01]save to /storage/0392/doc_00112460 [12:09:01]save last doc name /storage/0392/doc_00112460 to /storage/kkm_last_doc_name [12:09:01]save OK [12:09:01]Clear old archive folders... [12:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:01]tlvbuf is 013548F0 [12:09:01]SAM_PROTO_ClearQueue [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 09 00 00 [12:09:01]Write to MH i2c: E2 08 00 C1 76 80 09 00 00 00 00 00 00 A9 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 C1 76 00 90 00 AB [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_ClearQueue done [12:09:01]KKMCreateOFDPacket [12:09:01]OFDProtocolAddRootSTLVToBuf [12:09:01]FM_MakeSignedData [12:09:01]FM_MakeSignedData [12:09:01]SAM_PROTO_SignData [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 01 02 [12:09:01]Write to MH i2c: E2 08 00 C2 76 80 0D 01 02 00 00 00 00 B1 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 C2 76 00 90 00 AC [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=255 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 93 10 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B7 01 00 35 04 06 00 98 [12:09:01]Write to MH i2c: E2 02 01 C3 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 93 10 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B7 01 00 35 04 06 00 98 00 00 26 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 C3 76 00 90 00 AD [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=10 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 02 02 05 F8 65 80 63 6E [12:09:01]Write to MH i2c: E2 0D 00 C4 76 80 0D 02 02 05 00 F8 65 80 63 6E 00 00 6C [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 C4 76 00 90 00 AE [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 03 02 [12:09:01]Write to MH i2c: E2 08 00 C5 76 80 0D 03 02 00 00 00 00 B6 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0B 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0B 00 C5 76 00 00 55 5D EB 6A D1 02 5D 90 00 EE [12:09:01]RAPDU: 00 55 5D EB 6A D1 02 5D 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_SignData done [12:09:01]FM_MakeSignedData done [12:09:01]CreateOFDProtocolMessage [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 11 00 00 [12:09:01]Write to MH i2c: E2 08 00 C6 76 80 11 00 00 00 00 00 00 B6 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 17 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 17 00 C6 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [12:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:09:01]wFMCommunicate OK [12:09:01]CreateOFDProtocolMessage done [12:09:01]OFDSenderStorePacket 112460 [12:09:01]StoreOFDPacket docnum=112460 [12:09:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 9E 07 01 60 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 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 93 10 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B7 01 00 35 04 06 00 98 F8 65 80 63 6E 00 55 5D EB 6A D1 02 5D [12:09:01]CheckFolder [12:09:01]dirname=/storage/ofd_packets [12:09:01]CheckFolder done [12:09:01]ProducePacketName [12:09:01]name=ofd_packets/00112460 [12:09:01]NVStorageSaveData ofd_packets/00112460 [12:09:01]File name is /storage/ofd_packets/00112460 [12:09:01]Write 301 bytes [12:09:01]NVStorageSaveData done [12:09:01]OFDSenderStorePacket done [12:09:01]KKMCreateOFDPacket done [12:09:01]NVStorageSaveData kkm_last_timestamp [12:09:01]File name is /storage/kkm_last_timestamp [12:09:01]Write 4 bytes [12:09:01]NVStorageSaveData done [12:09:01]ExternCall_PrintAddStr [12:09:01]wPrintStart [12:09:01]Write to MH i2c: 01 00 00 C7 76 3D [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 07 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 07 00 C7 76 00 00 00 00 00 FF 0F 52 [12:09:01]RasterBufferAndPrint [12:09:01]line Счет N : (1)321139 [12:09:01]line ИНН: 02508201610067 [12:09:01]line Контрольно-Кассовый Чек [12:09:01]line ПРОДАЖА [12:09:01]line ТРК (МРК, ГНК) : 11 [12:09:01]line Товар: 2710124130 [12:09:01]line Аи-92-К-5 [12:09:01]line 5.280 * 66.40 [12:09:01]line = 350.59 [12:09:01]line НДС 12% НСП 1% [12:09:01]line > о реализуемом товаре [12:09:01]line ОКРУГЛЕНИЕ: -0.59 [12:09:01]line ИТОГО: 350.00 [12:09:01]line Внесено: 350.00 [12:09:01]line СДАЧА: 0.00 [12:09:01]line НСП 1% : 3.10 [12:09:01]line НДС 12% : 37.23 [12:09:01]line Наличными: 350.00 [12:09:01]line Безнал.: 0.00 [12:09:01]line Место: АЗС № 65 "Партнер Нефть" [12:09:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:09:01]line СНО: Общий режим [12:09:01]line Чек 61 23.06.2024 12:09 [12:09:01]line Смена: 392 ФФД: 1.0 [12:09:01]line ЗНМ: 0300000198 [12:09:01]line РНМ: 0000000000092771 [12:09:01]line Версия ККМ: 001 [12:09:01]line ФМ: 0000000000875083 [12:09:01]line ФД: 112460 [12:09:01]line ФПД: 168192622224238 [12:09:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T120955&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112460&fm=168192622224238&tin=02508201610067®Number=0000000000092771&sum=35000 [12:09:01]written 0, free lines is 4095 [12:09:01]OFD Sender: Processing packet 112460 [packets to send 38, broken 37] [12:09:01]ProducePacketName [12:09:01]name=ofd_packets/00112460 [12:09:01]OFD Sender: To server: pG, [12:09:01]CommunicateWithHost lk.salyk.kg:30040 [12:09:01]ConnectInit lk.salyk.kg [12:09:02]Connected sock=10 [12:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 9E 07 01 60 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 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 93 10 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B7 01 00 35 04 06 00 98 F8 65 80 63 6E 00 55 5D EB 6A D1 02 5D [12:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9E 5C 47 00 C0 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B7 01 00 F4 03 04 00 81 A7 77 66 B6 04 01 00 00 EF 82 14 14 51 65 1F 28 [12:09:02]CommunicateWithHost err = 0 [12:09:02]CheckOFDResponse [12:09:02]1017 (14) - 77093643461234 [12:09:02]1041 (16) - 0000000000875083 [12:09:02]1040 (4) - 112460 [12:09:02]1012 (4) - 23.06.2024 04:41 [12:09:02]1206 (1) - 0 [12:09:02]OFD Sender: Remove packet 112460 [12:09:02]ProducePacketName [12:09:02]name=ofd_packets/00112460 [12:09:02]NVStorageDeleteData [12:09:02]Write to MH i2c: 01 00 00 F2 76 68 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 F2 76 00 00 00 00 00 E6 0C 61 [12:09:02]RasterBufferAndPrint [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]written 0, free lines is 3312 [12:09:02]MH_Cut [12:09:02]Write to MH i2c: D1 01 00 F9 76 01 41 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 01 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 01 00 F9 76 00 40 [12:09:02]Write to MH i2c: 01 00 00 FA 76 70 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]OFD Sender: No OFD packet to send [12:09:03]*** Cut start [12:09:03]*** Partial cut [12:09:03]*** CUTSNS_PIN = 1 [12:09:03]*** CUTSNS_PIN = 0 [12:09:03]*** Brake cut motor [12:09:03]Read from MH i2c: 01 [12:09:03]MH_I2C_Read... [12:09:03]*** Stop cut motor [12:09:03]*** Cut end [12:09:03]Read from MH i2c: 01 07 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: 01 07 00 FA 76 00 00 00 00 00 FF 0F 85 [12:09:03]process_action close_receipt done [12:09:03]requested_data is exist [12:09:03]produce_requested_data [12:09:03]requested_item fm.sn is exist - process it [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 11 00 00 [12:09:03]Write to MH i2c: E2 08 00 FB 76 80 11 00 00 00 00 00 00 EB [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 17 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 17 00 FB 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [12:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:09:03]wFMCommunicate OK [12:09:03]requested_item fd.num is exist - process it [12:09:03]SAM_PROTO_GetFieldsCounters [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 13 00 00 [12:09:03]Write to MH i2c: E2 08 00 FC 76 80 13 00 00 00 00 00 00 EE [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 62 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 62 00 FC 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B7 01 00 0E 04 04 00 88 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 53 [12:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B7 01 00 0E 04 04 00 88 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 [12:09:03]wFMCommunicate OK [12:09:03]SAM_PROTO_GetFieldsCounters done [12:09:03]requested_item shift.num is exist - process it [12:09:03]requested_item shift.opened is exist - process it [12:09:03]req_shift_opened [12:09:03]FM_GetShiftState [12:09:03]SAM_PROTO_GetShiftState [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 13 01 00 [12:09:03]Write to MH i2c: E2 08 00 FD 76 80 13 01 00 00 00 00 00 F0 [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 0E 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 0E 00 FD 76 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0E [12:09:03]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:09:03]wFMCommunicate OK [12:09:03]SAM_PROTO_GetShiftState done [12:09:03]FM_GetShiftState done [12:09:03]req_shift_opened done [12:09:03]requested_item shift.open_date is exist - process it [12:09:03]req_shift_open_date [12:09:03]req_shift_open_date done [12:09:03]produce_requested_data done [12:09:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112460,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:09:03]process_action_free close_receipt [12:09:03]json_value_free [12:09:03]json_value_free done [12:09:03]process_json_proto returns [12:09:03]Send response to host [12:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112460,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:09:03]free response buf [12:09:03]execute_script done [12:09:03]execute_script returns [12:09:03]free content buf [12:09:03]Sock 9.Close socket [12:09:03]Sock 9.Thread stoped [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:55]accept exits with 7 [12:10:55]New connection [12:10:55]New thread 3066813796 created [12:10:55]Thread 3066957156 joined [12:10:55]Waiting for new connection... [12:10:55] Sock 7.Parse request [12:10:55]Sock 7.Check first char [12:10:55]Sock 7.First char is OK [12:10:55]request: POST /json_proto HTTP/1.0 [12:10:55]Method: POST [12:10:55]URL: /json_proto [12:10:55]Method is POST - this is cgi request [12:10:55]url: /json_proto [12:10:55]query_string will be loaded in cgi processing [12:10:55]execute_cgi json_proto POST (null) [12:10:55]execute_cgi path=json_proto method=POST [12:10:55]POST find Content-Length [12:10:55]Host: 172.17.59.68:8080 [12:10:55]Content-Length: 682 [12:10:55]Content-Type: application/json [12:10:55] [12:10:55]POST finish read [12:10:55]Found Content-Length = 682 [12:10:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "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" ] } } [12:10:55]execute_script... [12:10: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)321140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "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" ] } } [12:10:55]POST & json_proto [12:10:55]process_json_proto [12:10:55]json parsed OK: [12:10:55]protocol is kg_v1.0 [12:10:55]action value=close_receipt [12:10:55]process_action close_receipt [12:10:55]cmd_close_receipt [12:10:55]MH_GetDate [12:10:55]Write to MH i2c: F0 00 00 FE 76 63 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: F0 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: F0 09 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: F0 09 00 FE 76 00 07 11 78 66 BC EC 60 65 CF [12:10:55]GetLastDocTimeStamp 1719144595 [12:10:55]current date 1719144711 [12:10:55]FM_GetShiftState [12:10:55]SAM_PROTO_GetShiftState [12:10:55]wFMCommunicate request_size=4 [12:10:55]MH_SAM_APDU [12:10:55]CAPDU: 80 13 01 00 [12:10:55]Write to MH i2c: E2 08 00 FF 76 80 13 01 00 00 00 00 00 F2 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:55]Read from MH i2c: E2 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 0E 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 0E 00 FF 76 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 10 [12:10:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:10:55]wFMCommunicate OK [12:10:55]SAM_PROTO_GetShiftState done [12:10:55]FM_GetShiftState done [12:10:55]opened in 1719106490 [12:10:55]opened+sec_in_day 1719192890 [12:10:55]quantity*price = 140037 [12:10:55]sum+1 = 140039 [12:10:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 62 23.06.2024 12:11 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112461 ФПД: 82065991211265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121151&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112461&fm=82065991211265&tin=02508201610067®Number=0000000000092771&sum=140000 [12:10:56]StoreToDocumentArchive [12:10:56]shift 392 fd 112461 [12:10:56]save to /storage/0392/doc_00112461 [12:10:56]save last doc name /storage/0392/doc_00112461 to /storage/kkm_last_doc_name [12:10:56]save OK [12:10:56]Clear old archive folders... [12:10:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:56]tlvbuf is 012C1870 [12:10:56]SAM_PROTO_ClearQueue [12:10:56]wFMCommunicate request_size=4 [12:10:56]MH_SAM_APDU [12:10:56]CAPDU: 80 09 00 00 [12:10:56]Write to MH i2c: E2 08 00 0C 77 80 09 00 00 00 00 00 00 F5 [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:56]Read from MH i2c: E2 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 03 00 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 03 00 0C 77 00 90 00 F7 [12:10:56]RAPDU: 90 00 [12:10:56]wFMCommunicate OK [12:10:56]SAM_PROTO_ClearQueue done [12:10:56]KKMCreateOFDPacket [12:10:56]OFDProtocolAddRootSTLVToBuf [12:10:56]FM_MakeSignedData [12:10:56]FM_MakeSignedData [12:10:56]SAM_PROTO_SignData [12:10:56]wFMCommunicate request_size=4 [12:10:56]MH_SAM_APDU [12:10:56]CAPDU: 80 0D 01 02 [12:10:56]Write to MH i2c: E2 08 00 0D 77 80 0D 01 02 00 00 00 00 FD [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:56]Read from MH i2c: E2 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 03 00 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 03 00 0D 77 00 90 00 F8 [12:10:56]RAPDU: 90 00 [12:10:56]wFMCommunicate OK [12:10:56]wFMCommunicate request_size=255 [12:10:56]MH_SAM_APDU [12:10:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 07 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B7 01 00 35 04 06 00 4A [12:10:56]Write to MH i2c: E2 02 01 0E 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 07 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B7 01 00 35 04 06 00 4A 00 00 2F [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:56]Read from MH i2c: E2 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 03 00 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 03 00 0E 77 00 90 00 F9 [12:10:56]RAPDU: 90 00 [12:10:56]wFMCommunicate OK [12:10:56]wFMCommunicate request_size=10 [12:10:56]MH_SAM_APDU [12:10:56]CAPDU: 80 0D 02 02 05 A3 7A 41 19 01 [12:10:56]Write to MH i2c: E2 0D 00 0F 77 80 0D 02 02 05 00 A3 7A 41 19 01 00 00 82 [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:56]Read from MH i2c: E2 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 03 00 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 03 00 0F 77 00 90 00 FA [12:10:56]RAPDU: 90 00 [12:10:56]wFMCommunicate OK [12:10:56]wFMCommunicate request_size=4 [12:10:56]MH_SAM_APDU [12:10:56]CAPDU: 80 0D 03 02 [12:10:56]Write to MH i2c: E2 08 00 10 77 80 0D 03 02 00 00 00 00 02 [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:57]Read from MH i2c: E2 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: E2 0B 00 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: E2 0B 00 10 77 00 0E 22 0C BF D5 FD F4 B0 90 00 74 [12:10:57]RAPDU: 0E 22 0C BF D5 FD F4 B0 90 00 [12:10:57]wFMCommunicate OK [12:10:57]SAM_PROTO_SignData done [12:10:57]FM_MakeSignedData done [12:10:57]CreateOFDProtocolMessage [12:10:57]wFMCommunicate request_size=4 [12:10:57]MH_SAM_APDU [12:10:57]CAPDU: 80 11 00 00 [12:10:57]Write to MH i2c: E2 08 00 11 77 80 11 00 00 00 00 00 00 02 [12:10:57]Write i2c OK [12:10:57]MH_I2C_Read... [12:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:57]Read from MH i2c: E2 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: E2 17 00 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: E2 17 00 11 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [12:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:10:57]wFMCommunicate OK [12:10:57]CreateOFDProtocolMessage done [12:10:57]OFDSenderStorePacket 112461 [12:10:57]StoreOFDPacket docnum=112461 [12:10:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A8 5A 07 01 FD 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 07 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B7 01 00 35 04 06 00 4A A3 7A 41 19 01 0E 22 0C BF D5 FD F4 B0 [12:10:57]CheckFolder [12:10:57]dirname=/storage/ofd_packets [12:10:57]CheckFolder done [12:10:57]ProducePacketName [12:10:57]name=ofd_packets/00112461 [12:10:57]NVStorageSaveData ofd_packets/00112461 [12:10:57]File name is /storage/ofd_packets/00112461 [12:10:57]Write 301 bytes [12:10:57]NVStorageSaveData done [12:10:57]OFDSenderStorePacket done [12:10:57]KKMCreateOFDPacket done [12:10:57]NVStorageSaveData kkm_last_timestamp [12:10:57]File name is /storage/kkm_last_timestamp [12:10:57]Write 4 bytes [12:10:57]NVStorageSaveData done [12:10:57]ExternCall_PrintAddStr [12:10:57]wPrintStart [12:10:57]Write to MH i2c: 01 00 00 12 77 89 [12:10:57]Write i2c OK [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: 01 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: 01 07 00 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: 01 07 00 12 77 00 00 00 00 00 FF 0F 9E [12:10:57]RasterBufferAndPrint [12:10:57]line Счет N : (1)321140 [12:10:57]line ИНН: 02508201610067 [12:10:57]line Контрольно-Кассовый Чек [12:10:57]line ПРОДАЖА [12:10:57]line ТРК (МРК, ГНК) : 11 [12:10:57]line Товар: 2710124130 [12:10:57]line Аи-92-К-5 [12:10:57]line 21.090 * 66.40 [12:10:57]line = 1400.38 [12:10:57]line НДС 12% НСП 1% [12:10:57]line > о реализуемом товаре [12:10:57]line ОКРУГЛЕНИЕ: -0.38 [12:10:57]line ИТОГО: 1400.00 [12:10:57]line Внесено: 1400.00 [12:10:57]line СДАЧА: 0.00 [12:10:57]line НСП 1% : 12.39 [12:10:57]line НДС 12% : 148.71 [12:10:57]line Наличными: 1400.00 [12:10:57]line Безнал.: 0.00 [12:10:57]line Место: АЗС № 65 "Партнер Нефть" [12:10:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:10:57]line СНО: Общий режим [12:10:57]line Чек 62 23.06.2024 12:11 [12:10:57]line Смена: 392 ФФД: 1.0 [12:10:57]line ЗНМ: 0300000198 [12:10:57]line РНМ: 0000000000092771 [12:10:57]line Версия ККМ: 001 [12:10:57]line ФМ: 0000000000875083 [12:10:57]line ФД: 112461 [12:10:57]line ФПД: 82065991211265 [12:10:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121151&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112461&fm=82065991211265&tin=02508201610067®Number=0000000000092771&sum=140000 [12:10:57]OFD Sender: Processing packet 112461 [packets to send 38, broken 37] [12:10:57]ProducePacketName [12:10:57]name=ofd_packets/00112461 [12:10:57]OFD Sender: To server: pG, [12:10:57]CommunicateWithHost lk.salyk.kg:30040 [12:10:57]ConnectInit lk.salyk.kg [12:10:57]written 0, free lines is 4095 [12:10:57]Connected sock=10 [12:10:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A8 5A 07 01 FD 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 07 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B7 01 00 35 04 06 00 4A A3 7A 41 19 01 0E 22 0C BF D5 FD F4 B0 [12:10:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 71 0D 47 00 A5 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B7 01 00 F4 03 04 00 F4 A7 77 66 B6 04 01 00 00 1C 8B 37 4F 7F 36 8E 70 [12:10:57]CommunicateWithHost err = 0 [12:10:57]CheckOFDResponse [12:10:57]1017 (14) - 77093643461234 [12:10:57]1041 (16) - 0000000000875083 [12:10:57]1040 (4) - 112461 [12:10:57]1012 (4) - 23.06.2024 04:43 [12:10:57]1206 (1) - 0 [12:10:57]OFD Sender: Remove packet 112461 [12:10:57]ProducePacketName [12:10:57]name=ofd_packets/00112461 [12:10:57]NVStorageDeleteData [12:10:57]Write to MH i2c: 01 00 00 3D 77 B4 [12:10:57]Write i2c OK [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: 01 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: 01 07 00 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: 01 07 00 3D 77 00 00 00 00 00 CD 0C 94 [12:10:57]RasterBufferAndPrint [12:10:57]line [12:10:57]line [12:10:57]line [12:10:57]line [12:10:57]line [12:10:57]written 0, free lines is 3284 [12:10:57]MH_Cut [12:10:57]Write to MH i2c: D1 01 00 44 77 01 8D [12:10:57]Write i2c OK [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: D1 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: D1 01 00 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: D1 01 00 44 77 00 8C [12:10:57]Write to MH i2c: 01 00 00 45 77 BC [12:10:57]Write i2c OK [12:10:57]MH_I2C_Read... [12:10:58]OFD Sender: No OFD packet to send [12:10:58]*** Cut start [12:10:58]*** Partial cut [12:10:58]*** CUTSNS_PIN = 1 [12:10:58]*** CUTSNS_PIN = 0 [12:10:58]*** Brake cut motor [12:10:59]Read from MH i2c: 01 [12:10:59]MH_I2C_Read... [12:10:59]*** Stop cut motor [12:10:59]*** Cut end [12:10:59]Read from MH i2c: 01 07 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: 01 07 00 45 77 00 00 00 00 00 FF 0F D1 [12:10:59]process_action close_receipt done [12:10:59]requested_data is exist [12:10:59]produce_requested_data [12:10:59]requested_item fm.sn is exist - process it [12:10:59]wFMCommunicate request_size=4 [12:10:59]MH_SAM_APDU [12:10:59]CAPDU: 80 11 00 00 [12:10:59]Write to MH i2c: E2 08 00 46 77 80 11 00 00 00 00 00 00 37 [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:59]Read from MH i2c: E2 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 17 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 17 00 46 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 89 [12:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:10:59]wFMCommunicate OK [12:10:59]requested_item fd.num is exist - process it [12:10:59]SAM_PROTO_GetFieldsCounters [12:10:59]wFMCommunicate request_size=4 [12:10:59]MH_SAM_APDU [12:10:59]CAPDU: 80 13 00 00 [12:10:59]Write to MH i2c: E2 08 00 47 77 80 13 00 00 00 00 00 00 3A [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:59]Read from MH i2c: E2 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 62 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 62 00 47 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B7 01 00 0E 04 04 00 88 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 A3 [12:10:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B7 01 00 0E 04 04 00 88 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 [12:10:59]wFMCommunicate OK [12:10:59]SAM_PROTO_GetFieldsCounters done [12:10:59]requested_item shift.num is exist - process it [12:10:59]requested_item shift.opened is exist - process it [12:10:59]req_shift_opened [12:10:59]FM_GetShiftState [12:10:59]SAM_PROTO_GetShiftState [12:10:59]wFMCommunicate request_size=4 [12:10:59]MH_SAM_APDU [12:10:59]CAPDU: 80 13 01 00 [12:10:59]Write to MH i2c: E2 08 00 48 77 80 13 01 00 00 00 00 00 3C [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:59]Read from MH i2c: E2 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 0E 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 0E 00 48 77 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 5A [12:10:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:10:59]wFMCommunicate OK [12:10:59]SAM_PROTO_GetShiftState done [12:10:59]FM_GetShiftState done [12:10:59]req_shift_opened done [12:10:59]requested_item shift.open_date is exist - process it [12:10:59]req_shift_open_date [12:10:59]req_shift_open_date done [12:10:59]produce_requested_data done [12:10:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112461,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:10:59]process_action_free close_receipt [12:10:59]json_value_free [12:10:59]json_value_free done [12:10:59]process_json_proto returns [12:10:59]Send response to host [12:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112461,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:10:59]free response buf [12:10:59]execute_script done [12:10:59]execute_script returns [12:10:59]free content buf [12:10:59]Sock 7.Close socket [12:10:59]Sock 7.Thread stoped [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:54]accept exits with 9 [12:11:54]New connection [12:11:54]New thread 3066957156 created [12:11:54]Thread 3066813796 joined [12:11:54]Waiting for new connection... [12:11:54] Sock 9.Parse request [12:11:54]Sock 9.Check first char [12:11:54]Sock 9.First char is OK [12:11:54]request: POST /json_proto HTTP/1.0 [12:11:54]Method: POST [12:11:54]URL: /json_proto [12:11:54]Method is POST - this is cgi request [12:11:54]url: /json_proto [12:11:54]query_string will be loaded in cgi processing [12:11:54]execute_cgi json_proto POST (null) [12:11:54]execute_cgi path=json_proto method=POST [12:11:54]POST find Content-Length [12:11:54]Host: 172.17.59.68:8080 [12:11:54]Content-Length: 682 [12:11:54]Content-Type: application/json [12:11:54] [12:11:54]POST finish read [12:11:54]Found Content-Length = 682 [12:11:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:54]execute_script... [12:11: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)321141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:54]POST & json_proto [12:11:54]process_json_proto [12:11:54]json parsed OK: [12:11:54]protocol is kg_v1.0 [12:11:54]action value=close_receipt [12:11:54]process_action close_receipt [12:11:54]cmd_close_receipt [12:11:54]MH_GetDate [12:11:54]Write to MH i2c: F0 00 00 49 77 AF [12:11:54]Write i2c OK [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: F0 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: F0 09 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: F0 09 00 49 77 00 42 11 78 66 BC EC 60 65 56 [12:11:54]GetLastDocTimeStamp 1719144711 [12:11:54]current date 1719144770 [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 4A 77 80 13 01 00 00 00 00 00 3E [12:11:54]Write i2c OK [12:11:54]MH_I2C_Read... [12:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:55]Read from MH i2c: E2 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 0E 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 0E 00 4A 77 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 5C [12:11:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:11:55]wFMCommunicate OK [12:11:55]SAM_PROTO_GetShiftState done [12:11:55]FM_GetShiftState done [12:11:55]opened in 1719106490 [12:11:55]opened+sec_in_day 1719192890 [12:11:55]quantity*price = 100064 [12:11:55]sum+1 = 100066 [12:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 63 23.06.2024 12:12 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112462 ФПД: 79576933730236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121250&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112462&fm=79576933730236&tin=02508201610067®Number=0000000000092771&sum=100000 [12:11:56]StoreToDocumentArchive [12:11:56]shift 392 fd 112462 [12:11:56]save to /storage/0392/doc_00112462 [12:11:56]save last doc name /storage/0392/doc_00112462 to /storage/kkm_last_doc_name [12:11:56]save OK [12:11:56]Clear old archive folders... [12:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:56]tlvbuf is 01201CC0 [12:11:56]SAM_PROTO_ClearQueue [12:11:56]wFMCommunicate request_size=4 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 09 00 00 [12:11:56]Write to MH i2c: E2 08 00 57 77 80 09 00 00 00 00 00 00 40 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 57 77 00 90 00 42 [12:11:56]RAPDU: 90 00 [12:11:56]wFMCommunicate OK [12:11:56]SAM_PROTO_ClearQueue done [12:11:56]KKMCreateOFDPacket [12:11:56]OFDProtocolAddRootSTLVToBuf [12:11:56]FM_MakeSignedData [12:11:56]FM_MakeSignedData [12:11:56]SAM_PROTO_SignData [12:11:56]wFMCommunicate request_size=4 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 0D 01 02 [12:11:56]Write to MH i2c: E2 08 00 58 77 80 0D 01 02 00 00 00 00 48 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 58 77 00 90 00 43 [12:11:56]RAPDU: 90 00 [12:11:56]wFMCommunicate OK [12:11:56]wFMCommunicate request_size=255 [12:11:56]MH_SAM_APDU [12: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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 42 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B7 01 00 35 04 06 00 48 [12:11:56]Write to MH i2c: E2 02 01 59 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 42 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B7 01 00 35 04 06 00 48 00 00 93 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 59 77 00 90 00 44 [12:11:56]RAPDU: 90 00 [12:11:56]wFMCommunicate OK [12:11:56]wFMCommunicate request_size=10 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 0D 02 02 05 5F F2 DE 07 BC [12:11:56]Write to MH i2c: E2 0D 00 5A 77 80 0D 02 02 05 00 5F F2 DE 07 BC 00 00 47 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 5A 77 00 90 00 45 [12:11:56]RAPDU: 90 00 [12:11:56]wFMCommunicate OK [12:11:56]wFMCommunicate request_size=4 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 0D 03 02 [12:11:56]Write to MH i2c: E2 08 00 5B 77 80 0D 03 02 00 00 00 00 4D [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 0B 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 0B 00 5B 77 00 B7 BA E9 32 EC 37 75 F2 90 00 64 [12:11:56]RAPDU: B7 BA E9 32 EC 37 75 F2 90 00 [12:11:56]wFMCommunicate OK [12:11:56]SAM_PROTO_SignData done [12:11:56]FM_MakeSignedData done [12:11:56]CreateOFDProtocolMessage [12:11:56]wFMCommunicate request_size=4 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 11 00 00 [12:11:56]Write to MH i2c: E2 08 00 5C 77 80 11 00 00 00 00 00 00 4D [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 17 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 17 00 5C 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9F [12:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:11:56]wFMCommunicate OK [12:11:56]CreateOFDProtocolMessage done [12:11:56]OFDSenderStorePacket 112462 [12:11:56]StoreOFDPacket docnum=112462 [12:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 00 07 01 61 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 42 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B7 01 00 35 04 06 00 48 5F F2 DE 07 BC B7 BA E9 32 EC 37 75 F2 [12:11:56]CheckFolder [12:11:56]dirname=/storage/ofd_packets [12:11:56]CheckFolder done [12:11:56]ProducePacketName [12:11:56]name=ofd_packets/00112462 [12:11:56]NVStorageSaveData ofd_packets/00112462 [12:11:56]File name is /storage/ofd_packets/00112462 [12:11:56]Write 301 bytes [12:11:56]NVStorageSaveData done [12:11:56]OFDSenderStorePacket done [12:11:56]KKMCreateOFDPacket done [12:11:56]NVStorageSaveData kkm_last_timestamp [12:11:56]File name is /storage/kkm_last_timestamp [12:11:56]OFD Sender: Processing packet 112462 [packets to send 38, broken 37] [12:11:56]ProducePacketName [12:11:56]name=ofd_packets/00112462 [12:11:56]OFD Sender: To server: pG, [12:11:56]CommunicateWithHost lk.salyk.kg:30040 [12:11:56]ConnectInit lk.salyk.kg [12:11:56]Write 4 bytes [12:11:56]NVStorageSaveData done [12:11:56]ExternCall_PrintAddStr [12:11:56]wPrintStart [12:11:56]Write to MH i2c: 01 00 00 5D 77 D4 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: 01 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: 01 07 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: 01 07 00 5D 77 00 00 00 00 00 FF 0F E9 [12:11:56]RasterBufferAndPrint [12:11:56]line Счет N : (1)321141 [12:11:56]line ИНН: 02508201610067 [12:11:56]line Контрольно-Кассовый Чек [12:11:56]line ПРОДАЖА [12:11:56]line ТРК (МРК, ГНК) : 11 [12:11:56]line Товар: 2710124130 [12:11:56]line Аи-92-К-5 [12:11:56]line 15.070 * 66.40 [12:11:56]line = 1000.65 [12:11:56]line НДС 12% НСП 1% [12:11:56]line > о реализуемом товаре [12:11:56]line ОКРУГЛЕНИЕ: -0.65 [12:11:56]line ИТОГО: 1000.00 [12:11:56]line Внесено: 1000.00 [12:11:56]line СДАЧА: 0.00 [12:11:56]line НСП 1% : 8.85 [12:11:56]line НДС 12% : 106.26 [12:11:56]line Наличными: 1000.00 [12:11:56]line Безнал.: 0.00 [12:11:56]line Место: АЗС № 65 "Партнер Нефть" [12:11:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:11:56]line СНО: Общий режим [12:11:56]line Чек 63 23.06.2024 12:12 [12:11:56]line Смена: 392 ФФД: 1.0 [12:11:56]line ЗНМ: 0300000198 [12:11:56]line РНМ: 0000000000092771 [12:11:56]line Версия ККМ: 001 [12:11:56]line ФМ: 0000000000875083 [12:11:56]line ФД: 112462 [12:11:56]line ФПД: 79576933730236 [12:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121250&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112462&fm=79576933730236&tin=02508201610067®Number=0000000000092771&sum=100000 [12:11:57]Connected sock=11 [12:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 00 07 01 61 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 42 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B7 01 00 35 04 06 00 48 5F F2 DE 07 BC B7 BA E9 32 EC 37 75 F2 [12:11:57]written 0, free lines is 4095 [12:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 00 AD 47 00 C7 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B7 01 00 F4 03 04 00 30 A8 77 66 B6 04 01 00 00 C7 FD 50 39 EE 99 D2 52 [12:11:57]CommunicateWithHost err = 0 [12:11:57]CheckOFDResponse [12:11:57]1017 (14) - 77093643461234 [12:11:57]1041 (16) - 0000000000875083 [12:11:57]1040 (4) - 112462 [12:11:57]1012 (4) - 23.06.2024 04:44 [12:11:57]1206 (1) - 0 [12:11:57]OFD Sender: Remove packet 112462 [12:11:57]ProducePacketName [12:11:57]name=ofd_packets/00112462 [12:11:57]NVStorageDeleteData [12:11:57]Write to MH i2c: 01 00 00 88 77 FF [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 07 00 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 07 00 88 77 00 00 00 00 00 D3 0C E5 [12:11:57]RasterBufferAndPrint [12:11:57]line [12:11:57]line [12:11:57]line [12:11:57]line [12:11:57]line [12:11:57]written 0, free lines is 3289 [12:11:57]MH_Cut [12:11:57]Write to MH i2c: D1 01 00 8F 77 01 D8 [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: D1 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: D1 01 00 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: D1 01 00 8F 77 00 D7 [12:11:57]Write to MH i2c: 01 00 00 90 77 07 [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]OFD Sender: No OFD packet to send [12:11:58]*** Cut start [12:11:58]*** Partial cut [12:11:58]*** CUTSNS_PIN = 1 [12:11:58]*** CUTSNS_PIN = 0 [12:11:58]*** Brake cut motor [12:11:58]Read from MH i2c: 01 [12:11:58]MH_I2C_Read... [12:11:58]*** Stop cut motor [12:11:58]*** Cut end [12:11:58]Read from MH i2c: 01 07 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: 01 07 00 90 77 00 00 00 00 00 FF 0F 1C [12:11:58]process_action close_receipt done [12:11:58]requested_data is exist [12:11:58]produce_requested_data [12:11:58]requested_item fm.sn is exist - process it [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 11 00 00 [12:11:58]Write to MH i2c: E2 08 00 91 77 80 11 00 00 00 00 00 00 82 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 17 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 17 00 91 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D4 [12:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:11:58]wFMCommunicate OK [12:11:58]requested_item fd.num is exist - process it [12:11:58]SAM_PROTO_GetFieldsCounters [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 13 00 00 [12:11:58]Write to MH i2c: E2 08 00 92 77 80 13 00 00 00 00 00 00 85 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 62 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 62 00 92 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B7 01 00 0E 04 04 00 88 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 F2 [12:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B7 01 00 0E 04 04 00 88 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 [12:11:59]wFMCommunicate OK [12:11:59]SAM_PROTO_GetFieldsCounters done [12:11:59]requested_item shift.num is exist - process it [12:11:59]requested_item shift.opened is exist - process it [12:11:59]req_shift_opened [12:11:59]FM_GetShiftState [12:11:59]SAM_PROTO_GetShiftState [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 13 01 00 [12:11:59]Write to MH i2c: E2 08 00 93 77 80 13 01 00 00 00 00 00 87 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 0E 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 0E 00 93 77 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A5 [12:11:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:11:59]wFMCommunicate OK [12:11:59]SAM_PROTO_GetShiftState done [12:11:59]FM_GetShiftState done [12:11:59]req_shift_opened done [12:11:59]requested_item shift.open_date is exist - process it [12:11:59]req_shift_open_date [12:11:59]req_shift_open_date done [12:11:59]produce_requested_data done [12:11:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112462,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:11:59]process_action_free close_receipt [12:11:59]json_value_free [12:11:59]json_value_free done [12:11:59]process_json_proto returns [12:11:59]Send response to host [12:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112462,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:11:59]free response buf [12:11:59]execute_script done [12:11:59]execute_script returns [12:11:59]free content buf [12:11:59]Sock 9.Close socket [12:11:59]Sock 9.Thread stoped [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:12:58]accept exits with 7 [12:12:58]New connection [12:12:58]New thread 3066813796 created [12:12:58]Thread 3066957156 joined [12:12:58]Waiting for new connection... [12:12:58] Sock 7.Parse request [12:12:58]Sock 7.Check first char [12:12:58]Sock 7.First char is OK [12:12:58]request: POST /json_proto HTTP/1.0 [12:12:58]Method: POST [12:12:58]URL: /json_proto [12:12:58]Method is POST - this is cgi request [12:12:58]url: /json_proto [12:12:58]query_string will be loaded in cgi processing [12:12:58]execute_cgi json_proto POST (null) [12:12:58]execute_cgi path=json_proto method=POST [12:12:58]POST find Content-Length [12:12:58]Host: 172.17.59.68:8080 [12:12:58]Content-Length: 677 [12:12:58]Content-Type: application/json [12:12:58] [12:12:58]POST finish read [12:12:58]Found Content-Length = 677 [12:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [12:12:58]execute_script... [12:12: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)321142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [12:12:58]POST & json_proto [12:12:58]process_json_proto [12:12:58]json parsed OK: [12:12:58]protocol is kg_v1.0 [12:12:58]action value=close_receipt [12:12:58]process_action close_receipt [12:12:58]cmd_close_receipt [12:12:58]MH_GetDate [12:12:58]Write to MH i2c: F0 00 00 94 77 FA [12:12:58]Write i2c OK [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: F0 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: F0 09 00 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: F0 09 00 94 77 00 81 11 78 66 BC EC 60 65 E0 [12:12:58]GetLastDocTimeStamp 1719144770 [12:12:58]current date 1719144833 [12:12:58]FM_GetShiftState [12:12:58]SAM_PROTO_GetShiftState [12:12:58]wFMCommunicate request_size=4 [12:12:58]MH_SAM_APDU [12:12:58]CAPDU: 80 13 01 00 [12:12:58]Write to MH i2c: E2 08 00 95 77 80 13 01 00 00 00 00 00 89 [12:12:58]Write i2c OK [12:12:58]MH_I2C_Read... [12:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:58]Read from MH i2c: E2 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: E2 0E 00 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: E2 0E 00 95 77 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A7 [12:12:58]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:12:58]wFMCommunicate OK [12:12:58]SAM_PROTO_GetShiftState done [12:12:58]FM_GetShiftState done [12:12:58]opened in 1719106490 [12:12:58]opened+sec_in_day 1719192890 [12:12:58]quantity*price = 25032 [12:12:58]sum+1 = 25034 [12:12:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 64 23.06.2024 12:13 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112463 ФПД: 119673809967678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121354&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112463&fm=119673809967678&tin=02508201610067®Number=0000000000092771&sum=25000 [12:12:59]StoreToDocumentArchive [12:12:59]shift 392 fd 112463 [12:12:59]save to /storage/0392/doc_00112463 [12:12:59]save last doc name /storage/0392/doc_00112463 to /storage/kkm_last_doc_name [12:12:59]save OK [12:12:59]Clear old archive folders... [12:12:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:59]tlvbuf is B6DA9860 [12:12:59]SAM_PROTO_ClearQueue [12:12:59]wFMCommunicate request_size=4 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 09 00 00 [12:12:59]Write to MH i2c: E2 08 00 A2 77 80 09 00 00 00 00 00 00 8B [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 03 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 03 00 A2 77 00 90 00 8D [12:12:59]RAPDU: 90 00 [12:12:59]wFMCommunicate OK [12:12:59]SAM_PROTO_ClearQueue done [12:12:59]KKMCreateOFDPacket [12:12:59]OFDProtocolAddRootSTLVToBuf [12:12:59]FM_MakeSignedData [12:12:59]FM_MakeSignedData [12:12:59]SAM_PROTO_SignData [12:12:59]wFMCommunicate request_size=4 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 0D 01 02 [12:12:59]Write to MH i2c: E2 08 00 A3 77 80 0D 01 02 00 00 00 00 93 [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 03 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 03 00 A3 77 00 90 00 8E [12:12:59]RAPDU: 90 00 [12:12:59]wFMCommunicate OK [12:12:59]wFMCommunicate request_size=255 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 40 00 00 00 F4 03 04 00 82 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B7 01 00 35 04 06 00 6C [12:12:59]Write to MH i2c: E2 02 01 A4 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 40 00 00 00 F4 03 04 00 82 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B7 01 00 35 04 06 00 6C 00 00 A0 [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 03 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 03 00 A4 77 00 90 00 8F [12:12:59]RAPDU: 90 00 [12:12:59]wFMCommunicate OK [12:12:59]wFMCommunicate request_size=10 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 0D 02 02 05 D7 BA EE 9A 3E [12:12:59]Write to MH i2c: E2 0D 00 A5 77 80 0D 02 02 05 00 D7 BA EE 9A 3E 00 00 F7 [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 03 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 03 00 A5 77 00 90 00 90 [12:12:59]RAPDU: 90 00 [12:12:59]wFMCommunicate OK [12:12:59]wFMCommunicate request_size=4 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 0D 03 02 [12:12:59]Write to MH i2c: E2 08 00 A6 77 80 0D 03 02 00 00 00 00 98 [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 0B 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 0B 00 A6 77 00 6D D0 E6 D5 89 E5 A5 49 90 00 ED [12:12:59]RAPDU: 6D D0 E6 D5 89 E5 A5 49 90 00 [12:12:59]wFMCommunicate OK [12:12:59]SAM_PROTO_SignData done [12:12:59]FM_MakeSignedData done [12:12:59]CreateOFDProtocolMessage [12:12:59]wFMCommunicate request_size=4 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 11 00 00 [12:12:59]Write to MH i2c: E2 08 00 A7 77 80 11 00 00 00 00 00 00 98 [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 17 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 17 00 A7 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [12:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:12:59]wFMCommunicate OK [12:12:59]CreateOFDProtocolMessage done [12:12:59]OFDSenderStorePacket 112463 [12:12:59]StoreOFDPacket docnum=112463 [12:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CF 64 07 01 A9 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 40 00 00 00 F4 03 04 00 82 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B7 01 00 35 04 06 00 6C D7 BA EE 9A 3E 6D D0 E6 D5 89 E5 A5 49 [12:12:59]CheckFolder [12:12:59]dirname=/storage/ofd_packets [12:12:59]CheckFolder done [12:12:59]ProducePacketName [12:12:59]name=ofd_packets/00112463 [12:12:59]NVStorageSaveData ofd_packets/00112463 [12:12:59]File name is /storage/ofd_packets/00112463 [12:12:59]Write 301 bytes [12:12:59]NVStorageSaveData done [12:12:59]OFDSenderStorePacket done [12:12:59]KKMCreateOFDPacket done [12:12:59]NVStorageSaveData kkm_last_timestamp [12:12:59]File name is /storage/kkm_last_timestamp [12:12:59]Write 4 bytes [12:12:59]NVStorageSaveData done [12:12:59]ExternCall_PrintAddStr [12:12:59]wPrintStart [12:12:59]Write to MH i2c: 01 00 00 A8 77 1F [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: 01 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: 01 07 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: 01 07 00 A8 77 00 00 00 00 00 FF 0F 34 [12:12:59]RasterBufferAndPrint [12:12:59]line Счет N : (1)321142 [12:12:59]line ИНН: 02508201610067 [12:12:59]line Контрольно-Кассовый Чек [12:12:59]line ПРОДАЖА [12:12:59]line ТРК (МРК, ГНК) : 11 [12:12:59]line Товар: 2710124130 [12:12:59]line Аи-92-К-5 [12:12:59]line 3.770 * 66.40 [12:12:59]line = 250.33 [12:12:59]line НДС 12% НСП 1% [12:12:59]line > о реализуемом товаре [12:12:59]line ОКРУГЛЕНИЕ: -0.33 [12:12:59]line ИТОГО: 250.00 [12:12:59]line Внесено: 250.00 [12:12:59]line СДАЧА: 0.00 [12:12:59]line НСП 1% : 2.21 [12:12:59]line НДС 12% : 26.58 [12:12:59]line Наличными: 250.00 [12:12:59]line Безнал.: 0.00 [12:12:59]line Место: АЗС № 65 "Партнер Нефть" [12:12:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:12:59]line СНО: Общий режим [12:12:59]line Чек 64 23.06.2024 12:13 [12:12:59]line Смена: 392 ФФД: 1.0 [12:12:59]line ЗНМ: 0300000198 [12:12:59]line РНМ: 0000000000092771 [12:12:59]line Версия ККМ: 001 [12:12:59]line ФМ: 0000000000875083 [12:12:59]line ФД: 112463 [12:12:59]line ФПД: 119673809967678 [12:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121354&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112463&fm=119673809967678&tin=02508201610067®Number=0000000000092771&sum=25000 [12:13:00]OFD Sender: Processing packet 112463 [packets to send 38, broken 37] [12:13:00]ProducePacketName [12:13:00]name=ofd_packets/00112463 [12:13:00]OFD Sender: To server: pG, [12:13:00]CommunicateWithHost lk.salyk.kg:30040 [12:13:00]ConnectInit lk.salyk.kg [12:13:00]written 0, free lines is 4095 [12:13:00]Connected sock=10 [12:13:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CF 64 07 01 A9 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 40 00 00 00 F4 03 04 00 82 11 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B7 01 00 35 04 06 00 6C D7 BA EE 9A 3E 6D D0 E6 D5 89 E5 A5 49 [12:13:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E0 50 47 00 81 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B7 01 00 F4 03 04 00 6F A8 77 66 B6 04 01 00 00 38 55 8A 7B BE 2A 7C C7 [12:13:00]CommunicateWithHost err = 0 [12:13:00]CheckOFDResponse [12:13:00]1017 (14) - 77093643461234 [12:13:00]1041 (16) - 0000000000875083 [12:13:00]1040 (4) - 112463 [12:13:00]1012 (4) - 23.06.2024 04:45 [12:13:00]1206 (1) - 0 [12:13:00]OFD Sender: Remove packet 112463 [12:13:00]ProducePacketName [12:13:00]name=ofd_packets/00112463 [12:13:00]NVStorageDeleteData [12:13:00]Write to MH i2c: 01 00 00 D3 77 4A [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: 01 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: 01 07 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: 01 07 00 D3 77 00 00 00 00 00 D6 0C 33 [12:13:00]RasterBufferAndPrint [12:13:00]line [12:13:00]line [12:13:00]line [12:13:00]line [12:13:00]line [12:13:00]written 0, free lines is 3293 [12:13:00]MH_Cut [12:13:00]Write to MH i2c: D1 01 00 DA 77 01 23 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: D1 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: D1 01 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: D1 01 00 DA 77 00 22 [12:13:00]Write to MH i2c: 01 00 00 DB 77 52 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:01]OFD Sender: No OFD packet to send [12:13:01]*** Cut start [12:13:01]*** Partial cut [12:13:01]*** CUTSNS_PIN = 1 [12:13:01]*** CUTSNS_PIN = 0 [12:13:01]*** Brake cut motor [12:13:02]Read from MH i2c: 01 [12:13:02]MH_I2C_Read... [12:13:02]*** Stop cut motor [12:13:02]*** Cut end [12:13:02]Read from MH i2c: 01 07 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 07 00 DB 77 00 00 00 00 00 FF 0F 67 [12:13:02]process_action close_receipt done [12:13:02]requested_data is exist [12:13:02]produce_requested_data [12:13:02]requested_item fm.sn is exist - process it [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 11 00 00 [12:13:02]Write to MH i2c: E2 08 00 DC 77 80 11 00 00 00 00 00 00 CD [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:02]Read from MH i2c: E2 17 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 17 00 DC 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [12:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:13:02]wFMCommunicate OK [12:13:02]requested_item fd.num is exist - process it [12:13:02]SAM_PROTO_GetFieldsCounters [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 13 00 00 [12:13:02]Write to MH i2c: E2 08 00 DD 77 80 13 00 00 00 00 00 00 D0 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 62 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 62 00 DD 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B7 01 00 0E 04 04 00 88 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 41 [12:13:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B7 01 00 0E 04 04 00 88 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 [12:13:02]wFMCommunicate OK [12:13:02]SAM_PROTO_GetFieldsCounters done [12:13:02]requested_item shift.num is exist - process it [12:13:02]requested_item shift.opened is exist - process it [12:13:02]req_shift_opened [12:13:02]FM_GetShiftState [12:13:02]SAM_PROTO_GetShiftState [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 13 01 00 [12:13:02]Write to MH i2c: E2 08 00 DE 77 80 13 01 00 00 00 00 00 D2 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 0E 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 0E 00 DE 77 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F0 [12:13:02]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:13:02]wFMCommunicate OK [12:13:02]SAM_PROTO_GetShiftState done [12:13:02]FM_GetShiftState done [12:13:02]req_shift_opened done [12:13:02]requested_item shift.open_date is exist - process it [12:13:02]req_shift_open_date [12:13:02]req_shift_open_date done [12:13:02]produce_requested_data done [12:13:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112463,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:13:02]process_action_free close_receipt [12:13:02]json_value_free [12:13:02]json_value_free done [12:13:02]process_json_proto returns [12:13:02]Send response to host [12:13:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112463,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:13:02]free response buf [12:13:02]execute_script done [12:13:02]execute_script returns [12:13:02]free content buf [12:13:02]Sock 7.Close socket [12:13:02]Sock 7.Thread stoped [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:12]accept exits with 9 [12:17:12]New connection [12:17:12]New thread 3066957156 created [12:17:12]Thread 3066813796 joined [12:17:12]Waiting for new connection... [12:17:12] Sock 9.Parse request [12:17:12]Sock 9.Check first char [12:17:12]Sock 9.First char is OK [12:17:12]request: POST /json_proto HTTP/1.0 [12:17:12]Method: POST [12:17:12]URL: /json_proto [12:17:12]Method is POST - this is cgi request [12:17:12]url: /json_proto [12:17:12]query_string will be loaded in cgi processing [12:17:12]execute_cgi json_proto POST (null) [12:17:12]execute_cgi path=json_proto method=POST [12:17:12]POST find Content-Length [12:17:12]Host: 172.17.59.68:8080 [12:17:12]Content-Length: 682 [12:17:12]Content-Type: application/json [12:17:12] [12:17:12]POST finish read [12:17:12]Found Content-Length = 682 [12:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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:17:12]execute_script... [12:17:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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:17:12]POST & json_proto [12:17:12]process_json_proto [12:17:12]json parsed OK: [12:17:12]protocol is kg_v1.0 [12:17:12]action value=close_receipt [12:17:12]process_action close_receipt [12:17:12]cmd_close_receipt [12:17:12]MH_GetDate [12:17:12]Write to MH i2c: F0 00 00 DF 77 45 [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: F0 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: F0 09 00 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: F0 09 00 DF 77 00 80 12 78 66 BC EC 60 65 2B [12:17:12]GetLastDocTimeStamp 1719144834 [12:17:12]current date 1719145088 [12:17:12]FM_GetShiftState [12:17:12]SAM_PROTO_GetShiftState [12:17:12]wFMCommunicate request_size=4 [12:17:12]MH_SAM_APDU [12:17:12]CAPDU: 80 13 01 00 [12:17:12]Write to MH i2c: E2 08 00 E0 77 80 13 01 00 00 00 00 00 D4 [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:12]Read from MH i2c: E2 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 0E 00 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 0E 00 E0 77 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F2 [12:17:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:17:12]wFMCommunicate OK [12:17:12]SAM_PROTO_GetShiftState done [12:17:12]FM_GetShiftState done [12:17:12]opened in 1719106490 [12:17:12]opened+sec_in_day 1719192890 [12:17:12]quantity*price = 150064 [12:17:12]sum+1 = 150065 [12:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 65 23.06.2024 12:18 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112464 ФПД: 113045680905260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112464&fm=113045680905260&tin=02508201610067®Number=0000000000092771&sum=150000 [12:17:13]StoreToDocumentArchive [12:17:13]shift 392 fd 112464 [12:17:13]save to /storage/0392/doc_00112464 [12:17:13]save last doc name /storage/0392/doc_00112464 to /storage/kkm_last_doc_name [12:17:13]save OK [12:17:13]Clear old archive folders... [12:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:13]tlvbuf is 0131B820 [12:17:13]SAM_PROTO_ClearQueue [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 09 00 00 [12:17:13]Write to MH i2c: E2 08 00 ED 77 80 09 00 00 00 00 00 00 D6 [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:13]Read from MH i2c: E2 03 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 03 00 ED 77 00 90 00 D8 [12:17:13]RAPDU: 90 00 [12:17:13]wFMCommunicate OK [12:17:13]SAM_PROTO_ClearQueue done [12:17:13]KKMCreateOFDPacket [12:17:13]OFDProtocolAddRootSTLVToBuf [12:17:13]FM_MakeSignedData [12:17:13]FM_MakeSignedData [12:17:13]SAM_PROTO_SignData [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 0D 01 02 [12:17:13]Write to MH i2c: E2 08 00 EE 77 80 0D 01 02 00 00 00 00 DE [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 03 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 03 00 EE 77 00 90 00 D9 [12:17:13]RAPDU: 90 00 [12:17:13]wFMCommunicate OK [12:17:13]wFMCommunicate request_size=255 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 41 00 00 00 F4 03 04 00 80 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B7 01 00 35 04 06 00 66 [12:17:13]Write to MH i2c: E2 02 01 EF 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 41 00 00 00 F4 03 04 00 80 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B7 01 00 35 04 06 00 66 00 00 DE [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 03 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 03 00 EF 77 00 90 00 DA [12:17:14]RAPDU: 90 00 [12:17:14]wFMCommunicate OK [12:17:14]wFMCommunicate request_size=10 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 0D 02 02 05 D0 7F A7 5C 2C [12:17:14]Write to MH i2c: E2 0D 00 F0 77 80 0D 02 02 05 00 D0 7F A7 5C 2C 00 00 69 [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 03 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 03 00 F0 77 00 90 00 DB [12:17:14]RAPDU: 90 00 [12:17:14]wFMCommunicate OK [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 0D 03 02 [12:17:14]Write to MH i2c: E2 08 00 F1 77 80 0D 03 02 00 00 00 00 E3 [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 0B 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 0B 00 F1 77 00 1C 47 CF FA 4B EE 60 A7 90 00 50 [12:17:14]RAPDU: 1C 47 CF FA 4B EE 60 A7 90 00 [12:17:14]wFMCommunicate OK [12:17:14]SAM_PROTO_SignData done [12:17:14]FM_MakeSignedData done [12:17:14]CreateOFDProtocolMessage [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 11 00 00 [12:17:14]Write to MH i2c: E2 08 00 F2 77 80 11 00 00 00 00 00 00 E3 [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 17 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 17 00 F2 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [12:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:17:14]wFMCommunicate OK [12:17:14]CreateOFDProtocolMessage done [12:17:14]OFDSenderStorePacket 112464 [12:17:14]StoreOFDPacket docnum=112464 [12:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 55 07 01 ED CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 41 00 00 00 F4 03 04 00 80 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B7 01 00 35 04 06 00 66 D0 7F A7 5C 2C 1C 47 CF FA 4B EE 60 A7 [12:17:14]CheckFolder [12:17:14]dirname=/storage/ofd_packets [12:17:14]CheckFolder done [12:17:14]ProducePacketName [12:17:14]name=ofd_packets/00112464 [12:17:14]NVStorageSaveData ofd_packets/00112464 [12:17:14]File name is /storage/ofd_packets/00112464 [12:17:14]Write 301 bytes [12:17:14]NVStorageSaveData done [12:17:14]OFDSenderStorePacket done [12:17:14]KKMCreateOFDPacket done [12:17:14]NVStorageSaveData kkm_last_timestamp [12:17:14]File name is /storage/kkm_last_timestamp [12:17:14]Write 4 bytes [12:17:14]NVStorageSaveData done [12:17:14]ExternCall_PrintAddStr [12:17:14]wPrintStart [12:17:14]Write to MH i2c: 01 00 00 F3 77 6A [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: 01 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: 01 07 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: 01 07 00 F3 77 00 00 00 00 00 FF 0F 7F [12:17:14]RasterBufferAndPrint [12:17:14]line Счет N : (1)321143 [12:17:14]line ИНН: 02508201610067 [12:17:14]line Контрольно-Кассовый Чек [12:17:14]line ПРОДАЖА [12:17:14]line ТРК (МРК, ГНК) : 11 [12:17:14]line Товар: 2710124130 [12:17:14]line Аи-92-К-5 [12:17:14]line 22.600 * 66.40 [12:17:14]line = 1500.64 [12:17:14]line НДС 12% НСП 1% [12:17:14]line > о реализуемом товаре [12:17:14]line ОКРУГЛЕНИЕ: -0.64 [12:17:14]line ИТОГО: 1500.00 [12:17:14]line Внесено: 1500.00 [12:17:14]line СДАЧА: 0.00 [12:17:14]line НСП 1% : 13.28 [12:17:14]line НДС 12% : 159.36 [12:17:14]line Наличными: 1500.00 [12:17:14]line Безнал.: 0.00 [12:17:14]line Место: АЗС № 65 "Партнер Нефть" [12:17:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:17:14]line СНО: Общий режим [12:17:14]line Чек 65 23.06.2024 12:18 [12:17:14]line Смена: 392 ФФД: 1.0 [12:17:14]line ЗНМ: 0300000198 [12:17:14]line РНМ: 0000000000092771 [12:17:14]line Версия ККМ: 001 [12:17:14]line ФМ: 0000000000875083 [12:17:14]line ФД: 112464 [12:17:14]line ФПД: 113045680905260 [12:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112464&fm=113045680905260&tin=02508201610067®Number=0000000000092771&sum=150000 [12:17:14]OFD Sender: Processing packet 112464 [packets to send 38, broken 37] [12:17:14]ProducePacketName [12:17:14]name=ofd_packets/00112464 [12:17:14]OFD Sender: To server: pG, [12:17:14]CommunicateWithHost lk.salyk.kg:30040 [12:17:14]ConnectInit lk.salyk.kg [12:17:14]written 0, free lines is 4095 [12:17:14]Connected sock=10 [12:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 55 07 01 ED CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 41 00 00 00 F4 03 04 00 80 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B7 01 00 35 04 06 00 66 D0 7F A7 5C 2C 1C 47 CF FA 4B EE 60 A7 [12:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DC E1 47 00 51 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B7 01 00 F4 03 04 00 6E A9 77 66 B6 04 01 00 00 4F 8C 64 F4 8C B8 56 AD [12:17:14]CommunicateWithHost err = 0 [12:17:14]CheckOFDResponse [12:17:14]1017 (14) - 77093643461234 [12:17:14]1041 (16) - 0000000000875083 [12:17:14]1040 (4) - 112464 [12:17:14]1012 (4) - 23.06.2024 04:49 [12:17:14]1206 (1) - 0 [12:17:14]OFD Sender: Remove packet 112464 [12:17:14]ProducePacketName [12:17:14]name=ofd_packets/00112464 [12:17:14]NVStorageDeleteData [12:17:15]Write to MH i2c: 01 00 00 1E 78 96 [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: 01 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: 01 07 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: 01 07 00 1E 78 00 00 00 00 00 E0 0C 89 [12:17:15]RasterBufferAndPrint [12:17:15]line [12:17:15]line [12:17:15]line [12:17:15]line [12:17:15]line [12:17:15]written 0, free lines is 3301 [12:17:15]MH_Cut [12:17:15]Write to MH i2c: D1 01 00 25 78 01 6F [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: D1 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: D1 01 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: D1 01 00 25 78 00 6E [12:17:15]Write to MH i2c: 01 00 00 26 78 9E [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]OFD Sender: No OFD packet to send [12:17:15]*** Cut start [12:17:15]*** Partial cut [12:17:15]*** CUTSNS_PIN = 1 [12:17:15]*** CUTSNS_PIN = 0 [12:17:16]*** Brake cut motor [12:17:16]Read from MH i2c: 01 [12:17:16]MH_I2C_Read... [12:17:16]*** Stop cut motor [12:17:16]*** Cut end [12:17:16]Read from MH i2c: 01 07 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: 01 07 00 26 78 00 00 00 00 00 FF 0F B3 [12:17:16]process_action close_receipt done [12:17:16]requested_data is exist [12:17:16]produce_requested_data [12:17:16]requested_item fm.sn is exist - process it [12:17:16]wFMCommunicate request_size=4 [12:17:16]MH_SAM_APDU [12:17:16]CAPDU: 80 11 00 00 [12:17:16]Write to MH i2c: E2 08 00 27 78 80 11 00 00 00 00 00 00 19 [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:16]Read from MH i2c: E2 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 17 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 17 00 27 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6B [12:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:17:16]wFMCommunicate OK [12:17:16]requested_item fd.num is exist - process it [12:17:16]SAM_PROTO_GetFieldsCounters [12:17:16]wFMCommunicate request_size=4 [12:17:16]MH_SAM_APDU [12:17:16]CAPDU: 80 13 00 00 [12:17:16]Write to MH i2c: E2 08 00 28 78 80 13 00 00 00 00 00 00 1C [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:16]Read from MH i2c: E2 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 62 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 62 00 28 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B7 01 00 0E 04 04 00 88 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 91 [12:17:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B7 01 00 0E 04 04 00 88 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 [12:17:16]wFMCommunicate OK [12:17:16]SAM_PROTO_GetFieldsCounters done [12:17:16]requested_item shift.num is exist - process it [12:17:16]requested_item shift.opened is exist - process it [12:17:16]req_shift_opened [12:17:16]FM_GetShiftState [12:17:16]SAM_PROTO_GetShiftState [12:17:16]wFMCommunicate request_size=4 [12:17:16]MH_SAM_APDU [12:17:16]CAPDU: 80 13 01 00 [12:17:16]Write to MH i2c: E2 08 00 29 78 80 13 01 00 00 00 00 00 1E [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:16]Read from MH i2c: E2 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 0E 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 0E 00 29 78 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3C [12:17:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:17:16]wFMCommunicate OK [12:17:16]SAM_PROTO_GetShiftState done [12:17:16]FM_GetShiftState done [12:17:16]req_shift_opened done [12:17:16]requested_item shift.open_date is exist - process it [12:17:16]req_shift_open_date [12:17:16]req_shift_open_date done [12:17:16]produce_requested_data done [12:17:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112464,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:17:16]process_action_free close_receipt [12:17:16]json_value_free [12:17:16]json_value_free done [12:17:16]process_json_proto returns [12:17:16]Send response to host [12:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112464,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:17:16]free response buf [12:17:16]execute_script done [12:17:16]execute_script returns [12:17:16]free content buf [12:17:16]Sock 9.Close socket [12:17:16]Sock 9.Thread stoped [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:44]accept exits with 7 [12:17:44]New connection [12:17:44]New thread 3066813796 created [12:17:44]Thread 3066957156 joined [12:17:44]Waiting for new connection... [12:17:44] Sock 7.Parse request [12:17:44]Sock 7.Check first char [12:17:44]Sock 7.First char is OK [12:17:44]request: POST /json_proto HTTP/1.0 [12:17:44]Method: POST [12:17:44]URL: /json_proto [12:17:44]Method is POST - this is cgi request [12:17:44]url: /json_proto [12:17:44]query_string will be loaded in cgi processing [12:17:44]execute_cgi json_proto POST (null) [12:17:44]execute_cgi path=json_proto method=POST [12:17:44]POST find Content-Length [12:17:44]Host: 172.17.59.68:8080 [12:17:44]Content-Length: 677 [12:17:44]Content-Type: application/json [12:17:44] [12:17:44]POST finish read [12:17:44]Found Content-Length = 677 [12:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:17:44]execute_script... [12:17:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:17:44]POST & json_proto [12:17:44]process_json_proto [12:17:44]json parsed OK: [12:17:44]protocol is kg_v1.0 [12:17:44]action value=close_receipt [12:17:44]process_action close_receipt [12:17:44]cmd_close_receipt [12:17:44]MH_GetDate [12:17:44]Write to MH i2c: F0 00 00 2A 78 91 [12:17:44]Write i2c OK [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: F0 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: F0 09 00 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: F0 09 00 2A 78 00 A0 12 78 66 BC EC 60 65 97 [12:17:44]GetLastDocTimeStamp 1719145088 [12:17:44]current date 1719145120 [12:17:44]FM_GetShiftState [12:17:44]SAM_PROTO_GetShiftState [12:17:44]wFMCommunicate request_size=4 [12:17:44]MH_SAM_APDU [12:17:44]CAPDU: 80 13 01 00 [12:17:44]Write to MH i2c: E2 08 00 2B 78 80 13 01 00 00 00 00 00 20 [12:17:44]Write i2c OK [12:17:44]MH_I2C_Read... [12:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:44]Read from MH i2c: E2 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: E2 0E 00 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: E2 0E 00 2B 78 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3E [12:17:44]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:17:44]wFMCommunicate OK [12:17:44]SAM_PROTO_GetShiftState done [12:17:44]FM_GetShiftState done [12:17:44]opened in 1719106490 [12:17:44]opened+sec_in_day 1719192890 [12:17:44]quantity*price = 40039 [12:17:44]sum+1 = 40040 [12:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 66 23.06.2024 12:18 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112465 ФПД: 245608104054174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112465&fm=245608104054174&tin=02508201610067®Number=0000000000092771&sum=40000 [12:17:45]StoreToDocumentArchive [12:17:45]shift 392 fd 112465 [12:17:45]save to /storage/0392/doc_00112465 [12:17:45]save last doc name /storage/0392/doc_00112465 to /storage/kkm_last_doc_name [12:17:45]save OK [12:17:45]Clear old archive folders... [12:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:45]tlvbuf is 01302270 [12:17:45]SAM_PROTO_ClearQueue [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 09 00 00 [12:17:45]Write to MH i2c: E2 08 00 38 78 80 09 00 00 00 00 00 00 22 [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:45]Read from MH i2c: E2 03 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 03 00 38 78 00 90 00 24 [12:17:45]RAPDU: 90 00 [12:17:45]wFMCommunicate OK [12:17:45]SAM_PROTO_ClearQueue done [12:17:45]KKMCreateOFDPacket [12:17:45]OFDProtocolAddRootSTLVToBuf [12:17:45]FM_MakeSignedData [12:17:45]FM_MakeSignedData [12:17:45]SAM_PROTO_SignData [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 0D 01 02 [12:17:45]Write to MH i2c: E2 08 00 39 78 80 0D 01 02 00 00 00 00 2A [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 03 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 03 00 39 78 00 90 00 25 [12:17:45]RAPDU: 90 00 [12:17:45]wFMCommunicate OK [12:17:45]wFMCommunicate request_size=255 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 42 00 00 00 F4 03 04 00 A0 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B7 01 00 35 04 06 00 DF [12:17:45]Write to MH i2c: E2 02 01 3A 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 42 00 00 00 F4 03 04 00 A0 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B7 01 00 35 04 06 00 DF 00 00 EF [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 3A 78 00 90 00 26 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]wFMCommunicate request_size=10 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 0D 02 02 05 61 17 CB CD 9E [12:17:46]Write to MH i2c: E2 0D 00 3B 78 80 0D 02 02 05 00 61 17 CB CD 9E 00 00 E5 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 3B 78 00 90 00 27 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 0D 03 02 [12:17:46]Write to MH i2c: E2 08 00 3C 78 80 0D 03 02 00 00 00 00 2F [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 0B 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 0B 00 3C 78 00 DF BD A9 AC 18 9C 5F B3 90 00 E7 [12:17:46]RAPDU: DF BD A9 AC 18 9C 5F B3 90 00 [12:17:46]wFMCommunicate OK [12:17:46]SAM_PROTO_SignData done [12:17:46]FM_MakeSignedData done [12:17:46]CreateOFDProtocolMessage [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 11 00 00 [12:17:46]Write to MH i2c: E2 08 00 3D 78 80 11 00 00 00 00 00 00 2F [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 17 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 17 00 3D 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [12:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:17:46]wFMCommunicate OK [12:17:46]CreateOFDProtocolMessage done [12:17:46]OFDSenderStorePacket 112465 [12:17:46]StoreOFDPacket docnum=112465 [12:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 CB 07 01 92 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 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 42 00 00 00 F4 03 04 00 A0 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B7 01 00 35 04 06 00 DF 61 17 CB CD 9E DF BD A9 AC 18 9C 5F B3 [12:17:46]CheckFolder [12:17:46]dirname=/storage/ofd_packets [12:17:46]CheckFolder done [12:17:46]ProducePacketName [12:17:46]name=ofd_packets/00112465 [12:17:46]NVStorageSaveData ofd_packets/00112465 [12:17:46]File name is /storage/ofd_packets/00112465 [12:17:46]Write 301 bytes [12:17:46]NVStorageSaveData done [12:17:46]OFDSenderStorePacket done [12:17:46]KKMCreateOFDPacket done [12:17:46]NVStorageSaveData kkm_last_timestamp [12:17:46]File name is /storage/kkm_last_timestamp [12:17:46]Write 4 bytes [12:17:46]NVStorageSaveData done [12:17:46]ExternCall_PrintAddStr [12:17:46]wPrintStart [12:17:46]Write to MH i2c: 01 00 00 3E 78 B6 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 07 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 07 00 3E 78 00 00 00 00 00 FF 0F CB [12:17:46]RasterBufferAndPrint [12:17:46]line Счет N : (1)321144 [12:17:46]line ИНН: 02508201610067 [12:17:46]line Контрольно-Кассовый Чек [12:17:46]line ПРОДАЖА [12:17:46]line ТРК (МРК, ГНК) : 11 [12:17:46]line Товар: 2710124130 [12:17:46]line Аи-92-К-5 [12:17:46]line 6.030 * 66.40 [12:17:46]line = 400.39 [12:17:46]line НДС 12% НСП 1% [12:17:46]line > о реализуемом товаре [12:17:46]line ОКРУГЛЕНИЕ: -0.39 [12:17:46]line ИТОГО: 400.00 [12:17:46]line Внесено: 400.00 [12:17:46]line СДАЧА: 0.00 [12:17:46]line НСП 1% : 3.54 [12:17:46]line НДС 12% : 42.52 [12:17:46]line Наличными: 400.00 [12:17:46]line Безнал.: 0.00 [12:17:46]line Место: АЗС № 65 "Партнер Нефть" [12:17:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:17:46]line СНО: Общий режим [12:17:46]line Чек 66 23.06.2024 12:18 [12:17:46]line Смена: 392 ФФД: 1.0 [12:17:46]line ЗНМ: 0300000198 [12:17:46]line РНМ: 0000000000092771 [12:17:46]line Версия ККМ: 001 [12:17:46]line ФМ: 0000000000875083 [12:17:46]line ФД: 112465 [12:17:46]line ФПД: 245608104054174 [12:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T121840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112465&fm=245608104054174&tin=02508201610067®Number=0000000000092771&sum=40000 [12:17:46]OFD Sender: Processing packet 112465 [packets to send 38, broken 37] [12:17:46]ProducePacketName [12:17:46]name=ofd_packets/00112465 [12:17:46]OFD Sender: To server: pG, [12:17:46]CommunicateWithHost lk.salyk.kg:30040 [12:17:46]ConnectInit lk.salyk.kg [12:17:46]written 0, free lines is 4095 [12:17:46]Connected sock=10 [12:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 CB 07 01 92 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 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 42 00 00 00 F4 03 04 00 A0 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B7 01 00 35 04 06 00 DF 61 17 CB CD 9E DF BD A9 AC 18 9C 5F B3 [12:17:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6A 80 47 00 E5 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B7 01 00 F4 03 04 00 8E A9 77 66 B6 04 01 00 00 AF 1C F7 6F 6C FA AB 5C [12:17:46]CommunicateWithHost err = 0 [12:17:46]CheckOFDResponse [12:17:46]1017 (14) - 77093643461234 [12:17:46]1041 (16) - 0000000000875083 [12:17:46]1040 (4) - 112465 [12:17:46]1012 (4) - 23.06.2024 04:50 [12:17:46]1206 (1) - 0 [12:17:46]OFD Sender: Remove packet 112465 [12:17:46]ProducePacketName [12:17:46]name=ofd_packets/00112465 [12:17:46]NVStorageDeleteData [12:17:47]Write to MH i2c: 01 00 00 69 78 E1 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 69 78 00 00 00 00 00 CC 0C C0 [12:17:47]RasterBufferAndPrint [12:17:47]line [12:17:47]line [12:17:47]line [12:17:47]line [12:17:47]line [12:17:47]written 0, free lines is 3283 [12:17:47]MH_Cut [12:17:47]Write to MH i2c: D1 01 00 70 78 01 BA [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: D1 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: D1 01 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: D1 01 00 70 78 00 B9 [12:17:47]Write to MH i2c: 01 00 00 71 78 E9 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]OFD Sender: No OFD packet to send [12:17:47]*** Cut start [12:17:47]*** Partial cut [12:17:47]*** CUTSNS_PIN = 1 [12:17:47]*** CUTSNS_PIN = 0 [12:17:48]*** Brake cut motor [12:17:48]Read from MH i2c: 01 [12:17:48]MH_I2C_Read... [12:17:48]*** Stop cut motor [12:17:48]*** Cut end [12:17:48]Read from MH i2c: 01 07 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 71 78 00 00 00 00 00 FF 0F FE [12:17:48]process_action close_receipt done [12:17:48]requested_data is exist [12:17:48]produce_requested_data [12:17:48]requested_item fm.sn is exist - process it [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 11 00 00 [12:17:48]Write to MH i2c: E2 08 00 72 78 80 11 00 00 00 00 00 00 64 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 17 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 17 00 72 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B6 [12:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:17:48]wFMCommunicate OK [12:17:48]requested_item fd.num is exist - process it [12:17:48]SAM_PROTO_GetFieldsCounters [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 13 00 00 [12:17:48]Write to MH i2c: E2 08 00 73 78 80 13 00 00 00 00 00 00 67 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 62 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 62 00 73 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B7 01 00 0E 04 04 00 88 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 E0 [12:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B7 01 00 0E 04 04 00 88 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 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_GetFieldsCounters done [12:17:48]requested_item shift.num is exist - process it [12:17:48]requested_item shift.opened is exist - process it [12:17:48]req_shift_opened [12:17:48]FM_GetShiftState [12:17:48]SAM_PROTO_GetShiftState [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 13 01 00 [12:17:48]Write to MH i2c: E2 08 00 74 78 80 13 01 00 00 00 00 00 69 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 0E 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 0E 00 74 78 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 87 [12:17:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_GetShiftState done [12:17:48]FM_GetShiftState done [12:17:48]req_shift_opened done [12:17:48]requested_item shift.open_date is exist - process it [12:17:48]req_shift_open_date [12:17:48]req_shift_open_date done [12:17:48]produce_requested_data done [12:17:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112465,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:17:48]process_action_free close_receipt [12:17:48]json_value_free [12:17:48]json_value_free done [12:17:48]process_json_proto returns [12:17:48]Send response to host [12:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112465,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:17:48]free response buf [12:17:48]execute_script done [12:17:48]execute_script returns [12:17:48]free content buf [12:17:48]Sock 7.Close socket [12:17:48]Sock 7.Thread stoped [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:19]accept exits with 9 [12:19:19]New connection [12:19:19]New thread 3066957156 created [12:19:19]Thread 3066813796 joined [12:19:19]Waiting for new connection... [12:19:19] Sock 9.Parse request [12:19:19]Sock 9.Check first char [12:19:19]Sock 9.First char is OK [12:19:19]request: POST /json_proto HTTP/1.0 [12:19:19]Method: POST [12:19:19]URL: /json_proto [12:19:19]Method is POST - this is cgi request [12:19:19]url: /json_proto [12:19:19]query_string will be loaded in cgi processing [12:19:19]execute_cgi json_proto POST (null) [12:19:19]execute_cgi path=json_proto method=POST [12:19:19]POST find Content-Length [12:19:19]Host: 172.17.59.68:8080 [12:19:19]Content-Length: 682 [12:19:19]Content-Type: application/json [12:19:19] [12:19:19]POST finish read [12:19:19]Found Content-Length = 682 [12:19:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:19]execute_script... [12:19: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)321145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:19]POST & json_proto [12:19:19]process_json_proto [12:19:19]json parsed OK: [12:19:19]protocol is kg_v1.0 [12:19:19]action value=close_receipt [12:19:19]process_action close_receipt [12:19:19]cmd_close_receipt [12:19:19]MH_GetDate [12:19:19]Write to MH i2c: F0 00 00 75 78 DC [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: F0 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: F0 09 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: F0 09 00 75 78 00 FF 12 78 66 BC EC 60 65 41 [12:19:19]GetLastDocTimeStamp 1719145120 [12:19:19]current date 1719145215 [12:19:19]FM_GetShiftState [12:19:19]SAM_PROTO_GetShiftState [12:19:19]wFMCommunicate request_size=4 [12:19:19]MH_SAM_APDU [12:19:19]CAPDU: 80 13 01 00 [12:19:19]Write to MH i2c: E2 08 00 76 78 80 13 01 00 00 00 00 00 6B [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:19]Read from MH i2c: E2 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 0E 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 0E 00 76 78 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 89 [12:19:19]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:19:19]wFMCommunicate OK [12:19:19]SAM_PROTO_GetShiftState done [12:19:19]FM_GetShiftState done [12:19:19]opened in 1719106490 [12:19:19]opened+sec_in_day 1719192890 [12:19:19]quantity*price = 120051 [12:19:19]sum+1 = 120052 [12:19:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 67 23.06.2024 12:20 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112466 ФПД: 134066732828341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122015&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112466&fm=134066732828341&tin=02508201610067®Number=0000000000092771&sum=120000 [12:19:21]StoreToDocumentArchive [12:19:21]shift 392 fd 112466 [12:19:21]save to /storage/0392/doc_00112466 [12:19:21]save last doc name /storage/0392/doc_00112466 to /storage/kkm_last_doc_name [12:19:21]save OK [12:19:21]Clear old archive folders... [12:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:21]tlvbuf is 013229C0 [12:19:21]SAM_PROTO_ClearQueue [12:19:21]wFMCommunicate request_size=4 [12:19:21]MH_SAM_APDU [12:19:21]CAPDU: 80 09 00 00 [12:19:21]Write to MH i2c: E2 08 00 83 78 80 09 00 00 00 00 00 00 6D [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:21]Read from MH i2c: E2 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 03 00 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 03 00 83 78 00 90 00 6F [12:19:21]RAPDU: 90 00 [12:19:21]wFMCommunicate OK [12:19:21]SAM_PROTO_ClearQueue done [12:19:21]KKMCreateOFDPacket [12:19:21]OFDProtocolAddRootSTLVToBuf [12:19:21]FM_MakeSignedData [12:19:21]FM_MakeSignedData [12:19:21]SAM_PROTO_SignData [12:19:21]wFMCommunicate request_size=4 [12:19:21]MH_SAM_APDU [12:19:21]CAPDU: 80 0D 01 02 [12:19:21]Write to MH i2c: E2 08 00 84 78 80 0D 01 02 00 00 00 00 75 [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:21]Read from MH i2c: E2 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 03 00 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 03 00 84 78 00 90 00 70 [12:19:21]RAPDU: 90 00 [12:19:21]wFMCommunicate OK [12:19:21]wFMCommunicate request_size=255 [12:19:21]MH_SAM_APDU [12:19:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FF 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B7 01 00 35 04 06 00 79 [12:19:21]Write to MH i2c: E2 02 01 85 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FF 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B7 01 00 35 04 06 00 79 00 00 C6 [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:21]Read from MH i2c: E2 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 03 00 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 03 00 85 78 00 90 00 71 [12:19:21]RAPDU: 90 00 [12:19:21]wFMCommunicate OK [12:19:21]wFMCommunicate request_size=10 [12:19:21]MH_SAM_APDU [12:19:21]CAPDU: 80 0D 02 02 05 EE D7 FC 86 B5 [12:19:21]Write to MH i2c: E2 0D 00 86 78 80 0D 02 02 05 00 EE D7 FC 86 B5 00 00 7E [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:21]Read from MH i2c: E2 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 03 00 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 03 00 86 78 00 90 00 72 [12:19:21]RAPDU: 90 00 [12:19:21]wFMCommunicate OK [12:19:21]wFMCommunicate request_size=4 [12:19:21]MH_SAM_APDU [12:19:21]CAPDU: 80 0D 03 02 [12:19:21]Write to MH i2c: E2 08 00 87 78 80 0D 03 02 00 00 00 00 7A [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:21]Read from MH i2c: E2 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 0B 00 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 0B 00 87 78 00 EF 81 29 AE 24 94 0C FC 90 00 82 [12:19:21]RAPDU: EF 81 29 AE 24 94 0C FC 90 00 [12:19:21]wFMCommunicate OK [12:19:21]SAM_PROTO_SignData done [12:19:21]FM_MakeSignedData done [12:19:21]CreateOFDProtocolMessage [12:19:21]wFMCommunicate request_size=4 [12:19:21]MH_SAM_APDU [12:19:21]CAPDU: 80 11 00 00 [12:19:21]Write to MH i2c: E2 08 00 88 78 80 11 00 00 00 00 00 00 7A [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:21]Read from MH i2c: E2 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 17 00 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: E2 17 00 88 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [12:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:19:21]wFMCommunicate OK [12:19:21]CreateOFDProtocolMessage done [12:19:21]OFDSenderStorePacket 112466 [12:19:21]StoreOFDPacket docnum=112466 [12:19:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 5D 07 01 2F 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 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FF 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B7 01 00 35 04 06 00 79 EE D7 FC 86 B5 EF 81 29 AE 24 94 0C FC [12:19:21]CheckFolder [12:19:21]dirname=/storage/ofd_packets [12:19:21]CheckFolder done [12:19:21]ProducePacketName [12:19:21]name=ofd_packets/00112466 [12:19:21]NVStorageSaveData ofd_packets/00112466 [12:19:21]File name is /storage/ofd_packets/00112466 [12:19:21]Write 301 bytes [12:19:21]NVStorageSaveData done [12:19:21]OFDSenderStorePacket done [12:19:21]KKMCreateOFDPacket done [12:19:21]NVStorageSaveData kkm_last_timestamp [12:19:21]File name is /storage/kkm_last_timestamp [12:19:21]Write 4 bytes [12:19:21]NVStorageSaveData done [12:19:21]ExternCall_PrintAddStr [12:19:21]wPrintStart [12:19:21]Write to MH i2c: 01 00 00 89 78 01 [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: 01 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: 01 07 00 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: 01 07 00 89 78 00 00 00 00 00 FF 0F 16 [12:19:21]RasterBufferAndPrint [12:19:21]line Счет N : (1)321145 [12:19:21]line ИНН: 02508201610067 [12:19:21]line Контрольно-Кассовый Чек [12:19:21]line ПРОДАЖА [12:19:21]line ТРК (МРК, ГНК) : 11 [12:19:21]line Товар: 2710124130 [12:19:21]line Аи-92-К-5 [12:19:21]line 18.080 * 66.40 [12:19:21]line = 1200.51 [12:19:21]line НДС 12% НСП 1% [12:19:21]line > о реализуемом товаре [12:19:21]line ОКРУГЛЕНИЕ: -0.51 [12:19:21]line ИТОГО: 1200.00 [12:19:21]line Внесено: 1200.00 [12:19:21]line СДАЧА: 0.00 [12:19:21]line НСП 1% : 10.62 [12:19:21]line НДС 12% : 127.49 [12:19:21]line Наличными: 1200.00 [12:19:21]line Безнал.: 0.00 [12:19:21]line Место: АЗС № 65 "Партнер Нефть" [12:19:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:19:21]line СНО: Общий режим [12:19:21]line Чек 67 23.06.2024 12:20 [12:19:21]line Смена: 392 ФФД: 1.0 [12:19:21]line ЗНМ: 0300000198 [12:19:21]line РНМ: 0000000000092771 [12:19:21]line Версия ККМ: 001 [12:19:21]line ФМ: 0000000000875083 [12:19:21]line ФД: 112466 [12:19:21]line ФПД: 134066732828341 [12:19:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122015&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112466&fm=134066732828341&tin=02508201610067®Number=0000000000092771&sum=120000 [12:19:21]OFD Sender: Processing packet 112466 [packets to send 38, broken 37] [12:19:21]ProducePacketName [12:19:21]name=ofd_packets/00112466 [12:19:21]OFD Sender: To server: pG, [12:19:21]CommunicateWithHost lk.salyk.kg:30040 [12:19:21]ConnectInit lk.salyk.kg [12:19:21]written 0, free lines is 4095 [12:19:22]Connected sock=10 [12:19:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 5D 07 01 2F 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 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FF 12 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B7 01 00 35 04 06 00 79 EE D7 FC 86 B5 EF 81 29 AE 24 94 0C FC [12:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 46 28 47 00 C2 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B7 01 00 F4 03 04 00 ED A9 77 66 B6 04 01 00 00 8F E3 13 CE 70 0A B5 2E [12:19:22]CommunicateWithHost err = 0 [12:19:22]CheckOFDResponse [12:19:22]1017 (14) - 77093643461234 [12:19:22]1041 (16) - 0000000000875083 [12:19:22]1040 (4) - 112466 [12:19:22]1012 (4) - 23.06.2024 04:51 [12:19:22]1206 (1) - 0 [12:19:22]OFD Sender: Remove packet 112466 [12:19:22]ProducePacketName [12:19:22]name=ofd_packets/00112466 [12:19:22]NVStorageDeleteData [12:19:22]Write to MH i2c: 01 00 00 B4 78 2C [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: 01 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: 01 07 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: 01 07 00 B4 78 00 00 00 00 00 D7 0C 16 [12:19:22]RasterBufferAndPrint [12:19:22]line [12:19:22]line [12:19:22]line [12:19:22]line [12:19:22]line [12:19:22]written 0, free lines is 3294 [12:19:22]MH_Cut [12:19:22]Write to MH i2c: D1 01 00 BB 78 01 05 [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: D1 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: D1 01 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: D1 01 00 BB 78 00 04 [12:19:22]Write to MH i2c: 01 00 00 BC 78 34 [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]OFD Sender: No OFD packet to send [12:19:23]*** Cut start [12:19:23]*** Partial cut [12:19:23]*** CUTSNS_PIN = 1 [12:19:23]*** CUTSNS_PIN = 0 [12:19:23]*** Brake cut motor [12:19:23]Read from MH i2c: 01 [12:19:23]MH_I2C_Read... [12:19:23]*** Stop cut motor [12:19:23]*** Cut end [12:19:23]Read from MH i2c: 01 07 00 [12:19:23]MH_I2C_Read... [12:19:23]Read from MH i2c: 01 07 00 BC 78 00 00 00 00 00 FF 0F 49 [12:19:23]process_action close_receipt done [12:19:23]requested_data is exist [12:19:23]produce_requested_data [12:19:23]requested_item fm.sn is exist - process it [12:19:23]wFMCommunicate request_size=4 [12:19:23]MH_SAM_APDU [12:19:23]CAPDU: 80 11 00 00 [12:19:23]Write to MH i2c: E2 08 00 BD 78 80 11 00 00 00 00 00 00 AF [12:19:23]Write i2c OK [12:19:23]MH_I2C_Read... [12:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:23]Read from MH i2c: E2 [12:19:23]MH_I2C_Read... [12:19:23]Read from MH i2c: E2 17 00 [12:19:23]MH_I2C_Read... [12:19:23]Read from MH i2c: E2 17 00 BD 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [12:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:19:23]wFMCommunicate OK [12:19:23]requested_item fd.num is exist - process it [12:19:23]SAM_PROTO_GetFieldsCounters [12:19:23]wFMCommunicate request_size=4 [12:19:23]MH_SAM_APDU [12:19:23]CAPDU: 80 13 00 00 [12:19:23]Write to MH i2c: E2 08 00 BE 78 80 13 00 00 00 00 00 00 B2 [12:19:23]Write i2c OK [12:19:23]MH_I2C_Read... [12:19:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:23]Read from MH i2c: E2 [12:19:23]MH_I2C_Read... [12:19:23]Read from MH i2c: E2 62 00 [12:19:23]MH_I2C_Read... [12:19:23]Read from MH i2c: E2 62 00 BE 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B7 01 00 0E 04 04 00 88 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 2F [12:19:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B7 01 00 0E 04 04 00 88 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 [12:19:23]wFMCommunicate OK [12:19:23]SAM_PROTO_GetFieldsCounters done [12:19:23]requested_item shift.num is exist - process it [12:19:23]requested_item shift.opened is exist - process it [12:19:23]req_shift_opened [12:19:23]FM_GetShiftState [12:19:23]SAM_PROTO_GetShiftState [12:19:23]wFMCommunicate request_size=4 [12:19:23]MH_SAM_APDU [12:19:23]CAPDU: 80 13 01 00 [12:19:23]Write to MH i2c: E2 08 00 BF 78 80 13 01 00 00 00 00 00 B4 [12:19:23]Write i2c OK [12:19:23]MH_I2C_Read... [12:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:24]Read from MH i2c: E2 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 0E 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 0E 00 BF 78 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D2 [12:19:24]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:19:24]wFMCommunicate OK [12:19:24]SAM_PROTO_GetShiftState done [12:19:24]FM_GetShiftState done [12:19:24]req_shift_opened done [12:19:24]requested_item shift.open_date is exist - process it [12:19:24]req_shift_open_date [12:19:24]req_shift_open_date done [12:19:24]produce_requested_data done [12:19:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112466,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:19:24]process_action_free close_receipt [12:19:24]json_value_free [12:19:24]json_value_free done [12:19:24]process_json_proto returns [12:19:24]Send response to host [12:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112466,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:19:24]free response buf [12:19:24]execute_script done [12:19:24]execute_script returns [12:19:24]free content buf [12:19:24]Sock 9.Close socket [12:19:24]Sock 9.Thread stoped [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]accept exits with 7 [12:21:12]New connection [12:21:12]New thread 3066813796 created [12:21:12]Thread 3066957156 joined [12:21:12]Waiting for new connection... [12:21:12] Sock 7.Parse request [12:21:12]Sock 7.Check first char [12:21:12]Sock 7.First char is OK [12:21:12]request: POST /json_proto HTTP/1.0 [12:21:12]Method: POST [12:21:12]URL: /json_proto [12:21:12]Method is POST - this is cgi request [12:21:12]url: /json_proto [12:21:12]query_string will be loaded in cgi processing [12:21:12]execute_cgi json_proto POST (null) [12:21:12]execute_cgi path=json_proto method=POST [12:21:12]POST find Content-Length [12:21:12]Host: 172.17.59.68:8080 [12:21:12]Content-Length: 682 [12:21:12]Content-Type: application/json [12:21:12] [12:21:12]POST finish read [12:21:12]Found Content-Length = 682 [12:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:12]execute_script... [12:21: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)321146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:12]POST & json_proto [12:21:12]process_json_proto [12:21:12]json parsed OK: [12:21:12]protocol is kg_v1.0 [12:21:12]action value=close_receipt [12:21:12]process_action close_receipt [12:21:12]cmd_close_receipt [12:21:12]MH_GetDate [12:21:12]Write to MH i2c: F0 00 00 C0 78 27 [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: F0 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: F0 09 00 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: F0 09 00 C0 78 00 70 13 78 66 BC EC 60 65 FE [12:21:12]GetLastDocTimeStamp 1719145215 [12:21:12]current date 1719145328 [12:21:12]FM_GetShiftState [12:21:12]SAM_PROTO_GetShiftState [12:21:12]wFMCommunicate request_size=4 [12:21:12]MH_SAM_APDU [12:21:12]CAPDU: 80 13 01 00 [12:21:12]Write to MH i2c: E2 08 00 C1 78 80 13 01 00 00 00 00 00 B6 [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:12]Read from MH i2c: E2 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: E2 0E 00 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: E2 0E 00 C1 78 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D4 [12:21:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:21:12]wFMCommunicate OK [12:21:12]SAM_PROTO_GetShiftState done [12:21:12]FM_GetShiftState done [12:21:12]opened in 1719106490 [12:21:12]opened+sec_in_day 1719192890 [12:21:12]quantity*price = 100064 [12:21:12]sum+1 = 100066 [12:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 68 23.06.2024 12:22 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112467 ФПД: 240253343030795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122208&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112467&fm=240253343030795&tin=02508201610067®Number=0000000000092771&sum=100000 [12:21:13]StoreToDocumentArchive [12:21:13]shift 392 fd 112467 [12:21:13]save to /storage/0392/doc_00112467 [12:21:13]save last doc name /storage/0392/doc_00112467 to /storage/kkm_last_doc_name [12:21:13]save OK [12:21:13]Clear old archive folders... [12:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:13]tlvbuf is 01322A30 [12:21:13]SAM_PROTO_ClearQueue [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 09 00 00 [12:21:13]Write to MH i2c: E2 08 00 CE 78 80 09 00 00 00 00 00 00 B8 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 CE 78 00 90 00 BA [12:21:13]RAPDU: 90 00 [12:21:13]wFMCommunicate OK [12:21:13]SAM_PROTO_ClearQueue done [12:21:13]KKMCreateOFDPacket [12:21:13]OFDProtocolAddRootSTLVToBuf [12:21:13]FM_MakeSignedData [12:21:13]FM_MakeSignedData [12:21:13]SAM_PROTO_SignData [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 0D 01 02 [12:21:13]Write to MH i2c: E2 08 00 CF 78 80 0D 01 02 00 00 00 00 C0 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 CF 78 00 90 00 BB [12:21:13]RAPDU: 90 00 [12:21:13]wFMCommunicate OK [12:21:13]wFMCommunicate request_size=255 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 70 13 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B7 01 00 35 04 06 00 DA [12:21:13]Write to MH i2c: E2 02 01 D0 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 70 13 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B7 01 00 35 04 06 00 DA 00 00 D7 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:14]Read from MH i2c: E2 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 03 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 03 00 D0 78 00 90 00 BC [12:21:14]RAPDU: 90 00 [12:21:14]wFMCommunicate OK [12:21:14]wFMCommunicate request_size=10 [12:21:14]MH_SAM_APDU [12:21:14]CAPDU: 80 0D 02 02 05 82 57 2A DE 0B [12:21:14]Write to MH i2c: E2 0D 00 D1 78 80 0D 02 02 05 00 82 57 2A DE 0B 00 00 B9 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:14]Read from MH i2c: E2 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 03 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 03 00 D1 78 00 90 00 BD [12:21:14]RAPDU: 90 00 [12:21:14]wFMCommunicate OK [12:21:14]wFMCommunicate request_size=4 [12:21:14]MH_SAM_APDU [12:21:14]CAPDU: 80 0D 03 02 [12:21:14]Write to MH i2c: E2 08 00 D2 78 80 0D 03 02 00 00 00 00 C5 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:14]Read from MH i2c: E2 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 0B 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 0B 00 D2 78 00 7E ED 7C E6 1B 85 11 9A 90 00 DE [12:21:14]RAPDU: 7E ED 7C E6 1B 85 11 9A 90 00 [12:21:14]wFMCommunicate OK [12:21:14]SAM_PROTO_SignData done [12:21:14]FM_MakeSignedData done [12:21:14]CreateOFDProtocolMessage [12:21:14]wFMCommunicate request_size=4 [12:21:14]MH_SAM_APDU [12:21:14]CAPDU: 80 11 00 00 [12:21:14]Write to MH i2c: E2 08 00 D3 78 80 11 00 00 00 00 00 00 C5 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:14]Read from MH i2c: E2 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 17 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 17 00 D3 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 17 [12:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:14]wFMCommunicate OK [12:21:14]CreateOFDProtocolMessage done [12:21:14]OFDSenderStorePacket 112467 [12:21:14]StoreOFDPacket docnum=112467 [12:21:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 D0 07 01 60 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 70 13 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B7 01 00 35 04 06 00 DA 82 57 2A DE 0B 7E ED 7C E6 1B 85 11 9A [12:21:14]CheckFolder [12:21:14]dirname=/storage/ofd_packets [12:21:14]CheckFolder done [12:21:14]ProducePacketName [12:21:14]name=ofd_packets/00112467 [12:21:14]NVStorageSaveData ofd_packets/00112467 [12:21:14]File name is /storage/ofd_packets/00112467 [12:21:14]Write 301 bytes [12:21:14]NVStorageSaveData done [12:21:14]OFDSenderStorePacket done [12:21:14]KKMCreateOFDPacket done [12:21:14]NVStorageSaveData kkm_last_timestamp [12:21:14]File name is /storage/kkm_last_timestamp [12:21:14]Write 4 bytes [12:21:14]NVStorageSaveData done [12:21:14]ExternCall_PrintAddStr [12:21:14]wPrintStart [12:21:14]Write to MH i2c: 01 00 00 D4 78 4C [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 07 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 07 00 D4 78 00 00 00 00 00 FF 0F 61 [12:21:14]RasterBufferAndPrint [12:21:14]line Счет N : (1)321146 [12:21:14]line ИНН: 02508201610067 [12:21:14]line Контрольно-Кассовый Чек [12:21:14]line ПРОДАЖА [12:21:14]line ТРК (МРК, ГНК) : 11 [12:21:14]line Товар: 2710124130 [12:21:14]line Аи-92-К-5 [12:21:14]line 15.070 * 66.40 [12:21:14]line = 1000.65 [12:21:14]line НДС 12% НСП 1% [12:21:14]line > о реализуемом товаре [12:21:14]line ОКРУГЛЕНИЕ: -0.65 [12:21:14]line ИТОГО: 1000.00 [12:21:14]line Внесено: 1000.00 [12:21:14]line СДАЧА: 0.00 [12:21:14]line НСП 1% : 8.85 [12:21:14]line НДС 12% : 106.26 [12:21:14]line Наличными: 1000.00 [12:21:14]line Безнал.: 0.00 [12:21:14]line Место: АЗС № 65 "Партнер Нефть" [12:21:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:21:14]line СНО: Общий режим [12:21:14]line Чек 68 23.06.2024 12:22 [12:21:14]line Смена: 392 ФФД: 1.0 [12:21:14]line ЗНМ: 0300000198 [12:21:14]line РНМ: 0000000000092771 [12:21:14]line Версия ККМ: 001 [12:21:14]line ФМ: 0000000000875083 [12:21:14]line ФД: 112467 [12:21:14]line ФПД: 240253343030795 [12:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122208&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112467&fm=240253343030795&tin=02508201610067®Number=0000000000092771&sum=100000 [12:21:14]OFD Sender: Processing packet 112467 [packets to send 38, broken 37] [12:21:14]ProducePacketName [12:21:14]name=ofd_packets/00112467 [12:21:14]OFD Sender: To server: pG, [12:21:14]CommunicateWithHost lk.salyk.kg:30040 [12:21:14]ConnectInit lk.salyk.kg [12:21:14]written 0, free lines is 4095 [12:21:14]Connected sock=10 [12:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 D0 07 01 60 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 70 13 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B7 01 00 35 04 06 00 DA 82 57 2A DE 0B 7E ED 7C E6 1B 85 11 9A [12:21:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D D1 47 00 31 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B7 01 00 F4 03 04 00 5E AA 77 66 B6 04 01 00 00 A8 8E 54 5F E8 90 AC E0 [12:21:14]CommunicateWithHost err = 0 [12:21:14]CheckOFDResponse [12:21:14]1017 (14) - 77093643461234 [12:21:14]1041 (16) - 0000000000875083 [12:21:14]1040 (4) - 112467 [12:21:14]1012 (4) - 23.06.2024 04:53 [12:21:14]1206 (1) - 0 [12:21:14]OFD Sender: Remove packet 112467 [12:21:14]ProducePacketName [12:21:14]name=ofd_packets/00112467 [12:21:14]NVStorageDeleteData [12:21:14]Write to MH i2c: 01 00 00 FF 78 77 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 07 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 07 00 FF 78 00 00 00 00 00 CE 0C 58 [12:21:14]RasterBufferAndPrint [12:21:14]line [12:21:14]line [12:21:14]line [12:21:14]line [12:21:14]line [12:21:14]written 0, free lines is 3288 [12:21:14]MH_Cut [12:21:14]Write to MH i2c: D1 01 00 06 79 01 51 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: D1 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: D1 01 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: D1 01 00 06 79 00 50 [12:21:14]Write to MH i2c: 01 00 00 07 79 80 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:15]OFD Sender: No OFD packet to send [12:21:15]*** Cut start [12:21:15]*** Partial cut [12:21:15]*** CUTSNS_PIN = 1 [12:21:15]*** CUTSNS_PIN = 0 [12:21:15]*** Brake cut motor [12:21:16]Read from MH i2c: 01 [12:21:16]MH_I2C_Read... [12:21:16]*** Stop cut motor [12:21:16]*** Cut end [12:21:16]Read from MH i2c: 01 07 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: 01 07 00 07 79 00 00 00 00 00 FF 0F 95 [12:21:16]process_action close_receipt done [12:21:16]requested_data is exist [12:21:16]produce_requested_data [12:21:16]requested_item fm.sn is exist - process it [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 11 00 00 [12:21:16]Write to MH i2c: E2 08 00 08 79 80 11 00 00 00 00 00 00 FB [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:16]Read from MH i2c: E2 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 17 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 17 00 08 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4D [12:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:16]wFMCommunicate OK [12:21:16]requested_item fd.num is exist - process it [12:21:16]SAM_PROTO_GetFieldsCounters [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 13 00 00 [12:21:16]Write to MH i2c: E2 08 00 09 79 80 13 00 00 00 00 00 00 FE [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:16]Read from MH i2c: E2 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 62 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 62 00 09 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B7 01 00 0E 04 04 00 88 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 7F [12:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B7 01 00 0E 04 04 00 88 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 [12:21:16]wFMCommunicate OK [12:21:16]SAM_PROTO_GetFieldsCounters done [12:21:16]requested_item shift.num is exist - process it [12:21:16]requested_item shift.opened is exist - process it [12:21:16]req_shift_opened [12:21:16]FM_GetShiftState [12:21:16]SAM_PROTO_GetShiftState [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 13 01 00 [12:21:16]Write to MH i2c: E2 08 00 0A 79 80 13 01 00 00 00 00 00 00 [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:16]Read from MH i2c: E2 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 0E 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 0E 00 0A 79 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 1E [12:21:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:21:16]wFMCommunicate OK [12:21:16]SAM_PROTO_GetShiftState done [12:21:16]FM_GetShiftState done [12:21:16]req_shift_opened done [12:21:16]requested_item shift.open_date is exist - process it [12:21:16]req_shift_open_date [12:21:16]req_shift_open_date done [12:21:16]produce_requested_data done [12:21:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112467,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:21:16]process_action_free close_receipt [12:21:16]json_value_free [12:21:16]json_value_free done [12:21:16]process_json_proto returns [12:21:16]Send response to host [12:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112467,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:21:16]free response buf [12:21:16]execute_script done [12:21:16]execute_script returns [12:21:16]free content buf [12:21:16]Sock 7.Close socket [12:21:16]Sock 7.Thread stoped [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:01]accept exits with 9 [12:24:01]New connection [12:24:01]New thread 3066957156 created [12:24:01]Thread 3066813796 joined [12:24:01]Waiting for new connection... [12:24:01] Sock 9.Parse request [12:24:01]Sock 9.Check first char [12:24:01]Sock 9.First char is OK [12:24:01]request: POST /json_proto HTTP/1.0 [12:24:01]Method: POST [12:24:01]URL: /json_proto [12:24:01]Method is POST - this is cgi request [12:24:01]url: /json_proto [12:24:01]query_string will be loaded in cgi processing [12:24:01]execute_cgi json_proto POST (null) [12:24:01]execute_cgi path=json_proto method=POST [12:24:01]POST find Content-Length [12:24:01]Host: 172.17.59.68:8080 [12:24:01]Content-Length: 806 [12:24:01]Content-Type: application/json [12:24:01] [12:24:01]POST finish read [12:24:01]Found Content-Length = 806 [12:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:01]execute_script... [12:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:01]POST & json_proto [12:24:01]process_json_proto [12:24:01]json parsed OK: [12:24:01]protocol is kg_v1.0 [12:24:01]action value=close_receipt [12:24:01]process_action close_receipt [12:24:01]cmd_close_receipt [12:24:01]MH_GetDate [12:24:01]Write to MH i2c: F0 00 00 0B 79 73 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 09 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 09 00 0B 79 00 19 14 78 66 BC EC 60 65 F4 [12:24:01]GetLastDocTimeStamp 1719145328 [12:24:01]current date 1719145497 [12:24:01]FM_GetShiftState [12:24:01]SAM_PROTO_GetShiftState [12:24:01]wFMCommunicate request_size=4 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 13 01 00 [12:24:01]Write to MH i2c: E2 08 00 0C 79 80 13 01 00 00 00 00 00 02 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0E 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0E 00 0C 79 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 20 [12:24:01]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:24:01]wFMCommunicate OK [12:24:01]SAM_PROTO_GetShiftState done [12:24:01]FM_GetShiftState done [12:24:01]opened in 1719106490 [12:24:01]opened+sec_in_day 1719192890 [12:24:01]quantity*price = 66400 [12:24:01]sum+1 = 66401 [12:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 0.00 Безнал.: 664.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 69 23.06.2024 12:24 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112468 ФПД: 137748093741440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122457&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112468&fm=137748093741440&tin=02508201610067®Number=0000000000092771&sum=66400 [12:24:02]StoreToDocumentArchive [12:24:02]shift 392 fd 112468 [12:24:02]save to /storage/0392/doc_00112468 [12:24:02]save last doc name /storage/0392/doc_00112468 to /storage/kkm_last_doc_name [12:24:02]save OK [12:24:02]Clear old archive folders... [12:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:02]tlvbuf is 013A3D90 [12:24:02]SAM_PROTO_ClearQueue [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 09 00 00 [12:24:02]Write to MH i2c: E2 08 00 19 79 80 09 00 00 00 00 00 00 04 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 19 79 00 90 00 06 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_ClearQueue done [12:24:02]KKMCreateOFDPacket [12:24:02]OFDProtocolAddRootSTLVToBuf [12:24:02]FM_MakeSignedData [12:24:02]FM_MakeSignedData [12:24:02]SAM_PROTO_SignData [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 01 02 [12:24:02]Write to MH i2c: E2 08 00 1A 79 80 0D 01 02 00 00 00 00 0C [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 1A 79 00 90 00 07 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=255 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B7 01 00 35 04 06 00 7D [12:24:02]Write to MH i2c: E2 02 01 1B 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B7 01 00 35 04 06 00 7D 00 00 D8 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 1B 79 00 90 00 08 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=10 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 02 02 05 47 FA 32 29 80 [12:24:02]Write to MH i2c: E2 0D 00 1C 79 80 0D 02 02 05 00 47 FA 32 29 80 00 00 35 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 1C 79 00 90 00 09 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 03 02 [12:24:02]Write to MH i2c: E2 08 00 1D 79 80 0D 03 02 00 00 00 00 11 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0B 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0B 00 1D 79 00 80 97 E1 8D 35 D6 4B 56 90 00 43 [12:24:02]RAPDU: 80 97 E1 8D 35 D6 4B 56 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_SignData done [12:24:02]FM_MakeSignedData done [12:24:02]CreateOFDProtocolMessage [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 11 00 00 [12:24:02]Write to MH i2c: E2 08 00 1E 79 80 11 00 00 00 00 00 00 11 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 1E 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [12:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:24:02]wFMCommunicate OK [12:24:02]CreateOFDProtocolMessage done [12:24:02]OFDSenderStorePacket 112468 [12:24:02]StoreOFDPacket docnum=112468 [12:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 2F 07 01 CF 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B7 01 00 35 04 06 00 7D 47 FA 32 29 80 80 97 E1 8D 35 D6 4B 56 [12:24:02]CheckFolder [12:24:02]dirname=/storage/ofd_packets [12:24:02]CheckFolder done [12:24:02]ProducePacketName [12:24:02]name=ofd_packets/00112468 [12:24:02]NVStorageSaveData ofd_packets/00112468 [12:24:02]File name is /storage/ofd_packets/00112468 [12:24:02]Write 301 bytes [12:24:02]NVStorageSaveData done [12:24:02]OFDSenderStorePacket done [12:24:02]KKMCreateOFDPacket done [12:24:02]NVStorageSaveData kkm_last_timestamp [12:24:02]File name is /storage/kkm_last_timestamp [12:24:02]Write 4 bytes [12:24:02]NVStorageSaveData done [12:24:02]ExternCall_PrintAddStr [12:24:02]wPrintStart [12:24:02]Write to MH i2c: 01 00 00 1F 79 98 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 1F 79 00 00 00 00 00 FF 0F AD [12:24:02]RasterBufferAndPrint [12:24:02]line Счет N : (1)321147 [12:24:02]line ИНН: 02508201610067 [12:24:02]line Контрольно-Кассовый Чек [12:24:02]line ПРОДАЖА [12:24:02]line ТРК (МРК, ГНК) : 11 [12:24:02]line Товар: 2710124130 [12:24:02]line Аи-92-К-5 [12:24:02]line 10.000 * 66.40 [12:24:02]line = 664.00 [12:24:02]line НДС 12% НСП 1% [12:24:02]line > о реализуемом товаре [12:24:02]line ИТОГО: 664.00 [12:24:02]line НСП 1% : 5.88 [12:24:02]line НДС 12% : 70.51 [12:24:02]line Наличными: 0.00 [12:24:02]line Безнал.: 664.00 [12:24:02]line Место: АЗС № 65 "Партнер Нефть" [12:24:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:24:02]line СНО: Общий режим [12:24:02]line Чек 69 23.06.2024 12:24 [12:24:02]line Смена: 392 ФФД: 1.0 [12:24:02]line ЗНМ: 0300000198 [12:24:02]line РНМ: 0000000000092771 [12:24:02]line Версия ККМ: 001 [12:24:02]line Платежная система: О! деньги [12:24:02]line ФМ: 0000000000875083 [12:24:02]line ФД: 112468 [12:24:02]line ФПД: 137748093741440 [12:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122457&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112468&fm=137748093741440&tin=02508201610067®Number=0000000000092771&sum=66400 [12:24:03]written 0, free lines is 4095 [12:24:03]OFD Sender: Processing packet 112468 [packets to send 38, broken 37] [12:24:03]ProducePacketName [12:24:03]name=ofd_packets/00112468 [12:24:03]OFD Sender: To server: pG, [12:24:03]CommunicateWithHost lk.salyk.kg:30040 [12:24:03]ConnectInit lk.salyk.kg [12:24:03]Write to MH i2c: 01 00 00 49 79 C2 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 49 79 00 00 00 00 00 DF 0C B4 [12:24:03]RasterBufferAndPrint [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]written 0, free lines is 3301 [12:24:03]MH_Cut [12:24:03]Write to MH i2c: D1 01 00 50 79 01 9B [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 01 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 01 00 50 79 00 9A [12:24:03]Write to MH i2c: 01 00 00 51 79 CA [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:04]*** Cut start [12:24:04]*** Partial cut [12:24:04]*** CUTSNS_PIN = 1 [12:24:04]*** CUTSNS_PIN = 0 [12:24:04]*** Brake cut motor [12:24:05]Read from MH i2c: 01 [12:24:05]MH_I2C_Read... [12:24:05]*** Stop cut motor [12:24:05]*** Cut end [12:24:05]Read from MH i2c: 01 07 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: 01 07 00 51 79 00 00 00 00 00 FF 0F DF [12:24:05]process_action close_receipt done [12:24:05]requested_data is exist [12:24:05]produce_requested_data [12:24:05]requested_item fm.sn is exist - process it [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 11 00 00 [12:24:05]Write to MH i2c: E2 08 00 52 79 80 11 00 00 00 00 00 00 45 [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 17 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 17 00 52 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [12:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:24:05]wFMCommunicate OK [12:24:05]requested_item fd.num is exist - process it [12:24:05]SAM_PROTO_GetFieldsCounters [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 13 00 00 [12:24:05]Write to MH i2c: E2 08 00 53 79 80 13 00 00 00 00 00 00 48 [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 62 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 62 00 53 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B7 01 00 0E 04 04 00 88 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 CD [12:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B7 01 00 0E 04 04 00 88 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 [12:24:05]wFMCommunicate OK [12:24:05]SAM_PROTO_GetFieldsCounters done [12:24:05]requested_item shift.num is exist - process it [12:24:05]requested_item shift.opened is exist - process it [12:24:05]req_shift_opened [12:24:05]FM_GetShiftState [12:24:05]SAM_PROTO_GetShiftState [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 13 01 00 [12:24:05]Write to MH i2c: E2 08 00 54 79 80 13 01 00 00 00 00 00 4A [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 0E 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 0E 00 54 79 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 68 [12:24:05]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:24:05]wFMCommunicate OK [12:24:05]SAM_PROTO_GetShiftState done [12:24:05]FM_GetShiftState done [12:24:05]req_shift_opened done [12:24:05]requested_item shift.open_date is exist - process it [12:24:05]req_shift_open_date [12:24:05]req_shift_open_date done [12:24:05]produce_requested_data done [12:24:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112468,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:24:05]process_action_free close_receipt [12:24:05]json_value_free [12:24:05]json_value_free done [12:24:05]process_json_proto returns [12:24:05]Send response to host [12:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112468,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:24:05]free response buf [12:24:05]execute_script done [12:24:05]execute_script returns [12:24:05]free content buf [12:24:05]Sock 9.Close socket [12:24:05]Sock 9.Thread stoped [12:24:08]ConnectInit Can't take IP for lk.salyk.kg [12:24:08]CommunicateWithHost connect error [12:24:08]CommunicateWithHost err = -1 [12:24:08]OFD Sender: Server communicate error [12:24:13]OFD Sender: Processing packet 112468 [packets to send 38, broken 37] [12:24:13]ProducePacketName [12:24:13]name=ofd_packets/00112468 [12:24:13]OFD Sender: To server: pG, [12:24:13]CommunicateWithHost lk.salyk.kg:30040 [12:24:13]ConnectInit lk.salyk.kg [12:24:18]ConnectInit Can't take IP for lk.salyk.kg [12:24:18]CommunicateWithHost connect error [12:24:18]CommunicateWithHost err = -1 [12:24:18]OFD Sender: Server communicate error [12:24:23]OFD Sender: Processing packet 112468 [packets to send 38, broken 37] [12:24:23]ProducePacketName [12:24:23]name=ofd_packets/00112468 [12:24:23]OFD Sender: To server: pG, [12:24:23]CommunicateWithHost lk.salyk.kg:30040 [12:24:23]ConnectInit lk.salyk.kg [12:24:28]ConnectInit Can't take IP for lk.salyk.kg [12:24:28]CommunicateWithHost connect error [12:24:28]CommunicateWithHost err = -1 [12:24:28]OFD Sender: Server communicate error [12:24:30]accept exits with 10 [12:24:30]New connection [12:24:30]New thread 3066813796 created [12:24:30]Thread 3066957156 joined [12:24:30]Waiting for new connection... [12:24:30] Sock 10.Parse request [12:24:30]Sock 10.Check first char [12:24:30]Sock 10.First char is OK [12:24:30]request: POST /json_proto HTTP/1.0 [12:24:30]Method: POST [12:24:30]URL: /json_proto [12:24:30]Method is POST - this is cgi request [12:24:30]url: /json_proto [12:24:30]query_string will be loaded in cgi processing [12:24:30]execute_cgi json_proto POST (null) [12:24:30]execute_cgi path=json_proto method=POST [12:24:30]POST find Content-Length [12:24:30]Host: 172.17.59.68:8080 [12:24:30]Content-Length: 677 [12:24:30]Content-Type: application/json [12:24:30] [12:24:30]POST finish read [12:24:30]Found Content-Length = 677 [12:24:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:24:30]execute_script... [12:24: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)321148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:24:30]POST & json_proto [12:24:30]process_json_proto [12:24:30]json parsed OK: [12:24:30]protocol is kg_v1.0 [12:24:30]action value=close_receipt [12:24:30]process_action close_receipt [12:24:30]cmd_close_receipt [12:24:30]MH_GetDate [12:24:30]Write to MH i2c: F0 00 00 55 79 BD [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: F0 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: F0 09 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: F0 09 00 55 79 00 36 14 78 66 BC EC 60 65 5B [12:24:30]GetLastDocTimeStamp 1719145497 [12:24:30]current date 1719145526 [12:24:30]FM_GetShiftState [12:24:30]SAM_PROTO_GetShiftState [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 13 01 00 [12:24:30]Write to MH i2c: E2 08 00 56 79 80 13 01 00 00 00 00 00 4C [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0E 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0E 00 56 79 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 6A [12:24:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_GetShiftState done [12:24:30]FM_GetShiftState done [12:24:30]opened in 1719106490 [12:24:30]opened+sec_in_day 1719192890 [12:24:30]quantity*price = 40039 [12:24:30]sum+1 = 40040 [12:24:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 70 23.06.2024 12:25 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112469 ФПД: 26129539583669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122526&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112469&fm=26129539583669&tin=02508201610067®Number=0000000000092771&sum=40000 [12:24:31]StoreToDocumentArchive [12:24:31]shift 392 fd 112469 [12:24:31]save to /storage/0392/doc_00112469 [12:24:31]save last doc name /storage/0392/doc_00112469 to /storage/kkm_last_doc_name [12:24:31]save OK [12:24:31]Clear old archive folders... [12:24:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:31]tlvbuf is 012BE060 [12:24:31]SAM_PROTO_ClearQueue [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 09 00 00 [12:24:31]Write to MH i2c: E2 08 00 63 79 80 09 00 00 00 00 00 00 4E [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 63 79 00 90 00 50 [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]SAM_PROTO_ClearQueue done [12:24:31]KKMCreateOFDPacket [12:24:31]OFDProtocolAddRootSTLVToBuf [12:24:31]FM_MakeSignedData [12:24:31]FM_MakeSignedData [12:24:31]SAM_PROTO_SignData [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 01 02 [12:24:31]Write to MH i2c: E2 08 00 64 79 80 0D 01 02 00 00 00 00 56 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 64 79 00 90 00 51 [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]wFMCommunicate request_size=255 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 46 00 00 00 F4 03 04 00 36 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B7 01 00 35 04 06 00 17 [12:24:31]Write to MH i2c: E2 02 01 65 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 46 00 00 00 F4 03 04 00 36 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B7 01 00 35 04 06 00 17 00 00 F3 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 65 79 00 90 00 52 [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]wFMCommunicate request_size=10 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 02 02 05 C3 C1 EC CE B5 [12:24:31]Write to MH i2c: E2 0D 00 66 79 80 0D 02 02 05 00 C3 C1 EC CE B5 00 00 56 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 66 79 00 90 00 53 [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 03 02 [12:24:31]Write to MH i2c: E2 08 00 67 79 80 0D 03 02 00 00 00 00 5B [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 0B 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 0B 00 67 79 00 D8 E6 38 8B F8 C1 FE 57 90 00 EB [12:24:31]RAPDU: D8 E6 38 8B F8 C1 FE 57 90 00 [12:24:31]wFMCommunicate OK [12:24:31]SAM_PROTO_SignData done [12:24:31]FM_MakeSignedData done [12:24:31]CreateOFDProtocolMessage [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 11 00 00 [12:24:31]Write to MH i2c: E2 08 00 68 79 80 11 00 00 00 00 00 00 5B [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 17 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 17 00 68 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AD [12:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:24:31]wFMCommunicate OK [12:24:31]CreateOFDProtocolMessage done [12:24:31]OFDSenderStorePacket 112469 [12:24:31]StoreOFDPacket docnum=112469 [12:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 00 04 07 01 36 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 46 00 00 00 F4 03 04 00 36 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B7 01 00 35 04 06 00 17 C3 C1 EC CE B5 D8 E6 38 8B F8 C1 FE 57 [12:24:31]CheckFolder [12:24:31]dirname=/storage/ofd_packets [12:24:31]CheckFolder done [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00112469 [12:24:31]NVStorageSaveData ofd_packets/00112469 [12:24:31]File name is /storage/ofd_packets/00112469 [12:24:31]Write 301 bytes [12:24:31]NVStorageSaveData done [12:24:31]OFDSenderStorePacket done [12:24:31]KKMCreateOFDPacket done [12:24:31]NVStorageSaveData kkm_last_timestamp [12:24:31]File name is /storage/kkm_last_timestamp [12:24:31]Write 4 bytes [12:24:31]NVStorageSaveData done [12:24:31]ExternCall_PrintAddStr [12:24:31]wPrintStart [12:24:31]Write to MH i2c: 01 00 00 69 79 E2 [12:24:31]OFD Sender: Processing packet 112468 [packets to send 39, broken 37] [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00112468 [12:24:31]OFD Sender: To server: pG, [12:24:31]CommunicateWithHost lk.salyk.kg:30040 [12:24:31]ConnectInit lk.salyk.kg [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 69 79 00 00 00 00 00 FF 0F F7 [12:24:31]RasterBufferAndPrint [12:24:31]line Счет N : (1)321148 [12:24:31]line ИНН: 02508201610067 [12:24:31]line Контрольно-Кассовый Чек [12:24:31]line ПРОДАЖА [12:24:31]line ТРК (МРК, ГНК) : 11 [12:24:31]line Товар: 2710124130 [12:24:31]line Аи-92-К-5 [12:24:31]line 6.030 * 66.40 [12:24:31]line = 400.39 [12:24:31]line НДС 12% НСП 1% [12:24:31]line > о реализуемом товаре [12:24:31]line ОКРУГЛЕНИЕ: -0.39 [12:24:31]line ИТОГО: 400.00 [12:24:31]line Внесено: 400.00 [12:24:31]line СДАЧА: 0.00 [12:24:31]line НСП 1% : 3.54 [12:24:31]line НДС 12% : 42.52 [12:24:31]line Наличными: 400.00 [12:24:31]line Безнал.: 0.00 [12:24:31]line Место: АЗС № 65 "Партнер Нефть" [12:24:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:24:31]line СНО: Общий режим [12:24:31]line Чек 70 23.06.2024 12:25 [12:24:31]line Смена: 392 ФФД: 1.0 [12:24:31]line ЗНМ: 0300000198 [12:24:31]line РНМ: 0000000000092771 [12:24:31]line Версия ККМ: 001 [12:24:31]line ФМ: 0000000000875083 [12:24:31]line ФД: 112469 [12:24:31]line ФПД: 26129539583669 [12:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122526&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112469&fm=26129539583669&tin=02508201610067®Number=0000000000092771&sum=40000 [12:24:31]written 0, free lines is 4095 [12:24:32]Write to MH i2c: 01 00 00 94 79 0D [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 07 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 07 00 94 79 00 00 00 00 00 D1 0C F1 [12:24:32]RasterBufferAndPrint [12:24:32]line [12:24:32]line [12:24:32]line [12:24:32]line [12:24:32]line [12:24:32]written 0, free lines is 3295 [12:24:32]MH_Cut [12:24:32]Write to MH i2c: D1 01 00 9B 79 01 E6 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: D1 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: D1 01 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: D1 01 00 9B 79 00 E5 [12:24:32]Write to MH i2c: 01 00 00 9C 79 15 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:33]*** Cut start [12:24:33]*** Partial cut [12:24:33]*** CUTSNS_PIN = 1 [12:24:33]*** CUTSNS_PIN = 0 [12:24:33]*** Brake cut motor [12:24:33]Read from MH i2c: 01 [12:24:33]MH_I2C_Read... [12:24:33]*** Stop cut motor [12:24:33]*** Cut end [12:24:33]Read from MH i2c: 01 07 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: 01 07 00 9C 79 00 00 00 00 00 FF 0F 2A [12:24:33]process_action close_receipt done [12:24:33]requested_data is exist [12:24:33]produce_requested_data [12:24:33]requested_item fm.sn is exist - process it [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 11 00 00 [12:24:33]Write to MH i2c: E2 08 00 9D 79 80 11 00 00 00 00 00 00 90 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 17 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 17 00 9D 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E2 [12:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:24:33]wFMCommunicate OK [12:24:33]requested_item fd.num is exist - process it [12:24:33]SAM_PROTO_GetFieldsCounters [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 13 00 00 [12:24:33]Write to MH i2c: E2 08 00 9E 79 80 13 00 00 00 00 00 00 93 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 62 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 62 00 9E 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B7 01 00 0E 04 04 00 88 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 1C [12:24:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B7 01 00 0E 04 04 00 88 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 [12:24:34]wFMCommunicate OK [12:24:34]SAM_PROTO_GetFieldsCounters done [12:24:34]requested_item shift.num is exist - process it [12:24:34]requested_item shift.opened is exist - process it [12:24:34]req_shift_opened [12:24:34]FM_GetShiftState [12:24:34]SAM_PROTO_GetShiftState [12:24:34]wFMCommunicate request_size=4 [12:24:34]MH_SAM_APDU [12:24:34]CAPDU: 80 13 01 00 [12:24:34]Write to MH i2c: E2 08 00 9F 79 80 13 01 00 00 00 00 00 95 [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:34]Read from MH i2c: E2 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 0E 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 0E 00 9F 79 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B3 [12:24:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:24:34]wFMCommunicate OK [12:24:34]SAM_PROTO_GetShiftState done [12:24:34]FM_GetShiftState done [12:24:34]req_shift_opened done [12:24:34]requested_item shift.open_date is exist - process it [12:24:34]req_shift_open_date [12:24:34]req_shift_open_date done [12:24:34]produce_requested_data done [12:24:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112469,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:24:34]process_action_free close_receipt [12:24:34]json_value_free [12:24:34]json_value_free done [12:24:34]process_json_proto returns [12:24:34]Send response to host [12:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112469,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:24:34]free response buf [12:24:34]execute_script done [12:24:34]execute_script returns [12:24:34]free content buf [12:24:34]Sock 10.Close socket [12:24:34]Sock 10.Thread stoped [12:24:36]ConnectInit Can't take IP for lk.salyk.kg [12:24:36]CommunicateWithHost connect error [12:24:36]CommunicateWithHost err = -1 [12:24:36]OFD Sender: Server communicate error [12:24:41]OFD Sender: Processing packet 112468 [packets to send 39, broken 37] [12:24:41]ProducePacketName [12:24:41]name=ofd_packets/00112468 [12:24:41]OFD Sender: To server: pG, [12:24:41]CommunicateWithHost lk.salyk.kg:30040 [12:24:41]ConnectInit lk.salyk.kg [12:24:42]Connected sock=10 [12:24:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 2F 07 01 CF 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B7 01 00 35 04 06 00 7D 47 FA 32 29 80 80 97 E1 8D 35 D6 4B 56 [12:24:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F4 B7 47 00 99 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B7 01 00 F4 03 04 00 2D AB 77 66 B6 04 01 00 00 DB C6 47 B2 AD 34 90 D4 [12:24:42]CommunicateWithHost err = 0 [12:24:42]CheckOFDResponse [12:24:42]1017 (14) - 77093643461234 [12:24:42]1041 (16) - 0000000000875083 [12:24:42]1040 (4) - 112468 [12:24:42]1012 (4) - 23.06.2024 04:57 [12:24:42]1206 (1) - 0 [12:24:42]OFD Sender: Remove packet 112468 [12:24:42]ProducePacketName [12:24:42]name=ofd_packets/00112468 [12:24:42]NVStorageDeleteData [12:24:42]OFD Sender: Processing packet 112469 [packets to send 38, broken 37] [12:24:42]ProducePacketName [12:24:42]name=ofd_packets/00112469 [12:24:42]OFD Sender: To server: pG, [12:24:42]CommunicateWithHost lk.salyk.kg:30040 [12:24:42]ConnectInit lk.salyk.kg [12:24:43]Connected sock=10 [12:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 00 04 07 01 36 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 46 00 00 00 F4 03 04 00 36 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B7 01 00 35 04 06 00 17 C3 C1 EC CE B5 D8 E6 38 8B F8 C1 FE 57 [12:24:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2F CC 47 00 B5 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B7 01 00 F4 03 04 00 2E AB 77 66 B6 04 01 00 00 9B 81 4A 9A AD 95 7D 43 [12:24:43]CommunicateWithHost err = 0 [12:24:43]CheckOFDResponse [12:24:43]1017 (14) - 77093643461234 [12:24:43]1041 (16) - 0000000000875083 [12:24:43]1040 (4) - 112469 [12:24:43]1012 (4) - 23.06.2024 04:57 [12:24:43]1206 (1) - 0 [12:24:43]OFD Sender: Remove packet 112469 [12:24:43]ProducePacketName [12:24:43]name=ofd_packets/00112469 [12:24:43]NVStorageDeleteData [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:44]ConnectInit Can't connect to host [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:39]accept exits with 9 [12:27:39]New connection [12:27:39]New thread 3066957156 created [12:27:39]Thread 3066813796 joined [12:27:39]Waiting for new connection... [12:27:39] Sock 9.Parse request [12:27:39]Sock 9.Check first char [12:27:39]Sock 9.First char is OK [12:27:39]request: POST /json_proto HTTP/1.0 [12:27:39]Method: POST [12:27:39]URL: /json_proto [12:27:39]Method is POST - this is cgi request [12:27:39]url: /json_proto [12:27:39]query_string will be loaded in cgi processing [12:27:39]execute_cgi json_proto POST (null) [12:27:39]execute_cgi path=json_proto method=POST [12:27:39]POST find Content-Length [12:27:39]Host: 172.17.59.68:8080 [12:27:39]Content-Length: 682 [12:27:39]Content-Type: application/json [12:27:39] [12:27:39]POST finish read [12:27:39]Found Content-Length = 682 [12:27:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:39]execute_script... [12:27:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:39]POST & json_proto [12:27:39]process_json_proto [12:27:39]json parsed OK: [12:27:39]protocol is kg_v1.0 [12:27:39]action value=close_receipt [12:27:39]process_action close_receipt [12:27:39]cmd_close_receipt [12:27:39]MH_GetDate [12:27:39]Write to MH i2c: F0 00 00 A0 79 08 [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: F0 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: F0 09 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: F0 09 00 A0 79 00 F3 14 78 66 BC EC 60 65 63 [12:27:39]GetLastDocTimeStamp 1719145526 [12:27:39]current date 1719145715 [12:27:39]FM_GetShiftState [12:27:39]SAM_PROTO_GetShiftState [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 13 01 00 [12:27:39]Write to MH i2c: E2 08 00 A1 79 80 13 01 00 00 00 00 00 97 [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0E 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0E 00 A1 79 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B5 [12:27:39]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:27:39]wFMCommunicate OK [12:27:39]SAM_PROTO_GetShiftState done [12:27:39]FM_GetShiftState done [12:27:39]opened in 1719106490 [12:27:39]opened+sec_in_day 1719192890 [12:27:39]quantity*price = 100064 [12:27:39]sum+1 = 100066 [12:27:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 71 23.06.2024 12:28 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112470 ФПД: 82944861030063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122835&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112470&fm=82944861030063&tin=02508201610067®Number=0000000000092771&sum=100000 [12:27:40]StoreToDocumentArchive [12:27:40]shift 392 fd 112470 [12:27:40]save to /storage/0392/doc_00112470 [12:27:40]save last doc name /storage/0392/doc_00112470 to /storage/kkm_last_doc_name [12:27:40]save OK [12:27:40]Clear old archive folders... [12:27:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:40]tlvbuf is 011D1310 [12:27:40]SAM_PROTO_ClearQueue [12:27:40]wFMCommunicate request_size=4 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 09 00 00 [12:27:40]Write to MH i2c: E2 08 00 AE 79 80 09 00 00 00 00 00 00 99 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 AE 79 00 90 00 9B [12:27:40]RAPDU: 90 00 [12:27:40]wFMCommunicate OK [12:27:40]SAM_PROTO_ClearQueue done [12:27:40]KKMCreateOFDPacket [12:27:40]OFDProtocolAddRootSTLVToBuf [12:27:40]FM_MakeSignedData [12:27:40]FM_MakeSignedData [12:27:40]SAM_PROTO_SignData [12:27:40]wFMCommunicate request_size=4 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 0D 01 02 [12:27:40]Write to MH i2c: E2 08 00 AF 79 80 0D 01 02 00 00 00 00 A1 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 AF 79 00 90 00 9C [12:27:40]RAPDU: 90 00 [12:27:40]wFMCommunicate OK [12:27:40]wFMCommunicate request_size=255 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F3 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B7 01 00 35 04 06 00 4B [12:27:40]Write to MH i2c: E2 02 01 B0 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F3 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B7 01 00 35 04 06 00 4B 00 00 B3 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 B0 79 00 90 00 9D [12:27:40]RAPDU: 90 00 [12:27:40]wFMCommunicate OK [12:27:40]wFMCommunicate request_size=10 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 0D 02 02 05 70 1A FA 46 AF [12:27:40]Write to MH i2c: E2 0D 00 B1 79 80 0D 02 02 05 00 70 1A FA 46 AF 00 00 27 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 B1 79 00 90 00 9E [12:27:40]RAPDU: 90 00 [12:27:40]wFMCommunicate OK [12:27:40]wFMCommunicate request_size=4 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 0D 03 02 [12:27:40]Write to MH i2c: E2 08 00 B2 79 80 0D 03 02 00 00 00 00 A6 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 0B 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 0B 00 B2 79 00 73 F3 07 DD A9 BC EB 44 90 00 85 [12:27:40]RAPDU: 73 F3 07 DD A9 BC EB 44 90 00 [12:27:40]wFMCommunicate OK [12:27:40]SAM_PROTO_SignData done [12:27:40]FM_MakeSignedData done [12:27:40]CreateOFDProtocolMessage [12:27:40]wFMCommunicate request_size=4 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 11 00 00 [12:27:40]Write to MH i2c: E2 08 00 B3 79 80 11 00 00 00 00 00 00 A6 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 17 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 17 00 B3 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F8 [12:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:27:40]wFMCommunicate OK [12:27:40]CreateOFDProtocolMessage done [12:27:40]OFDSenderStorePacket 112470 [12:27:40]StoreOFDPacket docnum=112470 [12:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0D 81 07 01 06 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F3 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B7 01 00 35 04 06 00 4B 70 1A FA 46 AF 73 F3 07 DD A9 BC EB 44 [12:27:40]CheckFolder [12:27:40]dirname=/storage/ofd_packets [12:27:40]CheckFolder done [12:27:40]ProducePacketName [12:27:40]name=ofd_packets/00112470 [12:27:40]NVStorageSaveData ofd_packets/00112470 [12:27:40]File name is /storage/ofd_packets/00112470 [12:27:40]Write 301 bytes [12:27:40]NVStorageSaveData done [12:27:40]OFDSenderStorePacket done [12:27:40]KKMCreateOFDPacket done [12:27:40]NVStorageSaveData kkm_last_timestamp [12:27:40]File name is /storage/kkm_last_timestamp [12:27:40]Write 4 bytes [12:27:40]NVStorageSaveData done [12:27:40]ExternCall_PrintAddStr [12:27:40]wPrintStart [12:27:40]Write to MH i2c: 01 00 00 B4 79 2D [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 07 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 07 00 B4 79 00 00 00 00 00 FF 0F 42 [12:27:40]RasterBufferAndPrint [12:27:40]line Счет N : (1)321149 [12:27:40]line ИНН: 02508201610067 [12:27:40]line Контрольно-Кассовый Чек [12:27:40]line ПРОДАЖА [12:27:40]line ТРК (МРК, ГНК) : 11 [12:27:40]line Товар: 2710124130 [12:27:40]line Аи-92-К-5 [12:27:40]line 15.070 * 66.40 [12:27:40]line = 1000.65 [12:27:40]line НДС 12% НСП 1% [12:27:40]line > о реализуемом товаре [12:27:40]line ОКРУГЛЕНИЕ: -0.65 [12:27:40]line ИТОГО: 1000.00 [12:27:40]line Внесено: 1000.00 [12:27:40]line СДАЧА: 0.00 [12:27:40]line НСП 1% : 8.85 [12:27:40]line НДС 12% : 106.26 [12:27:40]line Наличными: 1000.00 [12:27:40]line Безнал.: 0.00 [12:27:40]line Место: АЗС № 65 "Партнер Нефть" [12:27:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:27:40]line СНО: Общий режим [12:27:40]line Чек 71 23.06.2024 12:28 [12:27:40]line Смена: 392 ФФД: 1.0 [12:27:40]line ЗНМ: 0300000198 [12:27:40]line РНМ: 0000000000092771 [12:27:40]line Версия ККМ: 001 [12:27:40]line ФМ: 0000000000875083 [12:27:40]line ФД: 112470 [12:27:40]line ФПД: 82944861030063 [12:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T122835&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112470&fm=82944861030063&tin=02508201610067®Number=0000000000092771&sum=100000 [12:27:41]OFD Sender: Processing packet 112470 [packets to send 38, broken 37] [12:27:41]ProducePacketName [12:27:41]name=ofd_packets/00112470 [12:27:41]OFD Sender: To server: pG, [12:27:41]CommunicateWithHost lk.salyk.kg:30040 [12:27:41]ConnectInit lk.salyk.kg [12:27:41]written 0, free lines is 4095 [12:27:41]Connected sock=10 [12:27:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0D 81 07 01 06 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F3 14 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B7 01 00 35 04 06 00 4B 70 1A FA 46 AF 73 F3 07 DD A9 BC EB 44 [12:27:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 80 1E 47 00 33 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B7 01 00 F4 03 04 00 E0 AB 77 66 B6 04 01 00 00 47 4D F3 E6 31 F4 C1 73 [12:27:41]CommunicateWithHost err = 0 [12:27:41]CheckOFDResponse [12:27:41]1017 (14) - 77093643461234 [12:27:41]1041 (16) - 0000000000875083 [12:27:41]1040 (4) - 112470 [12:27:41]1012 (4) - 23.06.2024 05:00 [12:27:41]1206 (1) - 0 [12:27:41]OFD Sender: Remove packet 112470 [12:27:41]ProducePacketName [12:27:41]name=ofd_packets/00112470 [12:27:41]NVStorageDeleteData [12:27:41]Write to MH i2c: 01 00 00 DF 79 58 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 07 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 07 00 DF 79 00 00 00 00 00 CE 0C 39 [12:27:41]RasterBufferAndPrint [12:27:41]line [12:27:41]line [12:27:41]line [12:27:41]line [12:27:41]line [12:27:41]written 0, free lines is 3285 [12:27:41]MH_Cut [12:27:41]Write to MH i2c: D1 01 00 E6 79 01 31 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: D1 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: D1 01 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: D1 01 00 E6 79 00 30 [12:27:41]Write to MH i2c: 01 00 00 E7 79 60 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]OFD Sender: No OFD packet to send [12:27:42]*** Cut start [12:27:42]*** Partial cut [12:27:42]*** CUTSNS_PIN = 1 [12:27:42]*** CUTSNS_PIN = 0 [12:27:42]*** Brake cut motor [12:27:42]Read from MH i2c: 01 [12:27:42]MH_I2C_Read... [12:27:42]*** Stop cut motor [12:27:42]*** Cut end [12:27:42]Read from MH i2c: 01 07 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: 01 07 00 E7 79 00 00 00 00 00 FF 0F 75 [12:27:42]process_action close_receipt done [12:27:42]requested_data is exist [12:27:42]produce_requested_data [12:27:42]requested_item fm.sn is exist - process it [12:27:42]wFMCommunicate request_size=4 [12:27:42]MH_SAM_APDU [12:27:42]CAPDU: 80 11 00 00 [12:27:42]Write to MH i2c: E2 08 00 E8 79 80 11 00 00 00 00 00 00 DB [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:42]Read from MH i2c: E2 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 17 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 17 00 E8 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2D [12:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:27:42]wFMCommunicate OK [12:27:42]requested_item fd.num is exist - process it [12:27:42]SAM_PROTO_GetFieldsCounters [12:27:42]wFMCommunicate request_size=4 [12:27:42]MH_SAM_APDU [12:27:42]CAPDU: 80 13 00 00 [12:27:42]Write to MH i2c: E2 08 00 E9 79 80 13 00 00 00 00 00 00 DE [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:43]Read from MH i2c: E2 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 62 00 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 62 00 E9 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B7 01 00 0E 04 04 00 88 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 6B [12:27:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B7 01 00 0E 04 04 00 88 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 [12:27:43]wFMCommunicate OK [12:27:43]SAM_PROTO_GetFieldsCounters done [12:27:43]requested_item shift.num is exist - process it [12:27:43]requested_item shift.opened is exist - process it [12:27:43]req_shift_opened [12:27:43]FM_GetShiftState [12:27:43]SAM_PROTO_GetShiftState [12:27:43]wFMCommunicate request_size=4 [12:27:43]MH_SAM_APDU [12:27:43]CAPDU: 80 13 01 00 [12:27:43]Write to MH i2c: E2 08 00 EA 79 80 13 01 00 00 00 00 00 E0 [12:27:43]Write i2c OK [12:27:43]MH_I2C_Read... [12:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:43]Read from MH i2c: E2 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 0E 00 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 0E 00 EA 79 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FE [12:27:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:27:43]wFMCommunicate OK [12:27:43]SAM_PROTO_GetShiftState done [12:27:43]FM_GetShiftState done [12:27:43]req_shift_opened done [12:27:43]requested_item shift.open_date is exist - process it [12:27:43]req_shift_open_date [12:27:43]req_shift_open_date done [12:27:43]produce_requested_data done [12:27:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112470,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:27:43]process_action_free close_receipt [12:27:43]json_value_free [12:27:43]json_value_free done [12:27:43]process_json_proto returns [12:27:43]Send response to host [12:27:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112470,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:27:43]free response buf [12:27:43]execute_script done [12:27:43]execute_script returns [12:27:43]free content buf [12:27:43]Sock 9.Close socket [12:27:43]Sock 9.Thread stoped [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:52]accept exits with 7 [12:29:52]New connection [12:29:52]New thread 3066813796 created [12:29:52]Thread 3066957156 joined [12:29:52]Waiting for new connection... [12:29:52] Sock 7.Parse request [12:29:52]Sock 7.Check first char [12:29:52]Sock 7.First char is OK [12:29:52]request: POST /json_proto HTTP/1.0 [12:29:52]Method: POST [12:29:52]URL: /json_proto [12:29:52]Method is POST - this is cgi request [12:29:52]url: /json_proto [12:29:52]query_string will be loaded in cgi processing [12:29:52]execute_cgi json_proto POST (null) [12:29:52]execute_cgi path=json_proto method=POST [12:29:52]POST find Content-Length [12:29:52]Host: 172.17.59.68:8080 [12:29:52]Content-Length: 677 [12:29:52]Content-Type: application/json [12:29:52] [12:29:52]POST finish read [12:29:52]Found Content-Length = 677 [12:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:29:52]execute_script... [12:29: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)321150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:29:52]POST & json_proto [12:29:52]process_json_proto [12:29:52]json parsed OK: [12:29:52]protocol is kg_v1.0 [12:29:52]action value=close_receipt [12:29:52]process_action close_receipt [12:29:52]cmd_close_receipt [12:29:52]MH_GetDate [12:29:52]Write to MH i2c: F0 00 00 EB 79 53 [12:29:52]Write i2c OK [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: F0 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: F0 09 00 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: F0 09 00 EB 79 00 78 15 78 66 BC EC 60 65 34 [12:29:52]GetLastDocTimeStamp 1719145715 [12:29:52]current date 1719145848 [12:29:52]FM_GetShiftState [12:29:52]SAM_PROTO_GetShiftState [12:29:52]wFMCommunicate request_size=4 [12:29:52]MH_SAM_APDU [12:29:52]CAPDU: 80 13 01 00 [12:29:52]Write to MH i2c: E2 08 00 EC 79 80 13 01 00 00 00 00 00 E2 [12:29:52]Write i2c OK [12:29:52]MH_I2C_Read... [12:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:52]Read from MH i2c: E2 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: E2 0E 00 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: E2 0E 00 EC 79 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 00 [12:29:52]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:29:52]wFMCommunicate OK [12:29:52]SAM_PROTO_GetShiftState done [12:29:52]FM_GetShiftState done [12:29:52]opened in 1719106490 [12:29:52]opened+sec_in_day 1719192890 [12:29:52]quantity*price = 50065 [12:29:52]sum+1 = 50067 [12:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 72 23.06.2024 12:30 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112471 ФПД: 118730660726207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123048&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112471&fm=118730660726207&tin=02508201610067®Number=0000000000092771&sum=50000 [12:29:53]StoreToDocumentArchive [12:29:53]shift 392 fd 112471 [12:29:53]save to /storage/0392/doc_00112471 [12:29:53]save last doc name /storage/0392/doc_00112471 to /storage/kkm_last_doc_name [12:29:53]save OK [12:29:53]Clear old archive folders... [12:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:53]tlvbuf is 012E2920 [12:29:53]SAM_PROTO_ClearQueue [12:29:53]wFMCommunicate request_size=4 [12:29:53]MH_SAM_APDU [12:29:53]CAPDU: 80 09 00 00 [12:29:53]Write to MH i2c: E2 08 00 F9 79 80 09 00 00 00 00 00 00 E4 [12:29:53]Write i2c OK [12:29:53]MH_I2C_Read... [12:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:53]Read from MH i2c: E2 [12:29:53]MH_I2C_Read... [12:29:53]Read from MH i2c: E2 03 00 [12:29:53]MH_I2C_Read... [12:29:53]Read from MH i2c: E2 03 00 F9 79 00 90 00 E6 [12:29:53]RAPDU: 90 00 [12:29:53]wFMCommunicate OK [12:29:53]SAM_PROTO_ClearQueue done [12:29:53]KKMCreateOFDPacket [12:29:53]OFDProtocolAddRootSTLVToBuf [12:29:53]FM_MakeSignedData [12:29:53]FM_MakeSignedData [12:29:53]SAM_PROTO_SignData [12:29:53]wFMCommunicate request_size=4 [12:29:53]MH_SAM_APDU [12:29:53]CAPDU: 80 0D 01 02 [12:29:53]Write to MH i2c: E2 08 00 FA 79 80 0D 01 02 00 00 00 00 EC [12:29:53]Write i2c OK [12:29:53]MH_I2C_Read... [12:29:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:54]Read from MH i2c: E2 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 03 00 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 03 00 FA 79 00 90 00 E7 [12:29:54]RAPDU: 90 00 [12:29:54]wFMCommunicate OK [12:29:54]wFMCommunicate request_size=255 [12:29:54]MH_SAM_APDU [12:29:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 78 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B7 01 00 35 04 06 00 6B [12:29:54]Write to MH i2c: E2 02 01 FB 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 78 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B7 01 00 35 04 06 00 6B 00 00 56 [12:29:54]Write i2c OK [12:29:54]MH_I2C_Read... [12:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:54]Read from MH i2c: E2 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 03 00 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 03 00 FB 79 00 90 00 E8 [12:29:54]RAPDU: 90 00 [12:29:54]wFMCommunicate OK [12:29:54]wFMCommunicate request_size=10 [12:29:54]MH_SAM_APDU [12:29:54]CAPDU: 80 0D 02 02 05 FC 22 DB 45 BF [12:29:54]Write to MH i2c: E2 0D 00 FC 79 80 0D 02 02 05 00 FC 22 DB 45 BF 00 00 F6 [12:29:54]Write i2c OK [12:29:54]MH_I2C_Read... [12:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:54]Read from MH i2c: E2 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 03 00 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 03 00 FC 79 00 90 00 E9 [12:29:54]RAPDU: 90 00 [12:29:54]wFMCommunicate OK [12:29:54]wFMCommunicate request_size=4 [12:29:54]MH_SAM_APDU [12:29:54]CAPDU: 80 0D 03 02 [12:29:54]Write to MH i2c: E2 08 00 FD 79 80 0D 03 02 00 00 00 00 F1 [12:29:54]Write i2c OK [12:29:54]MH_I2C_Read... [12:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:54]Read from MH i2c: E2 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 0B 00 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 0B 00 FD 79 00 2F 9F A4 1F 07 55 FD A9 90 00 85 [12:29:54]RAPDU: 2F 9F A4 1F 07 55 FD A9 90 00 [12:29:54]wFMCommunicate OK [12:29:54]SAM_PROTO_SignData done [12:29:54]FM_MakeSignedData done [12:29:54]CreateOFDProtocolMessage [12:29:54]wFMCommunicate request_size=4 [12:29:54]MH_SAM_APDU [12:29:54]CAPDU: 80 11 00 00 [12:29:54]Write to MH i2c: E2 08 00 FE 79 80 11 00 00 00 00 00 00 F1 [12:29:54]Write i2c OK [12:29:54]MH_I2C_Read... [12:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:54]Read from MH i2c: E2 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 17 00 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 17 00 FE 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [12:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:54]wFMCommunicate OK [12:29:54]CreateOFDProtocolMessage done [12:29:54]OFDSenderStorePacket 112471 [12:29:54]StoreOFDPacket docnum=112471 [12:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 15 07 01 81 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 78 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B7 01 00 35 04 06 00 6B FC 22 DB 45 BF 2F 9F A4 1F 07 55 FD A9 [12:29:54]CheckFolder [12:29:54]dirname=/storage/ofd_packets [12:29:54]CheckFolder done [12:29:54]ProducePacketName [12:29:54]name=ofd_packets/00112471 [12:29:54]NVStorageSaveData ofd_packets/00112471 [12:29:54]File name is /storage/ofd_packets/00112471 [12:29:54]Write 301 bytes [12:29:54]NVStorageSaveData done [12:29:54]OFDSenderStorePacket done [12:29:54]KKMCreateOFDPacket done [12:29:54]NVStorageSaveData kkm_last_timestamp [12:29:54]File name is /storage/kkm_last_timestamp [12:29:54]Write 4 bytes [12:29:54]NVStorageSaveData done [12:29:54]ExternCall_PrintAddStr [12:29:54]wPrintStart [12:29:54]Write to MH i2c: 01 00 00 FF 79 78 [12:29:54]Write i2c OK [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: 01 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: 01 07 00 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: 01 07 00 FF 79 00 00 00 00 00 FF 0F 8D [12:29:54]RasterBufferAndPrint [12:29:54]line Счет N : (1)321150 [12:29:54]line ИНН: 02508201610067 [12:29:54]line Контрольно-Кассовый Чек [12:29:54]line ПРОДАЖА [12:29:54]line ТРК (МРК, ГНК) : 11 [12:29:54]line Товар: 2710124130 [12:29:54]line Аи-92-К-5 [12:29:54]line 7.540 * 66.40 [12:29:54]line = 500.66 [12:29:54]line НДС 12% НСП 1% [12:29:54]line > о реализуемом товаре [12:29:54]line ОКРУГЛЕНИЕ: -0.66 [12:29:54]line ИТОГО: 500.00 [12:29:54]line Внесено: 500.00 [12:29:54]line СДАЧА: 0.00 [12:29:54]line НСП 1% : 4.43 [12:29:54]line НДС 12% : 53.17 [12:29:54]line Наличными: 500.00 [12:29:54]line Безнал.: 0.00 [12:29:54]line Место: АЗС № 65 "Партнер Нефть" [12:29:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:29:54]line СНО: Общий режим [12:29:54]line Чек 72 23.06.2024 12:30 [12:29:54]line Смена: 392 ФФД: 1.0 [12:29:54]line ЗНМ: 0300000198 [12:29:54]line РНМ: 0000000000092771 [12:29:54]line Версия ККМ: 001 [12:29:54]line ФМ: 0000000000875083 [12:29:54]line ФД: 112471 [12:29:54]line ФПД: 118730660726207 [12:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123048&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112471&fm=118730660726207&tin=02508201610067®Number=0000000000092771&sum=50000 [12:29:54]OFD Sender: Processing packet 112471 [packets to send 38, broken 37] [12:29:54]ProducePacketName [12:29:54]name=ofd_packets/00112471 [12:29:54]OFD Sender: To server: pG, [12:29:54]CommunicateWithHost lk.salyk.kg:30040 [12:29:54]ConnectInit lk.salyk.kg [12:29:54]written 0, free lines is 4095 [12:29:54]Connected sock=10 [12:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 15 07 01 81 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 78 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B7 01 00 35 04 06 00 6B FC 22 DB 45 BF 2F 9F A4 1F 07 55 FD A9 [12:29:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F2 5F 47 00 5E 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 38 37 35 30 38 33 10 04 04 00 57 B7 01 00 F4 03 04 00 66 AC 77 66 B6 04 01 00 00 F3 B2 0F 24 67 49 3B 72 [12:29:55]CommunicateWithHost err = 0 [12:29:55]CheckOFDResponse [12:29:55]1017 (14) - 77093643461234 [12:29:55]1041 (16) - 0000000000875083 [12:29:55]1040 (4) - 112471 [12:29:55]1012 (4) - 23.06.2024 05:02 [12:29:55]1206 (1) - 0 [12:29:55]OFD Sender: Remove packet 112471 [12:29:55]ProducePacketName [12:29:55]name=ofd_packets/00112471 [12:29:55]NVStorageDeleteData [12:29:55]Write to MH i2c: 01 00 00 2A 7A A4 [12:29:55]Write i2c OK [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: 01 [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: 01 07 00 [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: 01 07 00 2A 7A 00 00 00 00 00 CD 0C 84 [12:29:55]RasterBufferAndPrint [12:29:55]line [12:29:55]line [12:29:55]line [12:29:55]line [12:29:55]line [12:29:55]written 0, free lines is 3287 [12:29:55]MH_Cut [12:29:55]Write to MH i2c: D1 01 00 31 7A 01 7D [12:29:55]Write i2c OK [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: D1 [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: D1 01 00 [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: D1 01 00 31 7A 00 7C [12:29:55]Write to MH i2c: 01 00 00 32 7A AC [12:29:55]Write i2c OK [12:29:55]MH_I2C_Read... [12:29:55]OFD Sender: No OFD packet to send [12:29:56]*** Cut start [12:29:56]*** Partial cut [12:29:56]*** CUTSNS_PIN = 1 [12:29:56]*** CUTSNS_PIN = 0 [12:29:56]*** Brake cut motor [12:29:56]Read from MH i2c: 01 [12:29:56]MH_I2C_Read... [12:29:56]*** Stop cut motor [12:29:56]*** Cut end [12:29:56]Read from MH i2c: 01 07 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: 01 07 00 32 7A 00 00 00 00 00 FF 0F C1 [12:29:56]process_action close_receipt done [12:29:56]requested_data is exist [12:29:56]produce_requested_data [12:29:56]requested_item fm.sn is exist - process it [12:29:56]wFMCommunicate request_size=4 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 11 00 00 [12:29:56]Write to MH i2c: E2 08 00 33 7A 80 11 00 00 00 00 00 00 27 [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 17 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 17 00 33 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [12:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:56]wFMCommunicate OK [12:29:56]requested_item fd.num is exist - process it [12:29:56]SAM_PROTO_GetFieldsCounters [12:29:56]wFMCommunicate request_size=4 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 13 00 00 [12:29:56]Write to MH i2c: E2 08 00 34 7A 80 13 00 00 00 00 00 00 2A [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 62 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 62 00 34 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B7 01 00 0E 04 04 00 88 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 BB [12:29:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B7 01 00 0E 04 04 00 88 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 [12:29:56]wFMCommunicate OK [12:29:56]SAM_PROTO_GetFieldsCounters done [12:29:56]requested_item shift.num is exist - process it [12:29:56]requested_item shift.opened is exist - process it [12:29:56]req_shift_opened [12:29:56]FM_GetShiftState [12:29:56]SAM_PROTO_GetShiftState [12:29:56]wFMCommunicate request_size=4 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 13 01 00 [12:29:56]Write to MH i2c: E2 08 00 35 7A 80 13 01 00 00 00 00 00 2C [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 0E 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 0E 00 35 7A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4A [12:29:56]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:29:56]wFMCommunicate OK [12:29:56]SAM_PROTO_GetShiftState done [12:29:56]FM_GetShiftState done [12:29:56]req_shift_opened done [12:29:56]requested_item shift.open_date is exist - process it [12:29:56]req_shift_open_date [12:29:56]req_shift_open_date done [12:29:56]produce_requested_data done [12:29:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112471,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:29:56]process_action_free close_receipt [12:29:56]json_value_free [12:29:56]json_value_free done [12:29:56]process_json_proto returns [12:29:56]Send response to host [12:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112471,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:29:56]free response buf [12:29:56]execute_script done [12:29:56]execute_script returns [12:29:56]free content buf [12:29:56]Sock 7.Close socket [12:29:56]Sock 7.Thread stoped [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:24]accept exits with 9 [12:30:24]New connection [12:30:24]New thread 3066957156 created [12:30:24]Thread 3066813796 joined [12:30:24]Waiting for new connection... [12:30:24] Sock 9.Parse request [12:30:24]Sock 9.Check first char [12:30:24]Sock 9.First char is OK [12:30:24]request: POST /json_proto HTTP/1.0 [12:30:24]Method: POST [12:30:24]URL: /json_proto [12:30:24]Method is POST - this is cgi request [12:30:24]url: /json_proto [12:30:24]query_string will be loaded in cgi processing [12:30:24]execute_cgi json_proto POST (null) [12:30:24]execute_cgi path=json_proto method=POST [12:30:24]POST find Content-Length [12:30:24]Host: 172.17.59.68:8080 [12:30:24]Content-Length: 677 [12:30:24]Content-Type: application/json [12:30:24] [12:30:24]POST finish read [12:30:24]Found Content-Length = 677 [12:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:24]execute_script... [12:30: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)321151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:24]POST & json_proto [12:30:24]process_json_proto [12:30:24]json parsed OK: [12:30:24]protocol is kg_v1.0 [12:30:24]action value=close_receipt [12:30:24]process_action close_receipt [12:30:24]cmd_close_receipt [12:30:24]MH_GetDate [12:30:24]Write to MH i2c: F0 00 00 36 7A 9F [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: F0 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: F0 09 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: F0 09 00 36 7A 00 98 15 78 66 BC EC 60 65 A0 [12:30:24]GetLastDocTimeStamp 1719145848 [12:30:24]current date 1719145880 [12:30:24]FM_GetShiftState [12:30:24]SAM_PROTO_GetShiftState [12:30:24]wFMCommunicate request_size=4 [12:30:24]MH_SAM_APDU [12:30:24]CAPDU: 80 13 01 00 [12:30:24]Write to MH i2c: E2 08 00 37 7A 80 13 01 00 00 00 00 00 2E [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:24]Read from MH i2c: E2 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 0E 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 0E 00 37 7A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4C [12:30:24]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:30:24]wFMCommunicate OK [12:30:24]SAM_PROTO_GetShiftState done [12:30:24]FM_GetShiftState done [12:30:24]opened in 1719106490 [12:30:24]opened+sec_in_day 1719192890 [12:30:24]quantity*price = 35059 [12:30:24]sum+1 = 35060 [12:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 73 23.06.2024 12:31 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112472 ФПД: 152075071759946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123120&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112472&fm=152075071759946&tin=02508201610067®Number=0000000000092771&sum=35000 [12:30:25]StoreToDocumentArchive [12:30:25]shift 392 fd 112472 [12:30:25]save to /storage/0392/doc_00112472 [12:30:25]save last doc name /storage/0392/doc_00112472 to /storage/kkm_last_doc_name [12:30:25]save OK [12:30:25]Clear old archive folders... [12:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:25]tlvbuf is 011D12F0 [12:30:25]SAM_PROTO_ClearQueue [12:30:25]wFMCommunicate request_size=4 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 09 00 00 [12:30:25]Write to MH i2c: E2 08 00 44 7A 80 09 00 00 00 00 00 00 30 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 44 7A 00 90 00 32 [12:30:25]RAPDU: 90 00 [12:30:25]wFMCommunicate OK [12:30:25]SAM_PROTO_ClearQueue done [12:30:25]KKMCreateOFDPacket [12:30:25]OFDProtocolAddRootSTLVToBuf [12:30:25]FM_MakeSignedData [12:30:25]FM_MakeSignedData [12:30:25]SAM_PROTO_SignData [12:30:25]wFMCommunicate request_size=4 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 0D 01 02 [12:30:25]Write to MH i2c: E2 08 00 45 7A 80 0D 01 02 00 00 00 00 38 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 45 7A 00 90 00 33 [12:30:25]RAPDU: 90 00 [12:30:25]wFMCommunicate OK [12:30:25]wFMCommunicate request_size=255 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 98 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B7 01 00 35 04 06 00 8A [12:30:25]Write to MH i2c: E2 02 01 46 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 98 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B7 01 00 35 04 06 00 8A 00 00 C1 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 46 7A 00 90 00 34 [12:30:25]RAPDU: 90 00 [12:30:25]wFMCommunicate OK [12:30:25]wFMCommunicate request_size=10 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 0D 02 02 05 4F BC A1 A6 4A [12:30:25]Write to MH i2c: E2 0D 00 47 7A 80 0D 02 02 05 00 4F BC A1 A6 4A 00 00 E1 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 47 7A 00 90 00 35 [12:30:25]RAPDU: 90 00 [12:30:25]wFMCommunicate OK [12:30:25]wFMCommunicate request_size=4 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 0D 03 02 [12:30:25]Write to MH i2c: E2 08 00 48 7A 80 0D 03 02 00 00 00 00 3D [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]OFD Sender: No OFD packet to send [12:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 0B 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 0B 00 48 7A 00 17 BA 3D 1D 9D 51 CD 97 90 00 BB [12:30:25]RAPDU: 17 BA 3D 1D 9D 51 CD 97 90 00 [12:30:25]wFMCommunicate OK [12:30:25]SAM_PROTO_SignData done [12:30:25]FM_MakeSignedData done [12:30:25]CreateOFDProtocolMessage [12:30:25]wFMCommunicate request_size=4 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 11 00 00 [12:30:25]Write to MH i2c: E2 08 00 49 7A 80 11 00 00 00 00 00 00 3D [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 17 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 17 00 49 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8F [12:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:30:25]wFMCommunicate OK [12:30:25]CreateOFDProtocolMessage done [12:30:25]OFDSenderStorePacket 112472 [12:30:25]StoreOFDPacket docnum=112472 [12:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A ED 07 01 C3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 98 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B7 01 00 35 04 06 00 8A 4F BC A1 A6 4A 17 BA 3D 1D 9D 51 CD 97 [12:30:25]CheckFolder [12:30:25]dirname=/storage/ofd_packets [12:30:25]CheckFolder done [12:30:25]ProducePacketName [12:30:25]name=ofd_packets/00112472 [12:30:25]NVStorageSaveData ofd_packets/00112472 [12:30:25]File name is /storage/ofd_packets/00112472 [12:30:25]Write 301 bytes [12:30:25]NVStorageSaveData done [12:30:25]OFDSenderStorePacket done [12:30:25]KKMCreateOFDPacket done [12:30:25]NVStorageSaveData kkm_last_timestamp [12:30:25]File name is /storage/kkm_last_timestamp [12:30:25]Write 4 bytes [12:30:25]NVStorageSaveData done [12:30:25]ExternCall_PrintAddStr [12:30:25]wPrintStart [12:30:25]Write to MH i2c: 01 00 00 4A 7A C4 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: 01 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: 01 07 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: 01 07 00 4A 7A 00 00 00 00 00 FF 0F D9 [12:30:25]RasterBufferAndPrint [12:30:25]line Счет N : (1)321151 [12:30:25]line ИНН: 02508201610067 [12:30:25]line Контрольно-Кассовый Чек [12:30:25]line ПРОДАЖА [12:30:25]line ТРК (МРК, ГНК) : 11 [12:30:25]line Товар: 2710124130 [12:30:25]line Аи-92-К-5 [12:30:25]line 5.280 * 66.40 [12:30:25]line = 350.59 [12:30:25]line НДС 12% НСП 1% [12:30:25]line > о реализуемом товаре [12:30:25]line ОКРУГЛЕНИЕ: -0.59 [12:30:25]line ИТОГО: 350.00 [12:30:25]line Внесено: 350.00 [12:30:25]line СДАЧА: 0.00 [12:30:25]line НСП 1% : 3.10 [12:30:25]line НДС 12% : 37.23 [12:30:25]line Наличными: 350.00 [12:30:25]line Безнал.: 0.00 [12:30:25]line Место: АЗС № 65 "Партнер Нефть" [12:30:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:30:25]line СНО: Общий режим [12:30:25]line Чек 73 23.06.2024 12:31 [12:30:25]line Смена: 392 ФФД: 1.0 [12:30:25]line ЗНМ: 0300000198 [12:30:25]line РНМ: 0000000000092771 [12:30:25]line Версия ККМ: 001 [12:30:25]line ФМ: 0000000000875083 [12:30:25]line ФД: 112472 [12:30:25]line ФПД: 152075071759946 [12:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123120&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112472&fm=152075071759946&tin=02508201610067®Number=0000000000092771&sum=35000 [12:30:25]OFD Sender: Processing packet 112472 [packets to send 38, broken 37] [12:30:25]ProducePacketName [12:30:25]name=ofd_packets/00112472 [12:30:25]OFD Sender: To server: pG, [12:30:25]CommunicateWithHost lk.salyk.kg:30040 [12:30:25]ConnectInit lk.salyk.kg [12:30:26]written 0, free lines is 4095 [12:30:26]Connected sock=10 [12:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A ED 07 01 C3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 98 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B7 01 00 35 04 06 00 8A 4F BC A1 A6 4A 17 BA 3D 1D 9D 51 CD 97 [12:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 42 A2 47 00 9E 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B7 01 00 F4 03 04 00 85 AC 77 66 B6 04 01 00 00 26 C1 2E 88 78 C0 DA 2E [12:30:26]CommunicateWithHost err = 0 [12:30:26]CheckOFDResponse [12:30:26]1017 (14) - 77093643461234 [12:30:26]1041 (16) - 0000000000875083 [12:30:26]1040 (4) - 112472 [12:30:26]1012 (4) - 23.06.2024 05:03 [12:30:26]1206 (1) - 0 [12:30:26]OFD Sender: Remove packet 112472 [12:30:26]ProducePacketName [12:30:26]name=ofd_packets/00112472 [12:30:26]NVStorageDeleteData [12:30:26]Write to MH i2c: 01 00 00 75 7A EF [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 07 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 07 00 75 7A 00 00 00 00 00 D1 0C D3 [12:30:26]RasterBufferAndPrint [12:30:26]line [12:30:26]line [12:30:26]line [12:30:26]line [12:30:26]line [12:30:26]written 0, free lines is 3289 [12:30:26]MH_Cut [12:30:26]Write to MH i2c: D1 01 00 7C 7A 01 C8 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: D1 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: D1 01 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: D1 01 00 7C 7A 00 C7 [12:30:26]Write to MH i2c: 01 00 00 7D 7A F7 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]OFD Sender: No OFD packet to send [12:30:27]*** Cut start [12:30:27]*** Partial cut [12:30:27]*** CUTSNS_PIN = 1 [12:30:27]*** CUTSNS_PIN = 0 [12:30:27]*** Brake cut motor [12:30:27]Read from MH i2c: 01 [12:30:27]MH_I2C_Read... [12:30:27]*** Stop cut motor [12:30:27]*** Cut end [12:30:27]Read from MH i2c: 01 07 00 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: 01 07 00 7D 7A 00 00 00 00 00 FF 0F 0C [12:30:27]process_action close_receipt done [12:30:27]requested_data is exist [12:30:27]produce_requested_data [12:30:27]requested_item fm.sn is exist - process it [12:30:27]wFMCommunicate request_size=4 [12:30:27]MH_SAM_APDU [12:30:27]CAPDU: 80 11 00 00 [12:30:27]Write to MH i2c: E2 08 00 7E 7A 80 11 00 00 00 00 00 00 72 [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:27]Read from MH i2c: E2 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: E2 17 00 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: E2 17 00 7E 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C4 [12:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:30:27]wFMCommunicate OK [12:30:27]requested_item fd.num is exist - process it [12:30:27]SAM_PROTO_GetFieldsCounters [12:30:27]wFMCommunicate request_size=4 [12:30:27]MH_SAM_APDU [12:30:27]CAPDU: 80 13 00 00 [12:30:27]Write to MH i2c: E2 08 00 7F 7A 80 13 00 00 00 00 00 00 75 [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:28]Read from MH i2c: E2 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 62 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 62 00 7F 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B7 01 00 0E 04 04 00 88 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 0A [12:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B7 01 00 0E 04 04 00 88 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 [12:30:28]wFMCommunicate OK [12:30:28]SAM_PROTO_GetFieldsCounters done [12:30:28]requested_item shift.num is exist - process it [12:30:28]requested_item shift.opened is exist - process it [12:30:28]req_shift_opened [12:30:28]FM_GetShiftState [12:30:28]SAM_PROTO_GetShiftState [12:30:28]wFMCommunicate request_size=4 [12:30:28]MH_SAM_APDU [12:30:28]CAPDU: 80 13 01 00 [12:30:28]Write to MH i2c: E2 08 00 80 7A 80 13 01 00 00 00 00 00 77 [12:30:28]Write i2c OK [12:30:28]MH_I2C_Read... [12:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:28]Read from MH i2c: E2 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 0E 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 0E 00 80 7A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 95 [12:30:28]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:30:28]wFMCommunicate OK [12:30:28]SAM_PROTO_GetShiftState done [12:30:28]FM_GetShiftState done [12:30:28]req_shift_opened done [12:30:28]requested_item shift.open_date is exist - process it [12:30:28]req_shift_open_date [12:30:28]req_shift_open_date done [12:30:28]produce_requested_data done [12:30:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112472,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:30:28]process_action_free close_receipt [12:30:28]json_value_free [12:30:28]json_value_free done [12:30:28]process_json_proto returns [12:30:28]Send response to host [12:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112472,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:30:28]free response buf [12:30:28]execute_script done [12:30:28]execute_script returns [12:30:28]free content buf [12:30:28]Sock 9.Close socket [12:30:28]Sock 9.Thread stoped [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]accept exits with 7 [12:32:01]New connection [12:32:01]New thread 3066813796 created [12:32:01]Thread 3066957156 joined [12:32:01]Waiting for new connection... [12:32:01] Sock 7.Parse request [12:32:01]Sock 7.Check first char [12:32:01]Sock 7.First char is OK [12:32:01]request: POST /json_proto HTTP/1.0 [12:32:01]Method: POST [12:32:01]URL: /json_proto [12:32:01]Method is POST - this is cgi request [12:32:01]url: /json_proto [12:32:01]query_string will be loaded in cgi processing [12:32:01]execute_cgi json_proto POST (null) [12:32:01]execute_cgi path=json_proto method=POST [12:32:01]POST find Content-Length [12:32:01]Host: 172.17.59.68:8080 [12:32:01]Content-Length: 677 [12:32:01]Content-Type: application/json [12:32:01] [12:32:01]POST finish read [12:32:01]Found Content-Length = 677 [12:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.940, "sum" : 660.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:01]execute_script... [12:32: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)321152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.940, "sum" : 660.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:01]POST & json_proto [12:32:01]process_json_proto [12:32:01]json parsed OK: [12:32:01]protocol is kg_v1.0 [12:32:01]action value=close_receipt [12:32:01]process_action close_receipt [12:32:01]cmd_close_receipt [12:32:01]MH_GetDate [12:32:01]Write to MH i2c: F0 00 00 81 7A EA [12:32:01]Write i2c OK [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: F0 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: F0 09 00 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: F0 09 00 81 7A 00 F9 15 78 66 BC EC 60 65 4C [12:32:01]GetLastDocTimeStamp 1719145880 [12:32:01]current date 1719145977 [12:32:01]FM_GetShiftState [12:32:01]SAM_PROTO_GetShiftState [12:32:01]wFMCommunicate request_size=4 [12:32:01]MH_SAM_APDU [12:32:01]CAPDU: 80 13 01 00 [12:32:01]Write to MH i2c: E2 08 00 82 7A 80 13 01 00 00 00 00 00 79 [12:32:01]Write i2c OK [12:32:01]MH_I2C_Read... [12:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:01]Read from MH i2c: E2 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: E2 0E 00 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: E2 0E 00 82 7A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 97 [12:32:01]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:32:01]wFMCommunicate OK [12:32:01]SAM_PROTO_GetShiftState done [12:32:01]FM_GetShiftState done [12:32:01]opened in 1719106490 [12:32:01]opened+sec_in_day 1719192890 [12:32:01]quantity*price = 66001 [12:32:01]sum+1 = 66003 [12:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.09 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 74 23.06.2024 12:32 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112473 ФПД: 280969710136052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123257&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112473&fm=280969710136052&tin=02508201610067®Number=0000000000092771&sum=66000 [12:32:02]StoreToDocumentArchive [12:32:02]shift 392 fd 112473 [12:32:02]save to /storage/0392/doc_00112473 [12:32:02]save last doc name /storage/0392/doc_00112473 to /storage/kkm_last_doc_name [12:32:02]save OK [12:32:02]Clear old archive folders... [12:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:02]tlvbuf is 011D13D0 [12:32:02]SAM_PROTO_ClearQueue [12:32:02]wFMCommunicate request_size=4 [12:32:02]MH_SAM_APDU [12:32:02]CAPDU: 80 09 00 00 [12:32:02]Write to MH i2c: E2 08 00 8F 7A 80 09 00 00 00 00 00 00 7B [12:32:02]Write i2c OK [12:32:02]MH_I2C_Read... [12:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:02]Read from MH i2c: E2 [12:32:02]MH_I2C_Read... [12:32:02]Read from MH i2c: E2 03 00 [12:32:02]MH_I2C_Read... [12:32:02]Read from MH i2c: E2 03 00 8F 7A 00 90 00 7D [12:32:02]RAPDU: 90 00 [12:32:02]wFMCommunicate OK [12:32:02]SAM_PROTO_ClearQueue done [12:32:02]KKMCreateOFDPacket [12:32:02]OFDProtocolAddRootSTLVToBuf [12:32:02]FM_MakeSignedData [12:32:02]FM_MakeSignedData [12:32:02]SAM_PROTO_SignData [12:32:02]wFMCommunicate request_size=4 [12:32:02]MH_SAM_APDU [12:32:02]CAPDU: 80 0D 01 02 [12:32:02]Write to MH i2c: E2 08 00 90 7A 80 0D 01 02 00 00 00 00 83 [12:32:02]Write i2c OK [12:32:02]MH_I2C_Read... [12:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:02]Read from MH i2c: E2 [12:32:02]MH_I2C_Read... [12:32:02]Read from MH i2c: E2 03 00 [12:32:02]MH_I2C_Read... [12:32:02]Read from MH i2c: E2 03 00 90 7A 00 90 00 7E [12:32:02]RAPDU: 90 00 [12:32:02]wFMCommunicate OK [12:32:02]wFMCommunicate request_size=255 [12:32:02]MH_SAM_APDU [12:32:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 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 F9 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B7 01 00 35 04 06 00 FF [12:32:02]Write to MH i2c: E2 02 01 91 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 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 F9 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B7 01 00 35 04 06 00 FF 00 00 9D [12:32:02]Write i2c OK [12:32:02]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 03 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 03 00 91 7A 00 90 00 7F [12:32:03]RAPDU: 90 00 [12:32:03]wFMCommunicate OK [12:32:03]wFMCommunicate request_size=10 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 0D 02 02 05 8A 5B C3 EA F4 [12:32:03]Write to MH i2c: E2 0D 00 92 7A 80 0D 02 02 05 00 8A 5B C3 EA F4 00 00 16 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 03 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 03 00 92 7A 00 90 00 80 [12:32:03]RAPDU: 90 00 [12:32:03]wFMCommunicate OK [12:32:03]wFMCommunicate request_size=4 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 0D 03 02 [12:32:03]Write to MH i2c: E2 08 00 93 7A 80 0D 03 02 00 00 00 00 88 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 0B 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 0B 00 93 7A 00 01 B5 77 FE F8 9E 1D F0 90 00 57 [12:32:03]RAPDU: 01 B5 77 FE F8 9E 1D F0 90 00 [12:32:03]wFMCommunicate OK [12:32:03]SAM_PROTO_SignData done [12:32:03]FM_MakeSignedData done [12:32:03]CreateOFDProtocolMessage [12:32:03]wFMCommunicate request_size=4 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 11 00 00 [12:32:03]Write to MH i2c: E2 08 00 94 7A 80 11 00 00 00 00 00 00 88 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 17 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 17 00 94 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [12:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:32:03]wFMCommunicate OK [12:32:03]CreateOFDProtocolMessage done [12:32:03]OFDSenderStorePacket 112473 [12:32:03]StoreOFDPacket docnum=112473 [12:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 35 01 07 01 D1 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 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 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 F9 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B7 01 00 35 04 06 00 FF 8A 5B C3 EA F4 01 B5 77 FE F8 9E 1D F0 [12:32:03]CheckFolder [12:32:03]dirname=/storage/ofd_packets [12:32:03]CheckFolder done [12:32:03]ProducePacketName [12:32:03]name=ofd_packets/00112473 [12:32:03]NVStorageSaveData ofd_packets/00112473 [12:32:03]File name is /storage/ofd_packets/00112473 [12:32:03]Write 301 bytes [12:32:03]NVStorageSaveData done [12:32:03]OFDSenderStorePacket done [12:32:03]KKMCreateOFDPacket done [12:32:03]NVStorageSaveData kkm_last_timestamp [12:32:03]File name is /storage/kkm_last_timestamp [12:32:03]Write 4 bytes [12:32:03]NVStorageSaveData done [12:32:03]ExternCall_PrintAddStr [12:32:03]wPrintStart [12:32:03]Write to MH i2c: 01 00 00 95 7A 0F [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 07 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 07 00 95 7A 00 00 00 00 00 FF 0F 24 [12:32:03]RasterBufferAndPrint [12:32:03]line Счет N : (1)321152 [12:32:03]line ИНН: 02508201610067 [12:32:03]line Контрольно-Кассовый Чек [12:32:03]line ПРОДАЖА [12:32:03]line ТРК (МРК, ГНК) : 11 [12:32:03]line Товар: 2710124130 [12:32:03]line Аи-92-К-5 [12:32:03]line 9.940 * 66.40 [12:32:03]line = 660.02 [12:32:03]line НДС 12% НСП 1% [12:32:03]line > о реализуемом товаре [12:32:03]line ОКРУГЛЕНИЕ: -0.02 [12:32:03]line ИТОГО: 660.00 [12:32:03]line Внесено: 660.00 [12:32:03]line СДАЧА: 0.00 [12:32:03]line НСП 1% : 5.84 [12:32:03]line НДС 12% : 70.09 [12:32:03]line Наличными: 660.00 [12:32:03]line Безнал.: 0.00 [12:32:03]line Место: АЗС № 65 "Партнер Нефть" [12:32:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:32:03]line СНО: Общий режим [12:32:03]line Чек 74 23.06.2024 12:32 [12:32:03]line Смена: 392 ФФД: 1.0 [12:32:03]line ЗНМ: 0300000198 [12:32:03]line РНМ: 0000000000092771 [12:32:03]line Версия ККМ: 001 [12:32:03]line ФМ: 0000000000875083 [12:32:03]line ФД: 112473 [12:32:03]line ФПД: 280969710136052 [12:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123257&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112473&fm=280969710136052&tin=02508201610067®Number=0000000000092771&sum=66000 [12:32:03]OFD Sender: Processing packet 112473 [packets to send 38, broken 37] [12:32:03]ProducePacketName [12:32:03]name=ofd_packets/00112473 [12:32:03]OFD Sender: To server: pG, [12:32:03]CommunicateWithHost lk.salyk.kg:30040 [12:32:03]ConnectInit lk.salyk.kg [12:32:03]written 0, free lines is 4095 [12:32:03]Connected sock=11 [12:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 35 01 07 01 D1 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 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 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 F9 15 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B7 01 00 35 04 06 00 FF 8A 5B C3 EA F4 01 B5 77 FE F8 9E 1D F0 [12:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D A1 47 00 22 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B7 01 00 F4 03 04 00 E7 AC 77 66 B6 04 01 00 00 38 64 0E 5F 6F 3B E8 E5 [12:32:03]CommunicateWithHost err = 0 [12:32:03]CheckOFDResponse [12:32:03]1017 (14) - 77093643461234 [12:32:03]1041 (16) - 0000000000875083 [12:32:03]1040 (4) - 112473 [12:32:03]1012 (4) - 23.06.2024 05:04 [12:32:03]1206 (1) - 0 [12:32:03]OFD Sender: Remove packet 112473 [12:32:03]ProducePacketName [12:32:03]name=ofd_packets/00112473 [12:32:03]NVStorageDeleteData [12:32:03]Write to MH i2c: 01 00 00 C0 7A 3A [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 07 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 07 00 C0 7A 00 00 00 00 00 D3 0C 20 [12:32:03]RasterBufferAndPrint [12:32:03]line [12:32:03]line [12:32:03]line [12:32:03]line [12:32:03]line [12:32:03]written 0, free lines is 3287 [12:32:03]MH_Cut [12:32:03]Write to MH i2c: D1 01 00 C7 7A 01 13 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: D1 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: D1 01 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: D1 01 00 C7 7A 00 12 [12:32:03]Write to MH i2c: 01 00 00 C8 7A 42 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:04]OFD Sender: No OFD packet to send [12:32:04]*** Cut start [12:32:04]*** Partial cut [12:32:04]*** CUTSNS_PIN = 1 [12:32:04]*** CUTSNS_PIN = 0 [12:32:04]*** Brake cut motor [12:32:05]Read from MH i2c: 01 [12:32:05]MH_I2C_Read... [12:32:05]*** Stop cut motor [12:32:05]*** Cut end [12:32:05]Read from MH i2c: 01 07 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: 01 07 00 C8 7A 00 00 00 00 00 FF 0F 57 [12:32:05]process_action close_receipt done [12:32:05]requested_data is exist [12:32:05]produce_requested_data [12:32:05]requested_item fm.sn is exist - process it [12:32:05]wFMCommunicate request_size=4 [12:32:05]MH_SAM_APDU [12:32:05]CAPDU: 80 11 00 00 [12:32:05]Write to MH i2c: E2 08 00 C9 7A 80 11 00 00 00 00 00 00 BD [12:32:05]Write i2c OK [12:32:05]MH_I2C_Read... [12:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:05]Read from MH i2c: E2 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 17 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 17 00 C9 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0F [12:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:32:05]wFMCommunicate OK [12:32:05]requested_item fd.num is exist - process it [12:32:05]SAM_PROTO_GetFieldsCounters [12:32:05]wFMCommunicate request_size=4 [12:32:05]MH_SAM_APDU [12:32:05]CAPDU: 80 13 00 00 [12:32:05]Write to MH i2c: E2 08 00 CA 7A 80 13 00 00 00 00 00 00 C0 [12:32:05]Write i2c OK [12:32:05]MH_I2C_Read... [12:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:05]Read from MH i2c: E2 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 62 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 62 00 CA 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B7 01 00 0E 04 04 00 88 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 59 [12:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B7 01 00 0E 04 04 00 88 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 [12:32:05]wFMCommunicate OK [12:32:05]SAM_PROTO_GetFieldsCounters done [12:32:05]requested_item shift.num is exist - process it [12:32:05]requested_item shift.opened is exist - process it [12:32:05]req_shift_opened [12:32:05]FM_GetShiftState [12:32:05]SAM_PROTO_GetShiftState [12:32:05]wFMCommunicate request_size=4 [12:32:05]MH_SAM_APDU [12:32:05]CAPDU: 80 13 01 00 [12:32:05]Write to MH i2c: E2 08 00 CB 7A 80 13 01 00 00 00 00 00 C2 [12:32:05]Write i2c OK [12:32:05]MH_I2C_Read... [12:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:05]Read from MH i2c: E2 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 0E 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 0E 00 CB 7A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E0 [12:32:05]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:32:05]wFMCommunicate OK [12:32:05]SAM_PROTO_GetShiftState done [12:32:05]FM_GetShiftState done [12:32:05]req_shift_opened done [12:32:05]requested_item shift.open_date is exist - process it [12:32:05]req_shift_open_date [12:32:05]req_shift_open_date done [12:32:05]produce_requested_data done [12:32:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112473,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:32:05]process_action_free close_receipt [12:32:05]json_value_free [12:32:05]json_value_free done [12:32:05]process_json_proto returns [12:32:05]Send response to host [12:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112473,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:32:05]free response buf [12:32:05]execute_script done [12:32:05]execute_script returns [12:32:05]free content buf [12:32:05]Sock 7.Close socket [12:32:05]Sock 7.Thread stoped [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:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:12]accept exits with 9 [12:36:12]New connection [12:36:12]New thread 3066957156 created [12:36:12]Thread 3066813796 joined [12:36:12]Waiting for new connection... [12:36:12] Sock 9.Parse request [12:36:12]Sock 9.Check first char [12:36:12]Sock 9.First char is OK [12:36:12]request: POST /json_proto HTTP/1.0 [12:36:12]Method: POST [12:36:12]URL: /json_proto [12:36:12]Method is POST - this is cgi request [12:36:12]url: /json_proto [12:36:12]query_string will be loaded in cgi processing [12:36:12]execute_cgi json_proto POST (null) [12:36:12]execute_cgi path=json_proto method=POST [12:36:12]POST find Content-Length [12:36:12]Host: 172.17.59.68:8080 [12:36:12]Content-Length: 682 [12:36:12]Content-Type: application/json [12:36:12] [12:36:12]POST finish read [12:36:12]Found Content-Length = 682 [12:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:12]execute_script... [12:36: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)321153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:12]POST & json_proto [12:36:12]process_json_proto [12:36:12]json parsed OK: [12:36:12]protocol is kg_v1.0 [12:36:12]action value=close_receipt [12:36:12]process_action close_receipt [12:36:12]cmd_close_receipt [12:36:12]MH_GetDate [12:36:12]Write to MH i2c: F0 00 00 CC 7A 35 [12:36:12]Write i2c OK [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: F0 [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: F0 09 00 [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: F0 09 00 CC 7A 00 F5 16 78 66 BC EC 60 65 94 [12:36:12]GetLastDocTimeStamp 1719145977 [12:36:12]current date 1719146229 [12:36:12]FM_GetShiftState [12:36:12]SAM_PROTO_GetShiftState [12:36:12]wFMCommunicate request_size=4 [12:36:12]MH_SAM_APDU [12:36:12]CAPDU: 80 13 01 00 [12:36:12]Write to MH i2c: E2 08 00 CD 7A 80 13 01 00 00 00 00 00 C4 [12:36:12]Write i2c OK [12:36:12]MH_I2C_Read... [12:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:12]Read from MH i2c: E2 [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: E2 0E 00 [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: E2 0E 00 CD 7A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E2 [12:36:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:36:12]wFMCommunicate OK [12:36:12]SAM_PROTO_GetShiftState done [12:36:12]FM_GetShiftState done [12:36:12]opened in 1719106490 [12:36:12]opened+sec_in_day 1719192890 [12:36:12]quantity*price = 100064 [12:36:12]sum+1 = 100066 [12:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 75 23.06.2024 12:37 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112474 ФПД: 60951889610042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123709&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112474&fm=60951889610042&tin=02508201610067®Number=0000000000092771&sum=100000 [12:36:13]StoreToDocumentArchive [12:36:13]shift 392 fd 112474 [12:36:13]save to /storage/0392/doc_00112474 [12:36:13]save last doc name /storage/0392/doc_00112474 to /storage/kkm_last_doc_name [12:36:13]save OK [12:36:13]Clear old archive folders... [12:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:13]tlvbuf is 01348D80 [12:36:13]SAM_PROTO_ClearQueue [12:36:13]wFMCommunicate request_size=4 [12:36:13]MH_SAM_APDU [12:36:13]CAPDU: 80 09 00 00 [12:36:13]Write to MH i2c: E2 08 00 DA 7A 80 09 00 00 00 00 00 00 C6 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 DA 7A 00 90 00 C8 [12:36:14]RAPDU: 90 00 [12:36:14]wFMCommunicate OK [12:36:14]SAM_PROTO_ClearQueue done [12:36:14]KKMCreateOFDPacket [12:36:14]OFDProtocolAddRootSTLVToBuf [12:36:14]FM_MakeSignedData [12:36:14]FM_MakeSignedData [12:36:14]SAM_PROTO_SignData [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 0D 01 02 [12:36:14]Write to MH i2c: E2 08 00 DB 7A 80 0D 01 02 00 00 00 00 CE [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 DB 7A 00 90 00 C9 [12:36:14]RAPDU: 90 00 [12:36:14]wFMCommunicate OK [12:36:14]wFMCommunicate request_size=255 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F5 16 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B7 01 00 35 04 06 00 37 [12:36:14]Write to MH i2c: E2 02 01 DC 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F5 16 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B7 01 00 35 04 06 00 37 00 00 D8 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 DC 7A 00 90 00 CA [12:36:14]RAPDU: 90 00 [12:36:14]wFMCommunicate OK [12:36:14]wFMCommunicate request_size=10 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 0D 02 02 05 6F 77 BA 85 3A [12:36:14]Write to MH i2c: E2 0D 00 DD 7A 80 0D 02 02 05 00 6F 77 BA 85 3A 00 00 3A [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 DD 7A 00 90 00 CB [12:36:14]RAPDU: 90 00 [12:36:14]wFMCommunicate OK [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 0D 03 02 [12:36:14]Write to MH i2c: E2 08 00 DE 7A 80 0D 03 02 00 00 00 00 D3 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 0B 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 0B 00 DE 7A 00 34 D8 06 24 BE F6 BE 70 90 00 EC [12:36:14]RAPDU: 34 D8 06 24 BE F6 BE 70 90 00 [12:36:14]wFMCommunicate OK [12:36:14]SAM_PROTO_SignData done [12:36:14]FM_MakeSignedData done [12:36:14]CreateOFDProtocolMessage [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 11 00 00 [12:36:14]Write to MH i2c: E2 08 00 DF 7A 80 11 00 00 00 00 00 00 D3 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 17 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 17 00 DF 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [12:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:36:14]wFMCommunicate OK [12:36:14]CreateOFDProtocolMessage done [12:36:14]OFDSenderStorePacket 112474 [12:36:14]StoreOFDPacket docnum=112474 [12:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BC 87 07 01 C9 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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F5 16 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B7 01 00 35 04 06 00 37 6F 77 BA 85 3A 34 D8 06 24 BE F6 BE 70 [12:36:14]CheckFolder [12:36:14]dirname=/storage/ofd_packets [12:36:14]CheckFolder done [12:36:14]ProducePacketName [12:36:14]name=ofd_packets/00112474 [12:36:14]NVStorageSaveData ofd_packets/00112474 [12:36:14]File name is /storage/ofd_packets/00112474 [12:36:14]Write 301 bytes [12:36:14]NVStorageSaveData done [12:36:14]OFDSenderStorePacket done [12:36:14]KKMCreateOFDPacket done [12:36:14]NVStorageSaveData kkm_last_timestamp [12:36:14]File name is /storage/kkm_last_timestamp [12:36:14]Write 4 bytes [12:36:14]NVStorageSaveData done [12:36:14]ExternCall_PrintAddStr [12:36:14]wPrintStart [12:36:14]Write to MH i2c: 01 00 00 E0 7A 5A [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: 01 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: 01 07 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: 01 07 00 E0 7A 00 00 00 00 00 FF 0F 6F [12:36:14]RasterBufferAndPrint [12:36:14]line Счет N : (1)321153 [12:36:14]line ИНН: 02508201610067 [12:36:14]line Контрольно-Кассовый Чек [12:36:14]line ПРОДАЖА [12:36:14]line ТРК (МРК, ГНК) : 11 [12:36:14]line Товар: 2710124130 [12:36:14]line Аи-92-К-5 [12:36:14]line 15.070 * 66.40 [12:36:14]line = 1000.65 [12:36:14]line НДС 12% НСП 1% [12:36:14]line > о реализуемом товаре [12:36:14]line ОКРУГЛЕНИЕ: -0.65 [12:36:14]line ИТОГО: 1000.00 [12:36:14]line Внесено: 1000.00 [12:36:14]line СДАЧА: 0.00 [12:36:14]line НСП 1% : 8.85 [12:36:14]line НДС 12% : 106.26 [12:36:14]line Наличными: 1000.00 [12:36:14]line Безнал.: 0.00 [12:36:14]line Место: АЗС № 65 "Партнер Нефть" [12:36:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:36:14]line СНО: Общий режим [12:36:14]line Чек 75 23.06.2024 12:37 [12:36:14]line Смена: 392 ФФД: 1.0 [12:36:14]line ЗНМ: 0300000198 [12:36:14]line РНМ: 0000000000092771 [12:36:14]line Версия ККМ: 001 [12:36:14]line ФМ: 0000000000875083 [12:36:14]line ФД: 112474 [12:36:14]line ФПД: 60951889610042 [12:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123709&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112474&fm=60951889610042&tin=02508201610067®Number=0000000000092771&sum=100000 [12:36:14]OFD Sender: Processing packet 112474 [packets to send 38, broken 37] [12:36:14]ProducePacketName [12:36:14]name=ofd_packets/00112474 [12:36:14]OFD Sender: To server: pG, [12:36:14]CommunicateWithHost lk.salyk.kg:30040 [12:36:14]ConnectInit lk.salyk.kg [12:36:14]written 0, free lines is 4095 [12:36:14]Connected sock=10 [12:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BC 87 07 01 C9 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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F5 16 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B7 01 00 35 04 06 00 37 6F 77 BA 85 3A 34 D8 06 24 BE F6 BE 70 [12:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B2 79 47 00 8F C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B7 01 00 F4 03 04 00 E2 AD 77 66 B6 04 01 00 00 9B 4F F5 2E CA 19 8B 51 [12:36:15]CommunicateWithHost err = 0 [12:36:15]CheckOFDResponse [12:36:15]1017 (14) - 77093643461234 [12:36:15]1041 (16) - 0000000000875083 [12:36:15]1040 (4) - 112474 [12:36:15]1012 (4) - 23.06.2024 05:08 [12:36:15]1206 (1) - 0 [12:36:15]OFD Sender: Remove packet 112474 [12:36:15]ProducePacketName [12:36:15]name=ofd_packets/00112474 [12:36:15]NVStorageDeleteData [12:36:15]Write to MH i2c: 01 00 00 0B 7B 86 [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 07 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 07 00 0B 7B 00 00 00 00 00 D6 0C 6F [12:36:15]RasterBufferAndPrint [12:36:15]line [12:36:15]line [12:36:15]line [12:36:15]line [12:36:15]line [12:36:15]written 0, free lines is 3294 [12:36:15]MH_Cut [12:36:15]Write to MH i2c: D1 01 00 12 7B 01 5F [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: D1 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: D1 01 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: D1 01 00 12 7B 00 5E [12:36:15]Write to MH i2c: 01 00 00 13 7B 8E [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]OFD Sender: No OFD packet to send [12:36:16]*** Cut start [12:36:16]*** Partial cut [12:36:16]*** CUTSNS_PIN = 1 [12:36:16]*** CUTSNS_PIN = 0 [12:36:16]*** Brake cut motor [12:36:16]Read from MH i2c: 01 [12:36:16]MH_I2C_Read... [12:36:16]*** Stop cut motor [12:36:16]*** Cut end [12:36:16]Read from MH i2c: 01 07 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: 01 07 00 13 7B 00 00 00 00 00 FF 0F A3 [12:36:16]process_action close_receipt done [12:36:16]requested_data is exist [12:36:16]produce_requested_data [12:36:16]requested_item fm.sn is exist - process it [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 11 00 00 [12:36:16]Write to MH i2c: E2 08 00 14 7B 80 11 00 00 00 00 00 00 09 [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 17 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 17 00 14 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [12:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:36:16]wFMCommunicate OK [12:36:16]requested_item fd.num is exist - process it [12:36:16]SAM_PROTO_GetFieldsCounters [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 13 00 00 [12:36:16]Write to MH i2c: E2 08 00 15 7B 80 13 00 00 00 00 00 00 0C [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 62 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 62 00 15 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B7 01 00 0E 04 04 00 88 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 A9 [12:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B7 01 00 0E 04 04 00 88 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 [12:36:16]wFMCommunicate OK [12:36:16]SAM_PROTO_GetFieldsCounters done [12:36:16]requested_item shift.num is exist - process it [12:36:16]requested_item shift.opened is exist - process it [12:36:16]req_shift_opened [12:36:16]FM_GetShiftState [12:36:16]SAM_PROTO_GetShiftState [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 13 01 00 [12:36:16]Write to MH i2c: E2 08 00 16 7B 80 13 01 00 00 00 00 00 0E [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 0E 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 0E 00 16 7B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2C [12:36:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:36:16]wFMCommunicate OK [12:36:16]SAM_PROTO_GetShiftState done [12:36:16]FM_GetShiftState done [12:36:16]req_shift_opened done [12:36:16]requested_item shift.open_date is exist - process it [12:36:16]req_shift_open_date [12:36:16]req_shift_open_date done [12:36:16]produce_requested_data done [12:36:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112474,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:36:16]process_action_free close_receipt [12:36:16]json_value_free [12:36:16]json_value_free done [12:36:16]process_json_proto returns [12:36:16]Send response to host [12:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112474,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:36:16]free response buf [12:36:16]execute_script done [12:36:16]execute_script returns [12:36:16]free content buf [12:36:16]Sock 9.Close socket [12:36:16]Sock 9.Thread stoped [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:08]accept exits with 7 [12:37:08]New connection [12:37:08]New thread 3066813796 created [12:37:08]Thread 3066957156 joined [12:37:08]Waiting for new connection... [12:37:08] Sock 7.Parse request [12:37:08]Sock 7.Check first char [12:37:08]Sock 7.First char is OK [12:37:08]request: POST /json_proto HTTP/1.0 [12:37:08]Method: POST [12:37:08]URL: /json_proto [12:37:08]Method is POST - this is cgi request [12:37:08]url: /json_proto [12:37:08]query_string will be loaded in cgi processing [12:37:08]execute_cgi json_proto POST (null) [12:37:08]execute_cgi path=json_proto method=POST [12:37:08]POST find Content-Length [12:37:08]Host: 172.17.59.68:8080 [12:37:08]Content-Length: 682 [12:37:08]Content-Type: application/json [12:37:08] [12:37:08]POST finish read [12:37:08]Found Content-Length = 682 [12:37:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:08]execute_script... [12:37: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)321154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:08]POST & json_proto [12:37:08]process_json_proto [12:37:08]json parsed OK: [12:37:08]protocol is kg_v1.0 [12:37:08]action value=close_receipt [12:37:08]process_action close_receipt [12:37:08]cmd_close_receipt [12:37:08]MH_GetDate [12:37:08]Write to MH i2c: F0 00 00 17 7B 81 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: F0 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: F0 09 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: F0 09 00 17 7B 00 2C 17 78 66 BC EC 60 65 18 [12:37:08]GetLastDocTimeStamp 1719146229 [12:37:08]current date 1719146284 [12:37:08]FM_GetShiftState [12:37:08]SAM_PROTO_GetShiftState [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 13 01 00 [12:37:08]Write to MH i2c: E2 08 00 18 7B 80 13 01 00 00 00 00 00 10 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 0E 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 0E 00 18 7B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2E [12:37:08]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:37:08]wFMCommunicate OK [12:37:08]SAM_PROTO_GetShiftState done [12:37:08]FM_GetShiftState done [12:37:08]opened in 1719106490 [12:37:08]opened+sec_in_day 1719192890 [12:37:08]quantity*price = 100064 [12:37:08]sum+1 = 100066 [12:37:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 76 23.06.2024 12:38 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112475 ФПД: 32439320239791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123804&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112475&fm=32439320239791&tin=02508201610067®Number=0000000000092771&sum=100000 [12:37:09]StoreToDocumentArchive [12:37:09]shift 392 fd 112475 [12:37:09]save to /storage/0392/doc_00112475 [12:37:09]save last doc name /storage/0392/doc_00112475 to /storage/kkm_last_doc_name [12:37:09]save OK [12:37:09]Clear old archive folders... [12:37:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:09]tlvbuf is B6DA95B0 [12:37:09]SAM_PROTO_ClearQueue [12:37:09]wFMCommunicate request_size=4 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 09 00 00 [12:37:09]Write to MH i2c: E2 08 00 25 7B 80 09 00 00 00 00 00 00 12 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 03 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 03 00 25 7B 00 90 00 14 [12:37:09]RAPDU: 90 00 [12:37:09]wFMCommunicate OK [12:37:09]SAM_PROTO_ClearQueue done [12:37:09]KKMCreateOFDPacket [12:37:09]OFDProtocolAddRootSTLVToBuf [12:37:09]FM_MakeSignedData [12:37:09]FM_MakeSignedData [12:37:09]SAM_PROTO_SignData [12:37:09]wFMCommunicate request_size=4 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 0D 01 02 [12:37:09]Write to MH i2c: E2 08 00 26 7B 80 0D 01 02 00 00 00 00 1A [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 03 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 03 00 26 7B 00 90 00 15 [12:37:09]RAPDU: 90 00 [12:37:09]wFMCommunicate OK [12:37:09]wFMCommunicate request_size=255 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2C 17 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B7 01 00 35 04 06 00 1D [12:37:09]Write to MH i2c: E2 02 01 27 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2C 17 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B7 01 00 35 04 06 00 1D 00 00 44 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 03 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 03 00 27 7B 00 90 00 16 [12:37:09]RAPDU: 90 00 [12:37:09]wFMCommunicate OK [12:37:09]wFMCommunicate request_size=10 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 0D 02 02 05 80 DE 28 DE AF [12:37:09]Write to MH i2c: E2 0D 00 28 7B 80 0D 02 02 05 00 80 DE 28 DE AF 00 00 3A [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 03 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 03 00 28 7B 00 90 00 17 [12:37:09]RAPDU: 90 00 [12:37:09]wFMCommunicate OK [12:37:09]wFMCommunicate request_size=4 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 0D 03 02 [12:37:09]Write to MH i2c: E2 08 00 29 7B 80 0D 03 02 00 00 00 00 1F [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 0B 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 0B 00 29 7B 00 A5 E2 9A 60 4B 78 E2 66 90 00 AC [12:37:09]RAPDU: A5 E2 9A 60 4B 78 E2 66 90 00 [12:37:09]wFMCommunicate OK [12:37:09]SAM_PROTO_SignData done [12:37:09]FM_MakeSignedData done [12:37:09]CreateOFDProtocolMessage [12:37:09]wFMCommunicate request_size=4 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 11 00 00 [12:37:09]Write to MH i2c: E2 08 00 2A 7B 80 11 00 00 00 00 00 00 1F [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 17 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 17 00 2A 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [12:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:37:09]wFMCommunicate OK [12:37:09]CreateOFDProtocolMessage done [12:37:09]OFDSenderStorePacket 112475 [12:37:09]StoreOFDPacket docnum=112475 [12:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 22 07 01 40 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2C 17 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B7 01 00 35 04 06 00 1D 80 DE 28 DE AF A5 E2 9A 60 4B 78 E2 66 [12:37:09]CheckFolder [12:37:09]dirname=/storage/ofd_packets [12:37:09]CheckFolder done [12:37:09]ProducePacketName [12:37:09]name=ofd_packets/00112475 [12:37:09]NVStorageSaveData ofd_packets/00112475 [12:37:09]File name is /storage/ofd_packets/00112475 [12:37:09]Write 301 bytes [12:37:09]NVStorageSaveData done [12:37:09]OFDSenderStorePacket done [12:37:09]KKMCreateOFDPacket done [12:37:09]NVStorageSaveData kkm_last_timestamp [12:37:09]File name is /storage/kkm_last_timestamp [12:37:09]Write 4 bytes [12:37:09]NVStorageSaveData done [12:37:09]ExternCall_PrintAddStr [12:37:09]wPrintStart [12:37:09]Write to MH i2c: 01 00 00 2B 7B A6 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 07 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 07 00 2B 7B 00 00 00 00 00 FF 0F BB [12:37:09]RasterBufferAndPrint [12:37:09]line Счет N : (1)321154 [12:37:09]line ИНН: 02508201610067 [12:37:09]line Контрольно-Кассовый Чек [12:37:09]line ПРОДАЖА [12:37:09]line ТРК (МРК, ГНК) : 11 [12:37:09]line Товар: 2710124130 [12:37:09]line Аи-92-К-5 [12:37:09]line 15.070 * 66.40 [12:37:09]line = 1000.65 [12:37:09]line НДС 12% НСП 1% [12:37:09]line > о реализуемом товаре [12:37:09]line ОКРУГЛЕНИЕ: -0.65 [12:37:09]line ИТОГО: 1000.00 [12:37:09]line Внесено: 1000.00 [12:37:09]line СДАЧА: 0.00 [12:37:09]line НСП 1% : 8.85 [12:37:09]line НДС 12% : 106.26 [12:37:09]line Наличными: 1000.00 [12:37:09]line Безнал.: 0.00 [12:37:09]line Место: АЗС № 65 "Партнер Нефть" [12:37:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:37:09]line СНО: Общий режим [12:37:09]line Чек 76 23.06.2024 12:38 [12:37:09]line Смена: 392 ФФД: 1.0 [12:37:09]line ЗНМ: 0300000198 [12:37:09]line РНМ: 0000000000092771 [12:37:09]line Версия ККМ: 001 [12:37:09]line ФМ: 0000000000875083 [12:37:09]line ФД: 112475 [12:37:09]line ФПД: 32439320239791 [12:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T123804&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112475&fm=32439320239791&tin=02508201610067®Number=0000000000092771&sum=100000 [12:37:10]OFD Sender: Processing packet 112475 [packets to send 38, broken 37] [12:37:10]ProducePacketName [12:37:10]name=ofd_packets/00112475 [12:37:10]OFD Sender: To server: pG, [12:37:10]CommunicateWithHost lk.salyk.kg:30040 [12:37:10]ConnectInit lk.salyk.kg [12:37:10]written 0, free lines is 4095 [12:37:10]Connected sock=10 [12:37:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 22 07 01 40 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2C 17 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B7 01 00 35 04 06 00 1D 80 DE 28 DE AF A5 E2 9A 60 4B 78 E2 66 [12:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 46 6F 47 00 E9 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B7 01 00 F4 03 04 00 19 AE 77 66 B6 04 01 00 00 8D 16 CD A1 77 63 B4 04 [12:37:10]CommunicateWithHost err = 0 [12:37:10]CheckOFDResponse [12:37:10]1017 (14) - 77093643461234 [12:37:10]1041 (16) - 0000000000875083 [12:37:10]1040 (4) - 112475 [12:37:10]1012 (4) - 23.06.2024 05:09 [12:37:10]1206 (1) - 0 [12:37:10]OFD Sender: Remove packet 112475 [12:37:10]ProducePacketName [12:37:10]name=ofd_packets/00112475 [12:37:10]NVStorageDeleteData [12:37:10]Write to MH i2c: 01 00 00 56 7B D1 [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: 01 [12:37:10]MH_I2C_Read... [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 56 7B 00 00 00 00 00 D3 0C B7 [12:37:10]RasterBufferAndPrint [12:37:10]line [12:37:10]line [12:37:10]line [12:37:10]line [12:37:10]line [12:37:10]written 0, free lines is 3289 [12:37:10]MH_Cut [12:37:10]Write to MH i2c: D1 01 00 5D 7B 01 AA [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: D1 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: D1 01 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: D1 01 00 5D 7B 00 A9 [12:37:10]Write to MH i2c: 01 00 00 5E 7B D9 [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:11]OFD Sender: No OFD packet to send [12:37:11]*** Cut start [12:37:11]*** Partial cut [12:37:11]*** CUTSNS_PIN = 1 [12:37:11]*** CUTSNS_PIN = 0 [12:37:11]*** Brake cut motor [12:37:12]Read from MH i2c: 01 [12:37:12]MH_I2C_Read... [12:37:12]*** Stop cut motor [12:37:12]*** Cut end [12:37:12]Read from MH i2c: 01 07 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: 01 07 00 5E 7B 00 00 00 00 00 FF 0F EE [12:37:12]process_action close_receipt done [12:37:12]requested_data is exist [12:37:12]produce_requested_data [12:37:12]requested_item fm.sn is exist - process it [12:37:12]wFMCommunicate request_size=4 [12:37:12]MH_SAM_APDU [12:37:12]CAPDU: 80 11 00 00 [12:37:12]Write to MH i2c: E2 08 00 5F 7B 80 11 00 00 00 00 00 00 54 [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:12]Read from MH i2c: E2 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 17 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 17 00 5F 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [12:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:37:12]wFMCommunicate OK [12:37:12]requested_item fd.num is exist - process it [12:37:12]SAM_PROTO_GetFieldsCounters [12:37:12]wFMCommunicate request_size=4 [12:37:12]MH_SAM_APDU [12:37:12]CAPDU: 80 13 00 00 [12:37:12]Write to MH i2c: E2 08 00 60 7B 80 13 00 00 00 00 00 00 57 [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:12]Read from MH i2c: E2 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 62 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 62 00 60 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B7 01 00 0E 04 04 00 88 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 F8 [12:37:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B7 01 00 0E 04 04 00 88 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 [12:37:12]wFMCommunicate OK [12:37:12]SAM_PROTO_GetFieldsCounters done [12:37:12]requested_item shift.num is exist - process it [12:37:12]requested_item shift.opened is exist - process it [12:37:12]req_shift_opened [12:37:12]FM_GetShiftState [12:37:12]SAM_PROTO_GetShiftState [12:37:12]wFMCommunicate request_size=4 [12:37:12]MH_SAM_APDU [12:37:12]CAPDU: 80 13 01 00 [12:37:12]Write to MH i2c: E2 08 00 61 7B 80 13 01 00 00 00 00 00 59 [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:12]Read from MH i2c: E2 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 0E 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 0E 00 61 7B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 77 [12:37:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:37:12]wFMCommunicate OK [12:37:12]SAM_PROTO_GetShiftState done [12:37:12]FM_GetShiftState done [12:37:12]req_shift_opened done [12:37:12]requested_item shift.open_date is exist - process it [12:37:12]req_shift_open_date [12:37:12]req_shift_open_date done [12:37:12]produce_requested_data done [12:37:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112475,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:37:12]process_action_free close_receipt [12:37:12]json_value_free [12:37:12]json_value_free done [12:37:12]process_json_proto returns [12:37:12]Send response to host [12:37:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112475,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:37:12]free response buf [12:37:12]execute_script done [12:37:12]execute_script returns [12:37:12]free content buf [12:37:12]Sock 7.Close socket [12:37:12]Sock 7.Thread stoped [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:44]accept exits with 9 [12:39:44]New connection [12:39:44]New thread 3066957156 created [12:39:44]Thread 3066813796 joined [12:39:44]Waiting for new connection... [12:39:44] Sock 9.Parse request [12:39:44]Sock 9.Check first char [12:39:44]Sock 9.First char is OK [12:39:44]request: POST /json_proto HTTP/1.0 [12:39:44]Method: POST [12:39:44]URL: /json_proto [12:39:44]Method is POST - this is cgi request [12:39:44]url: /json_proto [12:39:44]query_string will be loaded in cgi processing [12:39:44]execute_cgi json_proto POST (null) [12:39:44]execute_cgi path=json_proto method=POST [12:39:44]POST find Content-Length [12:39:44]Host: 172.17.59.68:8080 [12:39:44]Content-Length: 677 [12:39:44]Content-Type: application/json [12:39:44] [12:39:44]POST finish read [12:39:44]Found Content-Length = 677 [12:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:39:44]execute_script... [12:39: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)321155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:39:44]POST & json_proto [12:39:44]process_json_proto [12:39:44]json parsed OK: [12:39:44]protocol is kg_v1.0 [12:39:44]action value=close_receipt [12:39:44]process_action close_receipt [12:39:44]cmd_close_receipt [12:39:44]MH_GetDate [12:39:44]Write to MH i2c: F0 00 00 62 7B CC [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: F0 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: F0 09 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: F0 09 00 62 7B 00 C9 17 78 66 BC EC 60 65 00 [12:39:44]GetLastDocTimeStamp 1719146284 [12:39:44]current date 1719146441 [12:39:44]FM_GetShiftState [12:39:44]SAM_PROTO_GetShiftState [12:39:44]wFMCommunicate request_size=4 [12:39:44]MH_SAM_APDU [12:39:44]CAPDU: 80 13 01 00 [12:39:44]Write to MH i2c: E2 08 00 63 7B 80 13 01 00 00 00 00 00 5B [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:44]Read from MH i2c: E2 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 0E 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 0E 00 63 7B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 79 [12:39:44]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:39:44]wFMCommunicate OK [12:39:44]SAM_PROTO_GetShiftState done [12:39:44]FM_GetShiftState done [12:39:44]opened in 1719106490 [12:39:44]opened+sec_in_day 1719192890 [12:39:44]quantity*price = 50065 [12:39:44]sum+1 = 50067 [12:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 77 23.06.2024 12:40 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112476 ФПД: 269380825125310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124041&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112476&fm=269380825125310&tin=02508201610067®Number=0000000000092771&sum=50000 [12:39:45]StoreToDocumentArchive [12:39:45]shift 392 fd 112476 [12:39:45]save to /storage/0392/doc_00112476 [12:39:45]save last doc name /storage/0392/doc_00112476 to /storage/kkm_last_doc_name [12:39:45]save OK [12:39:45]Clear old archive folders... [12:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:45]tlvbuf is 01353E70 [12:39:45]SAM_PROTO_ClearQueue [12:39:45]wFMCommunicate request_size=4 [12:39:45]MH_SAM_APDU [12:39:45]CAPDU: 80 09 00 00 [12:39:45]Write to MH i2c: E2 08 00 70 7B 80 09 00 00 00 00 00 00 5D [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:45]Read from MH i2c: E2 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: E2 03 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: E2 03 00 70 7B 00 90 00 5F [12:39:45]RAPDU: 90 00 [12:39:45]wFMCommunicate OK [12:39:45]SAM_PROTO_ClearQueue done [12:39:45]KKMCreateOFDPacket [12:39:45]OFDProtocolAddRootSTLVToBuf [12:39:45]FM_MakeSignedData [12:39:45]FM_MakeSignedData [12:39:45]SAM_PROTO_SignData [12:39:45]wFMCommunicate request_size=4 [12:39:45]MH_SAM_APDU [12:39:45]CAPDU: 80 0D 01 02 [12:39:45]Write to MH i2c: E2 08 00 71 7B 80 0D 01 02 00 00 00 00 65 [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:45]Read from MH i2c: E2 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: E2 03 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: E2 03 00 71 7B 00 90 00 60 [12:39:45]RAPDU: 90 00 [12:39:45]wFMCommunicate OK [12:39:45]wFMCommunicate request_size=255 [12:39:45]MH_SAM_APDU [12:39:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 4D 00 00 00 F4 03 04 00 C9 17 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B7 01 00 35 04 06 00 F5 [12:39:45]Write to MH i2c: E2 02 01 72 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 4D 00 00 00 F4 03 04 00 C9 17 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B7 01 00 35 04 06 00 F5 00 00 B6 [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:46]OFD Sender: No OFD packet to send [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 72 7B 00 90 00 61 [12:39:46]RAPDU: 90 00 [12:39:46]wFMCommunicate OK [12:39:46]wFMCommunicate request_size=10 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 0D 02 02 05 00 1C 64 11 BE [12:39:46]Write to MH i2c: E2 0D 00 73 7B 80 0D 02 02 05 00 00 1C 64 11 BE 00 00 C1 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 73 7B 00 90 00 62 [12:39:46]RAPDU: 90 00 [12:39:46]wFMCommunicate OK [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 0D 03 02 [12:39:46]Write to MH i2c: E2 08 00 74 7B 80 0D 03 02 00 00 00 00 6A [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 0B 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 0B 00 74 7B 00 29 C3 7B D9 F2 98 D0 ED 90 00 F2 [12:39:46]RAPDU: 29 C3 7B D9 F2 98 D0 ED 90 00 [12:39:46]wFMCommunicate OK [12:39:46]SAM_PROTO_SignData done [12:39:46]FM_MakeSignedData done [12:39:46]CreateOFDProtocolMessage [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 11 00 00 [12:39:46]Write to MH i2c: E2 08 00 75 7B 80 11 00 00 00 00 00 00 6A [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 17 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 17 00 75 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [12:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:39:46]wFMCommunicate OK [12:39:46]CreateOFDProtocolMessage done [12:39:46]OFDSenderStorePacket 112476 [12:39:46]StoreOFDPacket docnum=112476 [12:39:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 20 07 01 48 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 4D 00 00 00 F4 03 04 00 C9 17 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B7 01 00 35 04 06 00 F5 00 1C 64 11 BE 29 C3 7B D9 F2 98 D0 ED [12:39:46]CheckFolder [12:39:46]dirname=/storage/ofd_packets [12:39:46]CheckFolder done [12:39:46]ProducePacketName [12:39:46]name=ofd_packets/00112476 [12:39:46]NVStorageSaveData ofd_packets/00112476 [12:39:46]File name is /storage/ofd_packets/00112476 [12:39:46]Write 301 bytes [12:39:46]NVStorageSaveData done [12:39:46]OFDSenderStorePacket done [12:39:46]KKMCreateOFDPacket done [12:39:46]NVStorageSaveData kkm_last_timestamp [12:39:46]File name is /storage/kkm_last_timestamp [12:39:46]Write 4 bytes [12:39:46]NVStorageSaveData done [12:39:46]ExternCall_PrintAddStr [12:39:46]wPrintStart [12:39:46]Write to MH i2c: 01 00 00 76 7B F1 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: 01 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: 01 07 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: 01 07 00 76 7B 00 00 00 00 00 FF 0F 06 [12:39:46]RasterBufferAndPrint [12:39:46]line Счет N : (1)321155 [12:39:46]line ИНН: 02508201610067 [12:39:46]line Контрольно-Кассовый Чек [12:39:46]line ПРОДАЖА [12:39:46]line ТРК (МРК, ГНК) : 11 [12:39:46]line Товар: 2710124130 [12:39:46]line Аи-92-К-5 [12:39:46]line 7.540 * 66.40 [12:39:46]line = 500.66 [12:39:46]line НДС 12% НСП 1% [12:39:46]line > о реализуемом товаре [12:39:46]line ОКРУГЛЕНИЕ: -0.66 [12:39:46]line ИТОГО: 500.00 [12:39:46]line Внесено: 500.00 [12:39:46]line СДАЧА: 0.00 [12:39:46]line НСП 1% : 4.43 [12:39:46]line НДС 12% : 53.17 [12:39:46]line Наличными: 500.00 [12:39:46]line Безнал.: 0.00 [12:39:46]line Место: АЗС № 65 "Партнер Нефть" [12:39:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:39:46]line СНО: Общий режим [12:39:46]line Чек 77 23.06.2024 12:40 [12:39:46]line Смена: 392 ФФД: 1.0 [12:39:46]line ЗНМ: 0300000198 [12:39:46]line РНМ: 0000000000092771 [12:39:46]line Версия ККМ: 001 [12:39:46]line ФМ: 0000000000875083 [12:39:46]line ФД: 112476 [12:39:46]line ФПД: 269380825125310 [12:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124041&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112476&fm=269380825125310&tin=02508201610067®Number=0000000000092771&sum=50000 [12:39:46]OFD Sender: Processing packet 112476 [packets to send 38, broken 37] [12:39:46]ProducePacketName [12:39:46]name=ofd_packets/00112476 [12:39:46]OFD Sender: To server: pG, [12:39:46]CommunicateWithHost lk.salyk.kg:30040 [12:39:46]ConnectInit lk.salyk.kg [12:39:46]written 0, free lines is 4095 [12:39:46]Connected sock=10 [12:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 20 07 01 48 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 4D 00 00 00 F4 03 04 00 C9 17 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B7 01 00 35 04 06 00 F5 00 1C 64 11 BE 29 C3 7B D9 F2 98 D0 ED [12:39:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B7 FD 47 00 4A FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B7 01 00 F4 03 04 00 B6 AE 77 66 B6 04 01 00 00 4F 38 60 7A A7 27 78 DB [12:39:47]CommunicateWithHost err = 0 [12:39:47]CheckOFDResponse [12:39:47]1017 (14) - 77093643461234 [12:39:47]1041 (16) - 0000000000875083 [12:39:47]1040 (4) - 112476 [12:39:47]1012 (4) - 23.06.2024 05:12 [12:39:47]1206 (1) - 0 [12:39:47]OFD Sender: Remove packet 112476 [12:39:47]ProducePacketName [12:39:47]name=ofd_packets/00112476 [12:39:47]NVStorageDeleteData [12:39:47]Write to MH i2c: 01 00 00 A1 7B 1C [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 07 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 07 00 A1 7B 00 00 00 00 00 D4 0C 03 [12:39:47]RasterBufferAndPrint [12:39:47]line [12:39:47]line [12:39:47]line [12:39:47]line [12:39:47]line [12:39:47]written 0, free lines is 3292 [12:39:47]MH_Cut [12:39:47]Write to MH i2c: D1 01 00 A8 7B 01 F5 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: D1 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: D1 01 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: D1 01 00 A8 7B 00 F4 [12:39:47]Write to MH i2c: 01 00 00 A9 7B 24 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]OFD Sender: No OFD packet to send [12:39:47]*** Cut start [12:39:47]*** Partial cut [12:39:47]*** CUTSNS_PIN = 1 [12:39:47]*** CUTSNS_PIN = 0 [12:39:48]*** Brake cut motor [12:39:48]Read from MH i2c: 01 [12:39:48]MH_I2C_Read... [12:39:48]*** Stop cut motor [12:39:48]*** Cut end [12:39:48]Read from MH i2c: 01 07 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: 01 07 00 A9 7B 00 00 00 00 00 FF 0F 39 [12:39:48]process_action close_receipt done [12:39:48]requested_data is exist [12:39:48]produce_requested_data [12:39:48]requested_item fm.sn is exist - process it [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 11 00 00 [12:39:48]Write to MH i2c: E2 08 00 AA 7B 80 11 00 00 00 00 00 00 9F [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:48]Read from MH i2c: E2 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 17 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 17 00 AA 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F1 [12:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:39:48]wFMCommunicate OK [12:39:48]requested_item fd.num is exist - process it [12:39:48]SAM_PROTO_GetFieldsCounters [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 13 00 00 [12:39:48]Write to MH i2c: E2 08 00 AB 7B 80 13 00 00 00 00 00 00 A2 [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:48]Read from MH i2c: E2 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 62 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 62 00 AB 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B7 01 00 0E 04 04 00 88 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 47 [12:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B7 01 00 0E 04 04 00 88 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 [12:39:48]wFMCommunicate OK [12:39:48]SAM_PROTO_GetFieldsCounters done [12:39:48]requested_item shift.num is exist - process it [12:39:48]requested_item shift.opened is exist - process it [12:39:48]req_shift_opened [12:39:48]FM_GetShiftState [12:39:48]SAM_PROTO_GetShiftState [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 13 01 00 [12:39:48]Write to MH i2c: E2 08 00 AC 7B 80 13 01 00 00 00 00 00 A4 [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:48]Read from MH i2c: E2 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 0E 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 0E 00 AC 7B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C2 [12:39:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:39:48]wFMCommunicate OK [12:39:48]SAM_PROTO_GetShiftState done [12:39:48]FM_GetShiftState done [12:39:48]req_shift_opened done [12:39:48]requested_item shift.open_date is exist - process it [12:39:48]req_shift_open_date [12:39:48]req_shift_open_date done [12:39:48]produce_requested_data done [12:39:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112476,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:39:48]process_action_free close_receipt [12:39:48]json_value_free [12:39:48]json_value_free done [12:39:48]process_json_proto returns [12:39:48]Send response to host [12:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112476,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:39:48]free response buf [12:39:48]execute_script done [12:39:48]execute_script returns [12:39:48]free content buf [12:39:48]Sock 9.Close socket [12:39:48]Sock 9.Thread stoped [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:44]accept exits with 7 [12:41:44]New connection [12:41:44]New thread 3066813796 created [12:41:44]Thread 3066957156 joined [12:41:44]Waiting for new connection... [12:41:44] Sock 7.Parse request [12:41:44]Sock 7.Check first char [12:41:44]Sock 7.First char is OK [12:41:44]request: POST /json_proto HTTP/1.0 [12:41:44]Method: POST [12:41:44]URL: /json_proto [12:41:44]Method is POST - this is cgi request [12:41:44]url: /json_proto [12:41:44]query_string will be loaded in cgi processing [12:41:44]execute_cgi json_proto POST (null) [12:41:44]execute_cgi path=json_proto method=POST [12:41:44]POST find Content-Length [12:41:44]Host: 172.17.59.68:8080 [12:41:44]Content-Length: 682 [12:41:44]Content-Type: application/json [12:41:44] [12:41:44]POST finish read [12:41:44]Found Content-Length = 682 [12:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "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" ] } } [12:41:44]execute_script... [12: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)321156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "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" ] } } [12:41:44]POST & json_proto [12:41:44]process_json_proto [12:41:44]json parsed OK: [12:41:44]protocol is kg_v1.0 [12:41:44]action value=close_receipt [12:41:44]process_action close_receipt [12:41:44]cmd_close_receipt [12:41:44]MH_GetDate [12:41:44]Write to MH i2c: F0 00 00 AD 7B 17 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: F0 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: F0 09 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: F0 09 00 AD 7B 00 40 18 78 66 BC EC 60 65 C3 [12:41:44]GetLastDocTimeStamp 1719146441 [12:41:44]current date 1719146560 [12:41:44]FM_GetShiftState [12:41:44]SAM_PROTO_GetShiftState [12:41:44]wFMCommunicate request_size=4 [12:41:44]MH_SAM_APDU [12:41:44]CAPDU: 80 13 01 00 [12:41:44]Write to MH i2c: E2 08 00 AE 7B 80 13 01 00 00 00 00 00 A6 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:44]Read from MH i2c: E2 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 0E 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 0E 00 AE 7B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C4 [12:41:44]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:41:44]wFMCommunicate OK [12:41:44]SAM_PROTO_GetShiftState done [12:41:44]FM_GetShiftState done [12:41:44]opened in 1719106490 [12:41:44]opened+sec_in_day 1719192890 [12:41:44]quantity*price = 140037 [12:41:44]sum+1 = 140039 [12:41:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 78 23.06.2024 12:42 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112477 ФПД: 13543726347767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124240&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112477&fm=13543726347767&tin=02508201610067®Number=0000000000092771&sum=140000 [12:41:45]StoreToDocumentArchive [12:41:45]shift 392 fd 112477 [12:41:45]save to /storage/0392/doc_00112477 [12:41:45]save last doc name /storage/0392/doc_00112477 to /storage/kkm_last_doc_name [12:41:45]save OK [12:41:45]Clear old archive folders... [12:41:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:45]tlvbuf is B6F59EF0 [12:41:45]SAM_PROTO_ClearQueue [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 09 00 00 [12:41:45]Write to MH i2c: E2 08 00 BB 7B 80 09 00 00 00 00 00 00 A8 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 BB 7B 00 90 00 AA [12:41:45]RAPDU: 90 00 [12:41:45]wFMCommunicate OK [12:41:45]SAM_PROTO_ClearQueue done [12:41:45]KKMCreateOFDPacket [12:41:45]OFDProtocolAddRootSTLVToBuf [12:41:45]FM_MakeSignedData [12:41:45]FM_MakeSignedData [12:41:45]SAM_PROTO_SignData [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 0D 01 02 [12:41:45]Write to MH i2c: E2 08 00 BC 7B 80 0D 01 02 00 00 00 00 B0 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 BC 7B 00 90 00 AB [12:41:45]RAPDU: 90 00 [12:41:45]wFMCommunicate OK [12:41:45]wFMCommunicate request_size=255 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 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 4E 00 00 00 F4 03 04 00 40 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B7 01 00 35 04 06 00 0C [12:41:45]Write to MH i2c: E2 02 01 BD 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 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 4E 00 00 00 F4 03 04 00 40 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B7 01 00 35 04 06 00 0C 00 00 04 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 BD 7B 00 90 00 AC [12:41:45]RAPDU: 90 00 [12:41:45]wFMCommunicate OK [12:41:45]wFMCommunicate request_size=10 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 0D 02 02 05 51 64 FF 75 F7 [12:41:45]Write to MH i2c: E2 0D 00 BE 7B 80 0D 02 02 05 00 51 64 FF 75 F7 00 00 DD [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 BE 7B 00 90 00 AD [12:41:45]RAPDU: 90 00 [12:41:45]wFMCommunicate OK [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 0D 03 02 [12:41:45]Write to MH i2c: E2 08 00 BF 7B 80 0D 03 02 00 00 00 00 B5 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 0B 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 0B 00 BF 7B 00 29 5A DC 99 56 73 86 A7 90 00 A4 [12:41:45]RAPDU: 29 5A DC 99 56 73 86 A7 90 00 [12:41:45]wFMCommunicate OK [12:41:45]SAM_PROTO_SignData done [12:41:45]FM_MakeSignedData done [12:41:45]CreateOFDProtocolMessage [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 11 00 00 [12:41:45]Write to MH i2c: E2 08 00 C0 7B 80 11 00 00 00 00 00 00 B5 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 17 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 17 00 C0 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 07 [12:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:41:45]wFMCommunicate OK [12:41:45]CreateOFDProtocolMessage done [12:41:45]OFDSenderStorePacket 112477 [12:41:45]StoreOFDPacket docnum=112477 [12:41:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 21 07 01 60 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 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 4E 00 00 00 F4 03 04 00 40 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B7 01 00 35 04 06 00 0C 51 64 FF 75 F7 29 5A DC 99 56 73 86 A7 [12:41:45]CheckFolder [12:41:45]dirname=/storage/ofd_packets [12:41:45]CheckFolder done [12:41:45]ProducePacketName [12:41:45]name=ofd_packets/00112477 [12:41:45]NVStorageSaveData ofd_packets/00112477 [12:41:45]File name is /storage/ofd_packets/00112477 [12:41:45]Write 301 bytes [12:41:45]NVStorageSaveData done [12:41:45]OFDSenderStorePacket done [12:41:45]KKMCreateOFDPacket done [12:41:45]NVStorageSaveData kkm_last_timestamp [12:41:45]File name is /storage/kkm_last_timestamp [12:41:45]Write 4 bytes [12:41:45]NVStorageSaveData done [12:41:45]ExternCall_PrintAddStr [12:41:45]wPrintStart [12:41:45]Write to MH i2c: 01 00 00 C1 7B 3C [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 07 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 07 00 C1 7B 00 00 00 00 00 FF 0F 51 [12:41:45]RasterBufferAndPrint [12:41:45]line Счет N : (1)321156 [12:41:45]line ИНН: 02508201610067 [12:41:45]line Контрольно-Кассовый Чек [12:41:45]line ПРОДАЖА [12:41:45]line ТРК (МРК, ГНК) : 11 [12:41:45]line Товар: 2710124130 [12:41:45]line Аи-92-К-5 [12:41:45]line 21.090 * 66.40 [12:41:45]line = 1400.38 [12:41:45]line НДС 12% НСП 1% [12:41:45]line > о реализуемом товаре [12:41:45]line ОКРУГЛЕНИЕ: -0.38 [12:41:45]line ИТОГО: 1400.00 [12:41:45]line Внесено: 1400.00 [12:41:45]line СДАЧА: 0.00 [12:41:45]line НСП 1% : 12.39 [12:41:45]line НДС 12% : 148.71 [12:41:45]line Наличными: 1400.00 [12:41:45]line Безнал.: 0.00 [12:41:45]line Место: АЗС № 65 "Партнер Нефть" [12:41:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:41:45]line СНО: Общий режим [12:41:45]line Чек 78 23.06.2024 12:42 [12:41:45]line Смена: 392 ФФД: 1.0 [12:41:45]line ЗНМ: 0300000198 [12:41:45]line РНМ: 0000000000092771 [12:41:45]line Версия ККМ: 001 [12:41:45]line ФМ: 0000000000875083 [12:41:45]line ФД: 112477 [12:41:45]line ФПД: 13543726347767 [12:41:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124240&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112477&fm=13543726347767&tin=02508201610067®Number=0000000000092771&sum=140000 [12:41:46]OFD Sender: Processing packet 112477 [packets to send 38, broken 37] [12:41:46]ProducePacketName [12:41:46]name=ofd_packets/00112477 [12:41:46]OFD Sender: To server: pG, [12:41:46]CommunicateWithHost lk.salyk.kg:30040 [12:41:46]ConnectInit lk.salyk.kg [12:41:46]written 0, free lines is 4095 [12:41:46]Connected sock=10 [12:41:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 21 07 01 60 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 17 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 4E 00 00 00 F4 03 04 00 40 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B7 01 00 35 04 06 00 0C 51 64 FF 75 F7 29 5A DC 99 56 73 86 A7 [12:41:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 05 80 47 00 2B 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B7 01 00 F4 03 04 00 2D AF 77 66 B6 04 01 00 00 56 21 3C 62 59 80 D3 E3 [12:41:46]CommunicateWithHost err = 0 [12:41:46]CheckOFDResponse [12:41:46]1017 (14) - 77093643461234 [12:41:46]1041 (16) - 0000000000875083 [12:41:46]1040 (4) - 112477 [12:41:46]1012 (4) - 23.06.2024 05:14 [12:41:46]1206 (1) - 0 [12:41:46]OFD Sender: Remove packet 112477 [12:41:46]ProducePacketName [12:41:46]name=ofd_packets/00112477 [12:41:46]NVStorageDeleteData [12:41:46]Write to MH i2c: 01 00 00 EC 7B 67 [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 07 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 07 00 EC 7B 00 00 00 00 00 D3 0C 4D [12:41:46]RasterBufferAndPrint [12:41:46]line [12:41:46]line [12:41:46]line [12:41:46]line [12:41:46]line [12:41:46]written 0, free lines is 3290 [12:41:46]MH_Cut [12:41:46]Write to MH i2c: D1 01 00 F3 7B 01 40 [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: D1 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: D1 01 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: D1 01 00 F3 7B 00 3F [12:41:46]Write to MH i2c: 01 00 00 F4 7B 6F [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]OFD Sender: No OFD packet to send [12:41:47]*** Cut start [12:41:47]*** Partial cut [12:41:47]*** CUTSNS_PIN = 1 [12:41:47]*** CUTSNS_PIN = 0 [12:41:47]*** Brake cut motor [12:41:47]Read from MH i2c: 01 [12:41:47]MH_I2C_Read... [12:41:47]*** Stop cut motor [12:41:48]*** Cut end [12:41:48]Read from MH i2c: 01 07 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: 01 07 00 F4 7B 00 00 00 00 00 FF 0F 84 [12:41:48]process_action close_receipt done [12:41:48]requested_data is exist [12:41:48]produce_requested_data [12:41:48]requested_item fm.sn is exist - process it [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 11 00 00 [12:41:48]Write to MH i2c: E2 08 00 F5 7B 80 11 00 00 00 00 00 00 EA [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 17 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 17 00 F5 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3C [12:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:41:48]wFMCommunicate OK [12:41:48]requested_item fd.num is exist - process it [12:41:48]SAM_PROTO_GetFieldsCounters [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 13 00 00 [12:41:48]Write to MH i2c: E2 08 00 F6 7B 80 13 00 00 00 00 00 00 ED [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 62 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 62 00 F6 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B7 01 00 0E 04 04 00 88 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 96 [12:41:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B7 01 00 0E 04 04 00 88 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 [12:41:48]wFMCommunicate OK [12:41:48]SAM_PROTO_GetFieldsCounters done [12:41:48]requested_item shift.num is exist - process it [12:41:48]requested_item shift.opened is exist - process it [12:41:48]req_shift_opened [12:41:48]FM_GetShiftState [12:41:48]SAM_PROTO_GetShiftState [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 13 01 00 [12:41:48]Write to MH i2c: E2 08 00 F7 7B 80 13 01 00 00 00 00 00 EF [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 0E 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 0E 00 F7 7B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0D [12:41:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:41:48]wFMCommunicate OK [12:41:48]SAM_PROTO_GetShiftState done [12:41:48]FM_GetShiftState done [12:41:48]req_shift_opened done [12:41:48]requested_item shift.open_date is exist - process it [12:41:48]req_shift_open_date [12:41:48]req_shift_open_date done [12:41:48]produce_requested_data done [12:41:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112477,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:41:48]process_action_free close_receipt [12:41:48]json_value_free [12:41:48]json_value_free done [12:41:48]process_json_proto returns [12:41:48]Send response to host [12:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112477,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:41:48]free response buf [12:41:48]execute_script done [12:41:48]execute_script returns [12:41:48]free content buf [12:41:48]Sock 7.Close socket [12:41:48]Sock 7.Thread stoped [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:56]accept exits with 9 [12:42:56]New connection [12:42:56]New thread 3066957156 created [12:42:56]Thread 3066813796 joined [12:42:56]Waiting for new connection... [12:42:56] Sock 9.Parse request [12:42:56]Sock 9.Check first char [12:42:56]Sock 9.First char is OK [12:42:56]request: POST /json_proto HTTP/1.0 [12:42:56]Method: POST [12:42:56]URL: /json_proto [12:42:56]Method is POST - this is cgi request [12:42:56]url: /json_proto [12:42:56]query_string will be loaded in cgi processing [12:42:56]execute_cgi json_proto POST (null) [12:42:56]execute_cgi path=json_proto method=POST [12:42:56]POST find Content-Length [12:42:56]Host: 172.17.59.68:8080 [12:42:56]Content-Length: 677 [12:42:56]Content-Type: application/json [12:42:56] [12:42:56]POST finish read [12:42:56]Found Content-Length = 677 [12:42:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:42:56]execute_script... [12:42: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)321157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:42:56]POST & json_proto [12:42:56]process_json_proto [12:42:56]json parsed OK: [12:42:56]protocol is kg_v1.0 [12:42:56]action value=close_receipt [12:42:56]process_action close_receipt [12:42:56]cmd_close_receipt [12:42:56]MH_GetDate [12:42:56]Write to MH i2c: F0 00 00 F8 7B 62 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: F0 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: F0 09 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: F0 09 00 F8 7B 00 88 18 78 66 BC EC 60 65 56 [12:42:56]GetLastDocTimeStamp 1719146560 [12:42:56]current date 1719146632 [12:42:56]FM_GetShiftState [12:42:56]SAM_PROTO_GetShiftState [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 13 01 00 [12:42:56]Write to MH i2c: E2 08 00 F9 7B 80 13 01 00 00 00 00 00 F1 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 0E 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 0E 00 F9 7B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0F [12:42:56]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:42:56]wFMCommunicate OK [12:42:56]SAM_PROTO_GetShiftState done [12:42:56]FM_GetShiftState done [12:42:56]opened in 1719106490 [12:42:56]opened+sec_in_day 1719192890 [12:42:56]quantity*price = 40039 [12:42:56]sum+1 = 40040 [12:42:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 79 23.06.2024 12:43 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112478 ФПД: 28178975180177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112478&fm=28178975180177&tin=02508201610067®Number=0000000000092771&sum=40000 [12:42:57]StoreToDocumentArchive [12:42:57]shift 392 fd 112478 [12:42:57]save to /storage/0392/doc_00112478 [12:42:57]save last doc name /storage/0392/doc_00112478 to /storage/kkm_last_doc_name [12:42:57]save OK [12:42:57]Clear old archive folders... [12:42:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:57]tlvbuf is 01233FD0 [12:42:57]SAM_PROTO_ClearQueue [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 09 00 00 [12:42:57]Write to MH i2c: E2 08 00 06 7C 80 09 00 00 00 00 00 00 F4 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 06 7C 00 90 00 F6 [12:42:57]RAPDU: 90 00 [12:42:57]wFMCommunicate OK [12:42:57]SAM_PROTO_ClearQueue done [12:42:57]KKMCreateOFDPacket [12:42:57]OFDProtocolAddRootSTLVToBuf [12:42:57]FM_MakeSignedData [12:42:57]FM_MakeSignedData [12:42:57]SAM_PROTO_SignData [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 0D 01 02 [12:42:57]Write to MH i2c: E2 08 00 07 7C 80 0D 01 02 00 00 00 00 FC [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 07 7C 00 90 00 F7 [12:42:57]RAPDU: 90 00 [12:42:57]wFMCommunicate OK [12:42:57]wFMCommunicate request_size=255 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 4F 00 00 00 F4 03 04 00 88 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B7 01 00 35 04 06 00 19 [12:42:57]Write to MH i2c: E2 02 01 08 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 4F 00 00 00 F4 03 04 00 88 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B7 01 00 35 04 06 00 19 00 00 03 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 08 7C 00 90 00 F8 [12:42:57]RAPDU: 90 00 [12:42:57]wFMCommunicate OK [12:42:57]wFMCommunicate request_size=10 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 0D 02 02 05 A0 ED CE 45 91 [12:42:57]Write to MH i2c: E2 0D 00 09 7C 80 0D 02 02 05 00 A0 ED CE 45 91 00 00 3A [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 09 7C 00 90 00 F9 [12:42:57]RAPDU: 90 00 [12:42:57]wFMCommunicate OK [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 0D 03 02 [12:42:57]Write to MH i2c: E2 08 00 0A 7C 80 0D 03 02 00 00 00 00 01 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:58]Read from MH i2c: E2 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 0B 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 0B 00 0A 7C 00 A3 FC 74 E8 3B BD 94 E3 90 00 6C [12:42:58]RAPDU: A3 FC 74 E8 3B BD 94 E3 90 00 [12:42:58]wFMCommunicate OK [12:42:58]SAM_PROTO_SignData done [12:42:58]FM_MakeSignedData done [12:42:58]CreateOFDProtocolMessage [12:42:58]wFMCommunicate request_size=4 [12:42:58]MH_SAM_APDU [12:42:58]CAPDU: 80 11 00 00 [12:42:58]Write to MH i2c: E2 08 00 0B 7C 80 11 00 00 00 00 00 00 01 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:58]Read from MH i2c: E2 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 17 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 17 00 0B 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [12:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:42:58]wFMCommunicate OK [12:42:58]CreateOFDProtocolMessage done [12:42:58]OFDSenderStorePacket 112478 [12:42:58]StoreOFDPacket docnum=112478 [12:42:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FF F2 07 01 5B 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 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 4F 00 00 00 F4 03 04 00 88 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B7 01 00 35 04 06 00 19 A0 ED CE 45 91 A3 FC 74 E8 3B BD 94 E3 [12:42:58]CheckFolder [12:42:58]dirname=/storage/ofd_packets [12:42:58]CheckFolder done [12:42:58]ProducePacketName [12:42:58]name=ofd_packets/00112478 [12:42:58]NVStorageSaveData ofd_packets/00112478 [12:42:58]File name is /storage/ofd_packets/00112478 [12:42:58]Write 301 bytes [12:42:58]NVStorageSaveData done [12:42:58]OFDSenderStorePacket done [12:42:58]KKMCreateOFDPacket done [12:42:58]NVStorageSaveData kkm_last_timestamp [12:42:58]File name is /storage/kkm_last_timestamp [12:42:58]Write 4 bytes [12:42:58]NVStorageSaveData done [12:42:58]ExternCall_PrintAddStr [12:42:58]wPrintStart [12:42:58]Write to MH i2c: 01 00 00 0C 7C 88 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 07 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 07 00 0C 7C 00 00 00 00 00 FF 0F 9D [12:42:58]RasterBufferAndPrint [12:42:58]line Счет N : (1)321157 [12:42:58]line ИНН: 02508201610067 [12:42:58]line Контрольно-Кассовый Чек [12:42:58]line ПРОДАЖА [12:42:58]line ТРК (МРК, ГНК) : 11 [12:42:58]line Товар: 2710124130 [12:42:58]line Аи-92-К-5 [12:42:58]line 6.030 * 66.40 [12:42:58]line = 400.39 [12:42:58]line НДС 12% НСП 1% [12:42:58]line > о реализуемом товаре [12:42:58]line ОКРУГЛЕНИЕ: -0.39 [12:42:58]line ИТОГО: 400.00 [12:42:58]line Внесено: 400.00 [12:42:58]line СДАЧА: 0.00 [12:42:58]line НСП 1% : 3.54 [12:42:58]line НДС 12% : 42.52 [12:42:58]line Наличными: 400.00 [12:42:58]line Безнал.: 0.00 [12:42:58]line Место: АЗС № 65 "Партнер Нефть" [12:42:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:42:58]line СНО: Общий режим [12:42:58]line Чек 79 23.06.2024 12:43 [12:42:58]line Смена: 392 ФФД: 1.0 [12:42:58]line ЗНМ: 0300000198 [12:42:58]line РНМ: 0000000000092771 [12:42:58]line Версия ККМ: 001 [12:42:58]line ФМ: 0000000000875083 [12:42:58]line ФД: 112478 [12:42:58]line ФПД: 28178975180177 [12:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112478&fm=28178975180177&tin=02508201610067®Number=0000000000092771&sum=40000 [12:42:58]OFD Sender: Processing packet 112478 [packets to send 38, broken 37] [12:42:58]ProducePacketName [12:42:58]name=ofd_packets/00112478 [12:42:58]OFD Sender: To server: pG, [12:42:58]CommunicateWithHost lk.salyk.kg:30040 [12:42:58]ConnectInit lk.salyk.kg [12:42:58]written 0, free lines is 4095 [12:42:58]Connected sock=10 [12:42:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FF F2 07 01 5B 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 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 4F 00 00 00 F4 03 04 00 88 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B7 01 00 35 04 06 00 19 A0 ED CE 45 91 A3 FC 74 E8 3B BD 94 E3 [12:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CC 6D 47 00 F8 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B7 01 00 F4 03 04 00 76 AF 77 66 B6 04 01 00 00 03 D7 01 B8 4C C1 7F D4 [12:42:58]CommunicateWithHost err = 0 [12:42:58]CheckOFDResponse [12:42:58]1017 (14) - 77093643461234 [12:42:58]1041 (16) - 0000000000875083 [12:42:58]1040 (4) - 112478 [12:42:58]1012 (4) - 23.06.2024 05:15 [12:42:58]1206 (1) - 0 [12:42:58]OFD Sender: Remove packet 112478 [12:42:58]ProducePacketName [12:42:58]name=ofd_packets/00112478 [12:42:58]NVStorageDeleteData [12:42:58]Write to MH i2c: 01 00 00 37 7C B3 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 07 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 07 00 37 7C 00 00 00 00 00 CC 0C 92 [12:42:58]RasterBufferAndPrint [12:42:58]line [12:42:58]line [12:42:58]line [12:42:58]line [12:42:58]line [12:42:58]written 0, free lines is 3282 [12:42:58]MH_Cut [12:42:58]Write to MH i2c: D1 01 00 3E 7C 01 8C [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: D1 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: D1 01 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: D1 01 00 3E 7C 00 8B [12:42:58]Write to MH i2c: 01 00 00 3F 7C BB [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:59]OFD Sender: No OFD packet to send [12:42:59]*** Cut start [12:42:59]*** Partial cut [12:42:59]*** CUTSNS_PIN = 1 [12:42:59]*** CUTSNS_PIN = 0 [12:42:59]*** Brake cut motor [12:43:00]Read from MH i2c: 01 [12:43:00]MH_I2C_Read... [12:43:00]*** Stop cut motor [12:43:00]*** Cut end [12:43:00]Read from MH i2c: 01 07 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: 01 07 00 3F 7C 00 00 00 00 00 FF 0F D0 [12:43:00]process_action close_receipt done [12:43:00]requested_data is exist [12:43:00]produce_requested_data [12:43:00]requested_item fm.sn is exist - process it [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 11 00 00 [12:43:00]Write to MH i2c: E2 08 00 40 7C 80 11 00 00 00 00 00 00 36 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 17 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 17 00 40 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [12:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:43:00]wFMCommunicate OK [12:43:00]requested_item fd.num is exist - process it [12:43:00]SAM_PROTO_GetFieldsCounters [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 13 00 00 [12:43:00]Write to MH i2c: E2 08 00 41 7C 80 13 00 00 00 00 00 00 39 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 62 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 62 00 41 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B7 01 00 0E 04 04 00 88 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 E6 [12:43:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B7 01 00 0E 04 04 00 88 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 [12:43:00]wFMCommunicate OK [12:43:00]SAM_PROTO_GetFieldsCounters done [12:43:00]requested_item shift.num is exist - process it [12:43:00]requested_item shift.opened is exist - process it [12:43:00]req_shift_opened [12:43:00]FM_GetShiftState [12:43:00]SAM_PROTO_GetShiftState [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 13 01 00 [12:43:00]Write to MH i2c: E2 08 00 42 7C 80 13 01 00 00 00 00 00 3B [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 42 7C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 59 [12:43:00]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:43:00]wFMCommunicate OK [12:43:00]SAM_PROTO_GetShiftState done [12:43:00]FM_GetShiftState done [12:43:00]req_shift_opened done [12:43:00]requested_item shift.open_date is exist - process it [12:43:00]req_shift_open_date [12:43:00]req_shift_open_date done [12:43:00]produce_requested_data done [12:43:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112478,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:43:00]process_action_free close_receipt [12:43:00]json_value_free [12:43:00]json_value_free done [12:43:00]process_json_proto returns [12:43:00]Send response to host [12:43:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112478,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:43:00]free response buf [12:43:00]execute_script done [12:43:00]execute_script returns [12:43:00]free content buf [12:43:00]Sock 9.Close socket [12:43:00]Sock 9.Thread stoped [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:45]accept exits with 7 [12:43:45]New connection [12:43:45]New thread 3066813796 created [12:43:45]Thread 3066957156 joined [12:43:45]Waiting for new connection... [12:43:45] Sock 7.Parse request [12:43:45]Sock 7.Check first char [12:43:45]Sock 7.First char is OK [12:43:45]request: POST /json_proto HTTP/1.0 [12:43:45]Method: POST [12:43:45]URL: /json_proto [12:43:45]Method is POST - this is cgi request [12:43:45]url: /json_proto [12:43:45]query_string will be loaded in cgi processing [12:43:45]execute_cgi json_proto POST (null) [12:43:45]execute_cgi path=json_proto method=POST [12:43:45]POST find Content-Length [12:43:45]Host: 172.17.59.68:8080 [12:43:45]Content-Length: 677 [12:43:45]Content-Type: application/json [12:43:45] [12:43:45]POST finish read [12:43:45]Found Content-Length = 677 [12:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:45]execute_script... [12:43: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)321158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:45]POST & json_proto [12:43:45]process_json_proto [12:43:45]json parsed OK: [12:43:45]protocol is kg_v1.0 [12:43:45]action value=close_receipt [12:43:45]process_action close_receipt [12:43:45]cmd_close_receipt [12:43:45]MH_GetDate [12:43:45]Write to MH i2c: F0 00 00 43 7C AE [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: F0 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: F0 09 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: F0 09 00 43 7C 00 BA 18 78 66 BC EC 60 65 D4 [12:43:45]GetLastDocTimeStamp 1719146632 [12:43:45]current date 1719146682 [12:43:45]FM_GetShiftState [12:43:45]SAM_PROTO_GetShiftState [12:43:45]wFMCommunicate request_size=4 [12:43:45]MH_SAM_APDU [12:43:45]CAPDU: 80 13 01 00 [12:43:45]Write to MH i2c: E2 08 00 44 7C 80 13 01 00 00 00 00 00 3D [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:45]Read from MH i2c: E2 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 0E 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 0E 00 44 7C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 5B [12:43:45]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:43:45]wFMCommunicate OK [12:43:45]SAM_PROTO_GetShiftState done [12:43:45]FM_GetShiftState done [12:43:45]opened in 1719106490 [12:43:45]opened+sec_in_day 1719192890 [12:43:45]quantity*price = 20052 [12:43:45]sum+1 = 20054 [12:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 80 23.06.2024 12:44 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112479 ФПД: 261227664091669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124442&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112479&fm=261227664091669&tin=02508201610067®Number=0000000000092771&sum=20000 [12:43:47]StoreToDocumentArchive [12:43:47]shift 392 fd 112479 [12:43:47]save to /storage/0392/doc_00112479 [12:43:47]save last doc name /storage/0392/doc_00112479 to /storage/kkm_last_doc_name [12:43:47]save OK [12:43:47]Clear old archive folders... [12:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:47]tlvbuf is 01233E70 [12:43:47]SAM_PROTO_ClearQueue [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 09 00 00 [12:43:47]Write to MH i2c: E2 08 00 51 7C 80 09 00 00 00 00 00 00 3F [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 51 7C 00 90 00 41 [12:43:47]RAPDU: 90 00 [12:43:47]wFMCommunicate OK [12:43:47]SAM_PROTO_ClearQueue done [12:43:47]KKMCreateOFDPacket [12:43:47]OFDProtocolAddRootSTLVToBuf [12:43:47]FM_MakeSignedData [12:43:47]FM_MakeSignedData [12:43:47]SAM_PROTO_SignData [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 0D 01 02 [12:43:47]Write to MH i2c: E2 08 00 52 7C 80 0D 01 02 00 00 00 00 47 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 52 7C 00 90 00 42 [12:43:47]RAPDU: 90 00 [12:43:47]wFMCommunicate OK [12:43:47]wFMCommunicate request_size=255 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 50 00 00 00 F4 03 04 00 BA 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B7 01 00 35 04 06 00 ED [12:43:47]Write to MH i2c: E2 02 01 53 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 50 00 00 00 F4 03 04 00 BA 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B7 01 00 35 04 06 00 ED 00 00 47 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 53 7C 00 90 00 43 [12:43:47]RAPDU: 90 00 [12:43:47]wFMCommunicate OK [12:43:47]wFMCommunicate request_size=10 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 0D 02 02 05 95 CE 1F AA 15 [12:43:47]Write to MH i2c: E2 0D 00 54 7C 80 0D 02 02 05 00 95 CE 1F AA 15 00 00 95 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 54 7C 00 90 00 44 [12:43:47]RAPDU: 90 00 [12:43:47]wFMCommunicate OK [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 0D 03 02 [12:43:47]Write to MH i2c: E2 08 00 55 7C 80 0D 03 02 00 00 00 00 4C [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 0B 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 0B 00 55 7C 00 B4 B8 0B 5A 11 29 90 D2 90 00 BA [12:43:47]RAPDU: B4 B8 0B 5A 11 29 90 D2 90 00 [12:43:47]wFMCommunicate OK [12:43:47]SAM_PROTO_SignData done [12:43:47]FM_MakeSignedData done [12:43:47]CreateOFDProtocolMessage [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 11 00 00 [12:43:47]Write to MH i2c: E2 08 00 56 7C 80 11 00 00 00 00 00 00 4C [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 17 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 17 00 56 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [12:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:43:47]wFMCommunicate OK [12:43:47]CreateOFDProtocolMessage done [12:43:47]OFDSenderStorePacket 112479 [12:43:47]StoreOFDPacket docnum=112479 [12:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 34 07 01 A0 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 50 00 00 00 F4 03 04 00 BA 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B7 01 00 35 04 06 00 ED 95 CE 1F AA 15 B4 B8 0B 5A 11 29 90 D2 [12:43:47]CheckFolder [12:43:47]dirname=/storage/ofd_packets [12:43:47]CheckFolder done [12:43:47]ProducePacketName [12:43:47]name=ofd_packets/00112479 [12:43:47]NVStorageSaveData ofd_packets/00112479 [12:43:47]File name is /storage/ofd_packets/00112479 [12:43:47]Write 301 bytes [12:43:47]NVStorageSaveData done [12:43:47]OFDSenderStorePacket done [12:43:47]KKMCreateOFDPacket done [12:43:47]NVStorageSaveData kkm_last_timestamp [12:43:47]File name is /storage/kkm_last_timestamp [12:43:47]Write 4 bytes [12:43:47]NVStorageSaveData done [12:43:47]ExternCall_PrintAddStr [12:43:47]wPrintStart [12:43:47]Write to MH i2c: 01 00 00 57 7C D3 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: 01 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: 01 07 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: 01 07 00 57 7C 00 00 00 00 00 FF 0F E8 [12:43:47]RasterBufferAndPrint [12:43:47]line Счет N : (1)321158 [12:43:47]line ИНН: 02508201610067 [12:43:47]line Контрольно-Кассовый Чек [12:43:47]line ПРОДАЖА [12:43:47]line ТРК (МРК, ГНК) : 11 [12:43:47]line Товар: 2710124130 [12:43:47]line Аи-92-К-5 [12:43:47]line 3.020 * 66.40 [12:43:47]line = 200.53 [12:43:47]line НДС 12% НСП 1% [12:43:47]line > о реализуемом товаре [12:43:47]line ОКРУГЛЕНИЕ: -0.53 [12:43:47]line ИТОГО: 200.00 [12:43:47]line Внесено: 200.00 [12:43:47]line СДАЧА: 0.00 [12:43:47]line НСП 1% : 1.77 [12:43:47]line НДС 12% : 21.29 [12:43:47]line Наличными: 200.00 [12:43:47]line Безнал.: 0.00 [12:43:47]line Место: АЗС № 65 "Партнер Нефть" [12:43:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:43:47]line СНО: Общий режим [12:43:47]line Чек 80 23.06.2024 12:44 [12:43:47]line Смена: 392 ФФД: 1.0 [12:43:47]line ЗНМ: 0300000198 [12:43:47]line РНМ: 0000000000092771 [12:43:47]line Версия ККМ: 001 [12:43:47]line ФМ: 0000000000875083 [12:43:47]line ФД: 112479 [12:43:47]line ФПД: 261227664091669 [12:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124442&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112479&fm=261227664091669&tin=02508201610067®Number=0000000000092771&sum=20000 [12:43:47]OFD Sender: Processing packet 112479 [packets to send 38, broken 37] [12:43:47]ProducePacketName [12:43:47]name=ofd_packets/00112479 [12:43:47]OFD Sender: To server: pG, [12:43:47]CommunicateWithHost lk.salyk.kg:30040 [12:43:47]ConnectInit lk.salyk.kg [12:43:47]written 0, free lines is 4095 [12:43:48]Connected sock=10 [12:43:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 34 07 01 A0 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 50 00 00 00 F4 03 04 00 BA 18 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B7 01 00 35 04 06 00 ED 95 CE 1F AA 15 B4 B8 0B 5A 11 29 90 D2 [12:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC 0B 47 00 75 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B7 01 00 F4 03 04 00 A7 AF 77 66 B6 04 01 00 00 12 99 E8 9A 01 13 D4 C7 [12:43:48]CommunicateWithHost err = 0 [12:43:48]CheckOFDResponse [12:43:48]1017 (14) - 77093643461234 [12:43:48]1041 (16) - 0000000000875083 [12:43:48]1040 (4) - 112479 [12:43:48]1012 (4) - 23.06.2024 05:16 [12:43:48]1206 (1) - 0 [12:43:48]OFD Sender: Remove packet 112479 [12:43:48]ProducePacketName [12:43:48]name=ofd_packets/00112479 [12:43:48]NVStorageDeleteData [12:43:48]Write to MH i2c: 01 00 00 82 7C FE [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 07 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 07 00 82 7C 00 00 00 00 00 CD 0C DE [12:43:48]RasterBufferAndPrint [12:43:48]line [12:43:48]line [12:43:48]line [12:43:48]line [12:43:48]line [12:43:48]written 0, free lines is 3284 [12:43:48]MH_Cut [12:43:48]Write to MH i2c: D1 01 00 89 7C 01 D7 [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: D1 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: D1 01 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: D1 01 00 89 7C 00 D6 [12:43:48]Write to MH i2c: 01 00 00 8A 7C 06 [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]OFD Sender: No OFD packet to send [12:43:49]*** Cut start [12:43:49]*** Partial cut [12:43:49]*** CUTSNS_PIN = 1 [12:43:49]*** CUTSNS_PIN = 0 [12:43:49]*** Brake cut motor [12:43:49]Read from MH i2c: 01 [12:43:49]MH_I2C_Read... [12:43:49]*** Stop cut motor [12:43:49]*** Cut end [12:43:49]Read from MH i2c: 01 07 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: 01 07 00 8A 7C 00 00 00 00 00 FF 0F 1B [12:43:49]process_action close_receipt done [12:43:49]requested_data is exist [12:43:49]produce_requested_data [12:43:49]requested_item fm.sn is exist - process it [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 11 00 00 [12:43:49]Write to MH i2c: E2 08 00 8B 7C 80 11 00 00 00 00 00 00 81 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 17 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 17 00 8B 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [12:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:43:49]wFMCommunicate OK [12:43:49]requested_item fd.num is exist - process it [12:43:49]SAM_PROTO_GetFieldsCounters [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 13 00 00 [12:43:49]Write to MH i2c: E2 08 00 8C 7C 80 13 00 00 00 00 00 00 84 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 62 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 62 00 8C 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B7 01 00 0E 04 04 00 88 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 35 [12:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B7 01 00 0E 04 04 00 88 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 [12:43:49]wFMCommunicate OK [12:43:49]SAM_PROTO_GetFieldsCounters done [12:43:49]requested_item shift.num is exist - process it [12:43:49]requested_item shift.opened is exist - process it [12:43:49]req_shift_opened [12:43:49]FM_GetShiftState [12:43:49]SAM_PROTO_GetShiftState [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 13 01 00 [12:43:49]Write to MH i2c: E2 08 00 8D 7C 80 13 01 00 00 00 00 00 86 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 0E 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 0E 00 8D 7C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A4 [12:43:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:43:50]wFMCommunicate OK [12:43:50]SAM_PROTO_GetShiftState done [12:43:50]FM_GetShiftState done [12:43:50]req_shift_opened done [12:43:50]requested_item shift.open_date is exist - process it [12:43:50]req_shift_open_date [12:43:50]req_shift_open_date done [12:43:50]produce_requested_data done [12:43:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112479,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:43:50]process_action_free close_receipt [12:43:50]json_value_free [12:43:50]json_value_free done [12:43:50]process_json_proto returns [12:43:50]Send response to host [12:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112479,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:43:50]free response buf [12:43:50]execute_script done [12:43:50]execute_script returns [12:43:50]free content buf [12:43:50]Sock 7.Close socket [12:43:50]Sock 7.Thread stoped [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]accept exits with 9 [12:44:58]New connection [12:44:58]New thread 3066957156 created [12:44:58]Thread 3066813796 joined [12:44:58]Waiting for new connection... [12:44:58] Sock 9.Parse request [12:44:58]Sock 9.Check first char [12:44:58]Sock 9.First char is OK [12:44:58]request: POST /json_proto HTTP/1.0 [12:44:58]Method: POST [12:44:58]URL: /json_proto [12:44:58]Method is POST - this is cgi request [12:44:58]url: /json_proto [12:44:58]query_string will be loaded in cgi processing [12:44:58]execute_cgi json_proto POST (null) [12:44:58]execute_cgi path=json_proto method=POST [12:44:58]POST find Content-Length [12:44:58]Host: 172.17.59.68:8080 [12:44:58]Content-Length: 678 [12:44:58]Content-Type: application/json [12:44:58] [12:44:58]POST finish read [12:44:58]Found Content-Length = 678 [12:44:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.830, "sum" : 800.34, "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" ] } } [12:44:58]execute_script... [12:44: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)321159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.830, "sum" : 800.34, "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" ] } } [12:44:58]POST & json_proto [12:44:58]process_json_proto [12:44:58]json parsed OK: [12:44:58]protocol is kg_v1.0 [12:44:58]action value=close_receipt [12:44:58]process_action close_receipt [12:44:58]cmd_close_receipt [12:44:58]MH_GetDate [12:44:58]Write to MH i2c: F0 00 00 8E 7C F9 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: F0 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: F0 09 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: F0 09 00 8E 7C 00 03 19 78 66 BC EC 60 65 69 [12:44:58]GetLastDocTimeStamp 1719146682 [12:44:58]current date 1719146755 [12:44:58]FM_GetShiftState [12:44:58]SAM_PROTO_GetShiftState [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 13 01 00 [12:44:58]Write to MH i2c: E2 08 00 8F 7C 80 13 01 00 00 00 00 00 88 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 0E 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 0E 00 8F 7C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A6 [12:44:58]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:44:58]wFMCommunicate OK [12:44:58]SAM_PROTO_GetShiftState done [12:44:58]FM_GetShiftState done [12:44:58]opened in 1719106490 [12:44:58]opened+sec_in_day 1719192890 [12:44:58]quantity*price = 80033 [12:44:58]sum+1 = 80035 [12:44:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 81 23.06.2024 12:45 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112480 ФПД: 280836684957987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124555&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112480&fm=280836684957987&tin=02508201610067®Number=0000000000092771&sum=80000 [12:44:59]StoreToDocumentArchive [12:44:59]shift 392 fd 112480 [12:44:59]save to /storage/0392/doc_00112480 [12:44:59]save last doc name /storage/0392/doc_00112480 to /storage/kkm_last_doc_name [12:44:59]save OK [12:44:59]Clear old archive folders... [12:44:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:59]tlvbuf is 011F1410 [12:44:59]SAM_PROTO_ClearQueue [12:44:59]wFMCommunicate request_size=4 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 09 00 00 [12:44:59]Write to MH i2c: E2 08 00 9C 7C 80 09 00 00 00 00 00 00 8A [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:59]Read from MH i2c: E2 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 03 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 03 00 9C 7C 00 90 00 8C [12:44:59]RAPDU: 90 00 [12:44:59]wFMCommunicate OK [12:44:59]SAM_PROTO_ClearQueue done [12:44:59]KKMCreateOFDPacket [12:44:59]OFDProtocolAddRootSTLVToBuf [12:44:59]FM_MakeSignedData [12:44:59]FM_MakeSignedData [12:44:59]SAM_PROTO_SignData [12:44:59]wFMCommunicate request_size=4 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 0D 01 02 [12:44:59]Write to MH i2c: E2 08 00 9D 7C 80 0D 01 02 00 00 00 00 92 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:59]Read from MH i2c: E2 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 03 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 03 00 9D 7C 00 90 00 8D [12:44:59]RAPDU: 90 00 [12:44:59]wFMCommunicate OK [12:44:59]wFMCommunicate request_size=255 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 51 00 00 00 F4 03 04 00 03 19 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B7 01 00 35 04 06 00 FF [12:44:59]Write to MH i2c: E2 02 01 9E 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 51 00 00 00 F4 03 04 00 03 19 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B7 01 00 35 04 06 00 FF 00 00 64 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 9E 7C 00 90 00 8E [12:45:00]RAPDU: 90 00 [12:45:00]wFMCommunicate OK [12:45:00]wFMCommunicate request_size=10 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 0D 02 02 05 6B 62 D8 C9 23 [12:45:00]Write to MH i2c: E2 0D 00 9F 7C 80 0D 02 02 05 00 6B 62 D8 C9 23 00 00 30 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 9F 7C 00 90 00 8F [12:45:00]RAPDU: 90 00 [12:45:00]wFMCommunicate OK [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 0D 03 02 [12:45:00]Write to MH i2c: E2 08 00 A0 7C 80 0D 03 02 00 00 00 00 97 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 0B 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 0B 00 A0 7C 00 94 E3 6E 90 E7 A1 EF 93 90 00 17 [12:45:00]RAPDU: 94 E3 6E 90 E7 A1 EF 93 90 00 [12:45:00]wFMCommunicate OK [12:45:00]SAM_PROTO_SignData done [12:45:00]FM_MakeSignedData done [12:45:00]CreateOFDProtocolMessage [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 11 00 00 [12:45:00]Write to MH i2c: E2 08 00 A1 7C 80 11 00 00 00 00 00 00 97 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 17 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 17 00 A1 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E9 [12:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:45:00]wFMCommunicate OK [12:45:00]CreateOFDProtocolMessage done [12:45:00]OFDSenderStorePacket 112480 [12:45:00]StoreOFDPacket docnum=112480 [12:45:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 AA 07 01 B8 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 51 00 00 00 F4 03 04 00 03 19 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B7 01 00 35 04 06 00 FF 6B 62 D8 C9 23 94 E3 6E 90 E7 A1 EF 93 [12:45:00]CheckFolder [12:45:00]dirname=/storage/ofd_packets [12:45:00]CheckFolder done [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00112480 [12:45:00]NVStorageSaveData ofd_packets/00112480 [12:45:00]File name is /storage/ofd_packets/00112480 [12:45:00]Write 301 bytes [12:45:00]NVStorageSaveData done [12:45:00]OFDSenderStorePacket done [12:45:00]KKMCreateOFDPacket done [12:45:00]NVStorageSaveData kkm_last_timestamp [12:45:00]File name is /storage/kkm_last_timestamp [12:45:00]Write 4 bytes [12:45:00]NVStorageSaveData done [12:45:00]ExternCall_PrintAddStr [12:45:00]wPrintStart [12:45:00]Write to MH i2c: 01 00 00 A2 7C 1E [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 A2 7C 00 00 00 00 00 FF 0F 33 [12:45:00]RasterBufferAndPrint [12:45:00]line Счет N : (1)321159 [12:45:00]line ИНН: 02508201610067 [12:45:00]line Контрольно-Кассовый Чек [12:45:00]line ПРОДАЖА [12:45:00]line ТРК (МРК, ГНК) : 12 [12:45:00]line Товар: 2710124500 [12:45:00]line Аи-95-К-5 [12:45:00]line 10.830 * 73.90 [12:45:00]line = 800.34 [12:45:00]line НДС 12% НСП 1% [12:45:00]line > о реализуемом товаре [12:45:00]line ОКРУГЛЕНИЕ: -0.34 [12:45:00]line ИТОГО: 800.00 [12:45:00]line Внесено: 800.00 [12:45:00]line СДАЧА: 0.00 [12:45:00]line НСП 1% : 7.08 [12:45:00]line НДС 12% : 84.99 [12:45:00]line Наличными: 800.00 [12:45:00]line Безнал.: 0.00 [12:45:00]line Место: АЗС № 65 "Партнер Нефть" [12:45:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:45:00]line СНО: Общий режим [12:45:00]line Чек 81 23.06.2024 12:45 [12:45:00]line Смена: 392 ФФД: 1.0 [12:45:00]line ЗНМ: 0300000198 [12:45:00]line РНМ: 0000000000092771 [12:45:00]line Версия ККМ: 001 [12:45:00]line ФМ: 0000000000875083 [12:45:00]line ФД: 112480 [12:45:00]line ФПД: 280836684957987 [12:45:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T124555&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112480&fm=280836684957987&tin=02508201610067®Number=0000000000092771&sum=80000 [12:45:00]OFD Sender: Processing packet 112480 [packets to send 38, broken 37] [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00112480 [12:45:00]OFD Sender: To server: pG, [12:45:00]CommunicateWithHost lk.salyk.kg:30040 [12:45:00]ConnectInit lk.salyk.kg [12:45:00]written 0, free lines is 4095 [12:45:00]Connected sock=10 [12:45:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 AA 07 01 B8 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 51 00 00 00 F4 03 04 00 03 19 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B7 01 00 35 04 06 00 FF 6B 62 D8 C9 23 94 E3 6E 90 E7 A1 EF 93 [12:45:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 28 D0 47 00 E7 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B7 01 00 F4 03 04 00 F0 AF 77 66 B6 04 01 00 00 E1 44 22 D4 C5 EF 9A 93 [12:45:00]CommunicateWithHost err = 0 [12:45:00]CheckOFDResponse [12:45:00]1017 (14) - 77093643461234 [12:45:00]1041 (16) - 0000000000875083 [12:45:00]1040 (4) - 112480 [12:45:00]1012 (4) - 23.06.2024 05:17 [12:45:00]1206 (1) - 0 [12:45:00]OFD Sender: Remove packet 112480 [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00112480 [12:45:00]NVStorageDeleteData [12:45:01]Write to MH i2c: 01 00 00 CD 7C 49 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: 01 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: 01 07 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: 01 07 00 CD 7C 00 00 00 00 00 DC 0C 38 [12:45:01]RasterBufferAndPrint [12:45:01]line [12:45:01]line [12:45:01]line [12:45:01]line [12:45:01]line [12:45:01]written 0, free lines is 3302 [12:45:01]MH_Cut [12:45:01]Write to MH i2c: D1 01 00 D4 7C 01 22 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: D1 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: D1 01 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: D1 01 00 D4 7C 00 21 [12:45:01]Write to MH i2c: 01 00 00 D5 7C 51 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]OFD Sender: No OFD packet to send [12:45:01]*** Cut start [12:45:01]*** Partial cut [12:45:01]*** CUTSNS_PIN = 1 [12:45:01]*** CUTSNS_PIN = 0 [12:45:02]*** Brake cut motor [12:45:02]Read from MH i2c: 01 [12:45:02]MH_I2C_Read... [12:45:02]*** Stop cut motor [12:45:02]*** Cut end [12:45:02]Read from MH i2c: 01 07 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: 01 07 00 D5 7C 00 00 00 00 00 FF 0F 66 [12:45:02]process_action close_receipt done [12:45:02]requested_data is exist [12:45:02]produce_requested_data [12:45:02]requested_item fm.sn is exist - process it [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 11 00 00 [12:45:02]Write to MH i2c: E2 08 00 D6 7C 80 11 00 00 00 00 00 00 CC [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 17 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 17 00 D6 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [12:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:45:02]wFMCommunicate OK [12:45:02]requested_item fd.num is exist - process it [12:45:02]SAM_PROTO_GetFieldsCounters [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 13 00 00 [12:45:02]Write to MH i2c: E2 08 00 D7 7C 80 13 00 00 00 00 00 00 CF [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 62 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 62 00 D7 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B7 01 00 0E 04 04 00 88 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 84 [12:45:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B7 01 00 0E 04 04 00 88 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 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetFieldsCounters done [12:45:02]requested_item shift.num is exist - process it [12:45:02]requested_item shift.opened is exist - process it [12:45:02]req_shift_opened [12:45:02]FM_GetShiftState [12:45:02]SAM_PROTO_GetShiftState [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 13 01 00 [12:45:02]Write to MH i2c: E2 08 00 D8 7C 80 13 01 00 00 00 00 00 D1 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 D8 7C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EF [12:45:02]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetShiftState done [12:45:02]FM_GetShiftState done [12:45:02]req_shift_opened done [12:45:02]requested_item shift.open_date is exist - process it [12:45:02]req_shift_open_date [12:45:02]req_shift_open_date done [12:45:02]produce_requested_data done [12:45:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112480,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:45:02]process_action_free close_receipt [12:45:02]json_value_free [12:45:02]json_value_free done [12:45:02]process_json_proto returns [12:45:02]Send response to host [12:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112480,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:45:02]free response buf [12:45:02]execute_script done [12:45:02]execute_script returns [12:45:02]free content buf [12:45:02]Sock 9.Close socket [12:45:02]Sock 9.Thread stoped [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]accept exits with 7 [12:49:26]New connection [12:49:26]New thread 3066813796 created [12:49:26]Thread 3066957156 joined [12:49:26]Waiting for new connection... [12:49:26] Sock 7.Parse request [12:49:26]Sock 7.Check first char [12:49:26]Sock 7.First char is OK [12:49:26]request: POST /json_proto HTTP/1.0 [12:49:26]Method: POST [12:49:26]URL: /json_proto [12:49:26]Method is POST - this is cgi request [12:49:26]url: /json_proto [12:49:26]query_string will be loaded in cgi processing [12:49:26]execute_cgi json_proto POST (null) [12:49:26]execute_cgi path=json_proto method=POST [12:49:26]POST find Content-Length [12:49:26]Host: 172.17.59.68:8080 [12:49:26]Content-Length: 677 [12:49:26]Content-Type: application/json [12:49:26] [12:49:26]POST finish read [12:49:26]Found Content-Length = 677 [12:49:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "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" ] } } [12:49:26]execute_script... [12:49: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)321160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "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" ] } } [12:49:26]POST & json_proto [12:49:26]process_json_proto [12:49:26]json parsed OK: [12:49:26]protocol is kg_v1.0 [12:49:26]action value=close_receipt [12:49:26]process_action close_receipt [12:49:26]cmd_close_receipt [12:49:26]MH_GetDate [12:49:26]Write to MH i2c: F0 00 00 D9 7C 44 [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: F0 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: F0 09 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: F0 09 00 D9 7C 00 0E 1A 78 66 BC EC 60 65 C0 [12:49:26]GetLastDocTimeStamp 1719146755 [12:49:26]current date 1719147022 [12:49:26]FM_GetShiftState [12:49:26]SAM_PROTO_GetShiftState [12:49:26]wFMCommunicate request_size=4 [12:49:26]MH_SAM_APDU [12:49:26]CAPDU: 80 13 01 00 [12:49:26]Write to MH i2c: E2 08 00 DA 7C 80 13 01 00 00 00 00 00 D3 [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:26]Read from MH i2c: E2 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 0E 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 0E 00 DA 7C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F1 [12:49:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:49:26]wFMCommunicate OK [12:49:26]SAM_PROTO_GetShiftState done [12:49:26]FM_GetShiftState done [12:49:26]opened in 1719106490 [12:49:26]opened+sec_in_day 1719192890 [12:49:26]quantity*price = 34063 [12:49:26]sum+1 = 34064 [12:49:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 82 23.06.2024 12:50 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112481 ФПД: 50556618611227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112481&fm=50556618611227&tin=02508201610067®Number=0000000000092771&sum=34000 [12:49:27]StoreToDocumentArchive [12:49:27]shift 392 fd 112481 [12:49:27]save to /storage/0392/doc_00112481 [12:49:27]save last doc name /storage/0392/doc_00112481 to /storage/kkm_last_doc_name [12:49:27]save OK [12:49:27]Clear old archive folders... [12:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:27]tlvbuf is 011F1590 [12:49:27]SAM_PROTO_ClearQueue [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 09 00 00 [12:49:27]Write to MH i2c: E2 08 00 E7 7C 80 09 00 00 00 00 00 00 D5 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 E7 7C 00 90 00 D7 [12:49:27]RAPDU: 90 00 [12:49:27]wFMCommunicate OK [12:49:27]SAM_PROTO_ClearQueue done [12:49:27]KKMCreateOFDPacket [12:49:27]OFDProtocolAddRootSTLVToBuf [12:49:27]FM_MakeSignedData [12:49:27]FM_MakeSignedData [12:49:27]SAM_PROTO_SignData [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 0D 01 02 [12:49:27]Write to MH i2c: E2 08 00 E8 7C 80 0D 01 02 00 00 00 00 DD [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 E8 7C 00 90 00 D8 [12:49:27]RAPDU: 90 00 [12:49:27]wFMCommunicate OK [12:49:27]wFMCommunicate request_size=255 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 52 00 00 00 F4 03 04 00 0E 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B7 01 00 35 04 06 00 2D [12:49:27]Write to MH i2c: E2 02 01 E9 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 52 00 00 00 F4 03 04 00 0E 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B7 01 00 35 04 06 00 2D 00 00 CE [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 E9 7C 00 90 00 D9 [12:49:27]RAPDU: 90 00 [12:49:27]wFMCommunicate OK [12:49:27]wFMCommunicate request_size=10 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 0D 02 02 05 FB 21 4B 1A 1B [12:49:27]Write to MH i2c: E2 0D 00 EA 7C 80 0D 02 02 05 00 FB 21 4B 1A 1B 00 00 86 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 EA 7C 00 90 00 DA [12:49:27]RAPDU: 90 00 [12:49:27]wFMCommunicate OK [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 0D 03 02 [12:49:27]Write to MH i2c: E2 08 00 EB 7C 80 0D 03 02 00 00 00 00 E2 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 0B 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 0B 00 EB 7C 00 2B C9 84 0B 26 2E C6 3F 90 00 BF [12:49:27]RAPDU: 2B C9 84 0B 26 2E C6 3F 90 00 [12:49:27]wFMCommunicate OK [12:49:27]SAM_PROTO_SignData done [12:49:27]FM_MakeSignedData done [12:49:27]CreateOFDProtocolMessage [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 11 00 00 [12:49:27]Write to MH i2c: E2 08 00 EC 7C 80 11 00 00 00 00 00 00 E2 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 17 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 17 00 EC 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [12:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:49:27]wFMCommunicate OK [12:49:27]CreateOFDProtocolMessage done [12:49:27]OFDSenderStorePacket 112481 [12:49:27]StoreOFDPacket docnum=112481 [12:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7C E8 07 01 9E 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 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 52 00 00 00 F4 03 04 00 0E 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B7 01 00 35 04 06 00 2D FB 21 4B 1A 1B 2B C9 84 0B 26 2E C6 3F [12:49:27]CheckFolder [12:49:27]dirname=/storage/ofd_packets [12:49:27]CheckFolder done [12:49:27]ProducePacketName [12:49:27]name=ofd_packets/00112481 [12:49:27]NVStorageSaveData ofd_packets/00112481 [12:49:27]File name is /storage/ofd_packets/00112481 [12:49:27]Write 301 bytes [12:49:27]NVStorageSaveData done [12:49:27]OFDSenderStorePacket done [12:49:27]KKMCreateOFDPacket done [12:49:27]NVStorageSaveData kkm_last_timestamp [12:49:27]File name is /storage/kkm_last_timestamp [12:49:27]Write 4 bytes [12:49:27]NVStorageSaveData done [12:49:27]ExternCall_PrintAddStr [12:49:28]wPrintStart [12:49:28]Write to MH i2c: 01 00 00 ED 7C 69 [12:49:28]Write i2c OK [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 07 00 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 07 00 ED 7C 00 00 00 00 00 FF 0F 7E [12:49:28]RasterBufferAndPrint [12:49:28]line Счет N : (1)321160 [12:49:28]line ИНН: 02508201610067 [12:49:28]line Контрольно-Кассовый Чек [12:49:28]line ПРОДАЖА [12:49:28]line ТРК (МРК, ГНК) : 11 [12:49:28]line Товар: 2710124130 [12:49:28]line Аи-92-К-5 [12:49:28]line 5.130 * 66.40 [12:49:28]line = 340.63 [12:49:28]line НДС 12% НСП 1% [12:49:28]line > о реализуемом товаре [12:49:28]line ОКРУГЛЕНИЕ: -0.63 [12:49:28]line ИТОГО: 340.00 [12:49:28]line Внесено: 340.00 [12:49:28]line СДАЧА: 0.00 [12:49:28]line НСП 1% : 3.01 [12:49:28]line НДС 12% : 36.17 [12:49:28]line Наличными: 340.00 [12:49:28]line Безнал.: 0.00 [12:49:28]line Место: АЗС № 65 "Партнер Нефть" [12:49:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:49:28]line СНО: Общий режим [12:49:28]line Чек 82 23.06.2024 12:50 [12:49:28]line Смена: 392 ФФД: 1.0 [12:49:28]line ЗНМ: 0300000198 [12:49:28]line РНМ: 0000000000092771 [12:49:28]line Версия ККМ: 001 [12:49:28]line ФМ: 0000000000875083 [12:49:28]line ФД: 112481 [12:49:28]line ФПД: 50556618611227 [12:49:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112481&fm=50556618611227&tin=02508201610067®Number=0000000000092771&sum=34000 [12:49:28]OFD Sender: Processing packet 112481 [packets to send 38, broken 37] [12:49:28]ProducePacketName [12:49:28]name=ofd_packets/00112481 [12:49:28]OFD Sender: To server: pG, [12:49:28]CommunicateWithHost lk.salyk.kg:30040 [12:49:28]ConnectInit lk.salyk.kg [12:49:28]written 0, free lines is 4095 [12:49:28]Connected sock=10 [12:49:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7C E8 07 01 9E 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 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 52 00 00 00 F4 03 04 00 0E 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B7 01 00 35 04 06 00 2D FB 21 4B 1A 1B 2B C9 84 0B 26 2E C6 3F [12:49:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7F 1D 47 00 91 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B7 01 00 F4 03 04 00 FB B0 77 66 B6 04 01 00 00 90 58 86 FF E9 81 0F 5E [12:49:28]CommunicateWithHost err = 0 [12:49:28]CheckOFDResponse [12:49:28]1017 (14) - 77093643461234 [12:49:28]1041 (16) - 0000000000875083 [12:49:28]1040 (4) - 112481 [12:49:28]1012 (4) - 23.06.2024 05:22 [12:49:28]1206 (1) - 0 [12:49:28]OFD Sender: Remove packet 112481 [12:49:28]ProducePacketName [12:49:28]name=ofd_packets/00112481 [12:49:28]NVStorageDeleteData [12:49:28]Write to MH i2c: 01 00 00 18 7D 95 [12:49:28]Write i2c OK [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 07 00 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 07 00 18 7D 00 00 00 00 00 D0 0C 78 [12:49:28]RasterBufferAndPrint [12:49:28]line [12:49:28]line [12:49:28]line [12:49:28]line [12:49:28]line [12:49:28]written 0, free lines is 3288 [12:49:28]MH_Cut [12:49:28]Write to MH i2c: D1 01 00 1F 7D 01 6E [12:49:28]Write i2c OK [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: D1 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: D1 01 00 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: D1 01 00 1F 7D 00 6D [12:49:28]Write to MH i2c: 01 00 00 20 7D 9D [12:49:28]Write i2c OK [12:49:28]MH_I2C_Read... [12:49:29]OFD Sender: No OFD packet to send [12:49:29]*** Cut start [12:49:29]*** Partial cut [12:49:29]*** CUTSNS_PIN = 1 [12:49:29]*** CUTSNS_PIN = 0 [12:49:29]*** Brake cut motor [12:49:30]Read from MH i2c: 01 [12:49:30]MH_I2C_Read... [12:49:30]*** Stop cut motor [12:49:30]*** Cut end [12:49:30]Read from MH i2c: 01 07 00 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: 01 07 00 20 7D 00 00 00 00 00 FF 0F B2 [12:49:30]process_action close_receipt done [12:49:30]requested_data is exist [12:49:30]produce_requested_data [12:49:30]requested_item fm.sn is exist - process it [12:49:30]wFMCommunicate request_size=4 [12:49:30]MH_SAM_APDU [12:49:30]CAPDU: 80 11 00 00 [12:49:30]Write to MH i2c: E2 08 00 21 7D 80 11 00 00 00 00 00 00 18 [12:49:30]Write i2c OK [12:49:30]MH_I2C_Read... [12:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:30]Read from MH i2c: E2 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: E2 17 00 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: E2 17 00 21 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [12:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:49:30]wFMCommunicate OK [12:49:30]requested_item fd.num is exist - process it [12:49:30]SAM_PROTO_GetFieldsCounters [12:49:30]wFMCommunicate request_size=4 [12:49:30]MH_SAM_APDU [12:49:30]CAPDU: 80 13 00 00 [12:49:30]Write to MH i2c: E2 08 00 22 7D 80 13 00 00 00 00 00 00 1B [12:49:30]Write i2c OK [12:49:30]MH_I2C_Read... [12:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:30]Read from MH i2c: E2 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: E2 62 00 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: E2 62 00 22 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B7 01 00 0E 04 04 00 88 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 D4 [12:49:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B7 01 00 0E 04 04 00 88 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 [12:49:30]wFMCommunicate OK [12:49:30]SAM_PROTO_GetFieldsCounters done [12:49:30]requested_item shift.num is exist - process it [12:49:30]requested_item shift.opened is exist - process it [12:49:30]req_shift_opened [12:49:30]FM_GetShiftState [12:49:30]SAM_PROTO_GetShiftState [12:49:30]wFMCommunicate request_size=4 [12:49:30]MH_SAM_APDU [12:49:30]CAPDU: 80 13 01 00 [12:49:30]Write to MH i2c: E2 08 00 23 7D 80 13 01 00 00 00 00 00 1D [12:49:30]Write i2c OK [12:49:30]MH_I2C_Read... [12:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:30]Read from MH i2c: E2 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: E2 0E 00 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: E2 0E 00 23 7D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3B [12:49:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:49:30]wFMCommunicate OK [12:49:30]SAM_PROTO_GetShiftState done [12:49:30]FM_GetShiftState done [12:49:30]req_shift_opened done [12:49:30]requested_item shift.open_date is exist - process it [12:49:30]req_shift_open_date [12:49:30]req_shift_open_date done [12:49:30]produce_requested_data done [12:49:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112481,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:49:30]process_action_free close_receipt [12:49:30]json_value_free [12:49:30]json_value_free done [12:49:30]process_json_proto returns [12:49:30]Send response to host [12:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112481,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:49:30]free response buf [12:49:30]execute_script done [12:49:30]execute_script returns [12:49:30]free content buf [12:49:30]Sock 7.Close socket [12:49:30]Sock 7.Thread stoped [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:05]accept exits with 9 [12:50:05]New connection [12:50:05]New thread 3066957156 created [12:50:05]Thread 3066813796 joined [12:50:05]Waiting for new connection... [12:50:05] Sock 9.Parse request [12:50:05]Sock 9.Check first char [12:50:05]Sock 9.First char is OK [12:50:05]request: POST /json_proto HTTP/1.0 [12:50:05]Method: POST [12:50:05]URL: /json_proto [12:50:05]Method is POST - this is cgi request [12:50:05]url: /json_proto [12:50:05]query_string will be loaded in cgi processing [12:50:05]execute_cgi json_proto POST (null) [12:50:05]execute_cgi path=json_proto method=POST [12:50:05]POST find Content-Length [12:50:05]Host: 172.17.59.68:8080 [12:50:05]Content-Length: 673 [12:50:05]Content-Type: application/json [12:50:05] [12:50:05]POST finish read [12:50:05]Found Content-Length = 673 [12:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.060, "sum" : 70.38, "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" ] } } [12:50:05]execute_script... [12:50: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)321161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.060, "sum" : 70.38, "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" ] } } [12:50:05]POST & json_proto [12:50:05]process_json_proto [12:50:05]json parsed OK: [12:50:05]protocol is kg_v1.0 [12:50:05]action value=close_receipt [12:50:05]process_action close_receipt [12:50:05]cmd_close_receipt [12:50:05]MH_GetDate [12:50:05]Write to MH i2c: F0 00 00 24 7D 90 [12:50:05]Write i2c OK [12:50:05]MH_I2C_Read... [12:50:05]Read from MH i2c: F0 [12:50:05]MH_I2C_Read... [12:50:05]Read from MH i2c: F0 09 00 [12:50:05]MH_I2C_Read... [12:50:05]Read from MH i2c: F0 09 00 24 7D 00 36 1A 78 66 BC EC 60 65 34 [12:50:05]GetLastDocTimeStamp 1719147022 [12:50:05]current date 1719147062 [12:50:05]FM_GetShiftState [12:50:05]SAM_PROTO_GetShiftState [12:50:05]wFMCommunicate request_size=4 [12:50:05]MH_SAM_APDU [12:50:05]CAPDU: 80 13 01 00 [12:50:05]Write to MH i2c: E2 08 00 25 7D 80 13 01 00 00 00 00 00 1F [12:50:05]Write i2c OK [12:50:05]MH_I2C_Read... [12:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:06]Read from MH i2c: E2 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 0E 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 0E 00 25 7D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3D [12:50:06]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:50:06]wFMCommunicate OK [12:50:06]SAM_PROTO_GetShiftState done [12:50:06]FM_GetShiftState done [12:50:06]opened in 1719106490 [12:50:06]opened+sec_in_day 1719192890 [12:50:06]quantity*price = 7038 [12:50:06]sum+1 = 7039 [12:50:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.47 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 83 23.06.2024 12:51 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112482 ФПД: 102941819885407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125102&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112482&fm=102941819885407&tin=02508201610067®Number=0000000000092771&sum=7000 [12:50:07]StoreToDocumentArchive [12:50:07]shift 392 fd 112482 [12:50:07]save to /storage/0392/doc_00112482 [12:50:07]save last doc name /storage/0392/doc_00112482 to /storage/kkm_last_doc_name [12:50:07]save OK [12:50:07]Clear old archive folders... [12:50:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:07]tlvbuf is 01185600 [12:50:07]SAM_PROTO_ClearQueue [12:50:07]wFMCommunicate request_size=4 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 09 00 00 [12:50:07]Write to MH i2c: E2 08 00 32 7D 80 09 00 00 00 00 00 00 21 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 32 7D 00 90 00 23 [12:50:07]RAPDU: 90 00 [12:50:07]wFMCommunicate OK [12:50:07]SAM_PROTO_ClearQueue done [12:50:07]KKMCreateOFDPacket [12:50:07]OFDProtocolAddRootSTLVToBuf [12:50:07]FM_MakeSignedData [12:50:07]FM_MakeSignedData [12:50:07]SAM_PROTO_SignData [12:50:07]wFMCommunicate request_size=4 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 0D 01 02 [12:50:07]Write to MH i2c: E2 08 00 33 7D 80 0D 01 02 00 00 00 00 29 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 33 7D 00 90 00 24 [12:50:07]RAPDU: 90 00 [12:50:07]wFMCommunicate OK [12:50:07]wFMCommunicate request_size=255 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 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 EB 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 53 00 00 00 F4 03 04 00 36 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B7 01 00 35 04 06 00 5D [12:50:07]Write to MH i2c: E2 02 01 34 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 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 EB 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 53 00 00 00 F4 03 04 00 36 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B7 01 00 35 04 06 00 5D 00 00 8F [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 34 7D 00 90 00 25 [12:50:07]RAPDU: 90 00 [12:50:07]wFMCommunicate OK [12:50:07]wFMCommunicate request_size=10 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 0D 02 02 05 A0 02 9B 57 5F [12:50:07]Write to MH i2c: E2 0D 00 35 7D 80 0D 02 02 05 00 A0 02 9B 57 5F 00 00 29 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 35 7D 00 90 00 26 [12:50:07]RAPDU: 90 00 [12:50:07]wFMCommunicate OK [12:50:07]wFMCommunicate request_size=4 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 0D 03 02 [12:50:07]Write to MH i2c: E2 08 00 36 7D 80 0D 03 02 00 00 00 00 2E [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 0B 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 0B 00 36 7D 00 53 DC 5D E5 D4 3D 8F 18 90 00 58 [12:50:07]RAPDU: 53 DC 5D E5 D4 3D 8F 18 90 00 [12:50:07]wFMCommunicate OK [12:50:07]SAM_PROTO_SignData done [12:50:07]FM_MakeSignedData done [12:50:07]CreateOFDProtocolMessage [12:50:07]wFMCommunicate request_size=4 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 11 00 00 [12:50:07]Write to MH i2c: E2 08 00 37 7D 80 11 00 00 00 00 00 00 2E [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 17 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 17 00 37 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 80 [12:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:07]wFMCommunicate OK [12:50:07]CreateOFDProtocolMessage done [12:50:07]OFDSenderStorePacket 112482 [12:50:07]StoreOFDPacket docnum=112482 [12:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 D8 07 01 37 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 35 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 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 EB 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 53 00 00 00 F4 03 04 00 36 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B7 01 00 35 04 06 00 5D A0 02 9B 57 5F 53 DC 5D E5 D4 3D 8F 18 [12:50:07]CheckFolder [12:50:07]dirname=/storage/ofd_packets [12:50:07]CheckFolder done [12:50:07]ProducePacketName [12:50:07]name=ofd_packets/00112482 [12:50:07]NVStorageSaveData ofd_packets/00112482 [12:50:07]File name is /storage/ofd_packets/00112482 [12:50:07]Write 301 bytes [12:50:07]NVStorageSaveData done [12:50:07]OFDSenderStorePacket done [12:50:07]KKMCreateOFDPacket done [12:50:07]NVStorageSaveData kkm_last_timestamp [12:50:07]File name is /storage/kkm_last_timestamp [12:50:07]Write 4 bytes [12:50:07]NVStorageSaveData done [12:50:07]ExternCall_PrintAddStr [12:50:07]wPrintStart [12:50:07]Write to MH i2c: 01 00 00 38 7D B5 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 07 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 07 00 38 7D 00 00 00 00 00 FF 0F CA [12:50:07]RasterBufferAndPrint [12:50:07]line Счет N : (1)321161 [12:50:07]line ИНН: 02508201610067 [12:50:07]line Контрольно-Кассовый Чек [12:50:07]line ПРОДАЖА [12:50:07]line ТРК (МРК, ГНК) : 11 [12:50:07]line Товар: 2710124130 [12:50:07]line Аи-92-К-5 [12:50:07]line 1.060 * 66.40 [12:50:07]line = 70.38 [12:50:07]line НДС 12% НСП 1% [12:50:07]line > о реализуемом товаре [12:50:07]line ОКРУГЛЕНИЕ: -0.38 [12:50:07]line ИТОГО: 70.00 [12:50:07]line Внесено: 70.00 [12:50:07]line СДАЧА: 0.00 [12:50:07]line НСП 1% : 0.62 [12:50:07]line НДС 12% : 7.47 [12:50:07]line Наличными: 70.00 [12:50:07]line Безнал.: 0.00 [12:50:07]line Место: АЗС № 65 "Партнер Нефть" [12:50:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:50:07]line СНО: Общий режим [12:50:07]line Чек 83 23.06.2024 12:51 [12:50:07]line Смена: 392 ФФД: 1.0 [12:50:07]line ЗНМ: 0300000198 [12:50:07]line РНМ: 0000000000092771 [12:50:07]line Версия ККМ: 001 [12:50:07]line ФМ: 0000000000875083 [12:50:07]line ФД: 112482 [12:50:07]line ФПД: 102941819885407 [12:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125102&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112482&fm=102941819885407&tin=02508201610067®Number=0000000000092771&sum=7000 [12:50:08]OFD Sender: Processing packet 112482 [packets to send 38, broken 37] [12:50:08]ProducePacketName [12:50:08]name=ofd_packets/00112482 [12:50:08]OFD Sender: To server: pG, [12:50:08]CommunicateWithHost lk.salyk.kg:30040 [12:50:08]ConnectInit lk.salyk.kg [12:50:08]written 0, free lines is 4095 [12:50:08]Connected sock=10 [12:50:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 D8 07 01 37 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 35 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 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 EB 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 53 00 00 00 F4 03 04 00 36 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B7 01 00 35 04 06 00 5D A0 02 9B 57 5F 53 DC 5D E5 D4 3D 8F 18 [12:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AB A6 47 00 5D 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B7 01 00 F4 03 04 00 23 B1 77 66 B6 04 01 00 00 7A DF 99 D3 CA 58 66 34 [12:50:08]CommunicateWithHost err = 0 [12:50:08]CheckOFDResponse [12:50:08]1017 (14) - 77093643461234 [12:50:08]1041 (16) - 0000000000875083 [12:50:08]1040 (4) - 112482 [12:50:08]1012 (4) - 23.06.2024 05:22 [12:50:08]1206 (1) - 0 [12:50:08]OFD Sender: Remove packet 112482 [12:50:08]ProducePacketName [12:50:08]name=ofd_packets/00112482 [12:50:08]NVStorageDeleteData [12:50:08]Write to MH i2c: 01 00 00 63 7D E0 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 07 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: 01 07 00 63 7D 00 00 00 00 00 CB 0C BE [12:50:08]RasterBufferAndPrint [12:50:08]line [12:50:08]line [12:50:08]line [12:50:08]line [12:50:08]line [12:50:08]written 0, free lines is 3282 [12:50:08]MH_Cut [12:50:08]Write to MH i2c: D1 01 00 6A 7D 01 B9 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 01 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 01 00 6A 7D 00 B8 [12:50:08]Write to MH i2c: 01 00 00 6B 7D E8 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]OFD Sender: No OFD packet to send [12:50:09]*** Cut start [12:50:09]*** Partial cut [12:50:09]*** CUTSNS_PIN = 1 [12:50:09]*** CUTSNS_PIN = 0 [12:50:09]*** Brake cut motor [12:50:09]Read from MH i2c: 01 [12:50:09]MH_I2C_Read... [12:50:09]*** Stop cut motor [12:50:09]*** Cut end [12:50:09]Read from MH i2c: 01 07 00 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: 01 07 00 6B 7D 00 00 00 00 00 FF 0F FD [12:50:09]process_action close_receipt done [12:50:09]requested_data is exist [12:50:09]produce_requested_data [12:50:09]requested_item fm.sn is exist - process it [12:50:09]wFMCommunicate request_size=4 [12:50:09]MH_SAM_APDU [12:50:09]CAPDU: 80 11 00 00 [12:50:09]Write to MH i2c: E2 08 00 6C 7D 80 11 00 00 00 00 00 00 63 [12:50:09]Write i2c OK [12:50:09]MH_I2C_Read... [12:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:09]Read from MH i2c: E2 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: E2 17 00 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: E2 17 00 6C 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [12:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:09]wFMCommunicate OK [12:50:09]requested_item fd.num is exist - process it [12:50:09]SAM_PROTO_GetFieldsCounters [12:50:09]wFMCommunicate request_size=4 [12:50:09]MH_SAM_APDU [12:50:09]CAPDU: 80 13 00 00 [12:50:09]Write to MH i2c: E2 08 00 6D 7D 80 13 00 00 00 00 00 00 66 [12:50:09]Write i2c OK [12:50:09]MH_I2C_Read... [12:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:10]Read from MH i2c: E2 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 62 00 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 62 00 6D 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B7 01 00 0E 04 04 00 88 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 23 [12:50:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B7 01 00 0E 04 04 00 88 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 [12:50:10]wFMCommunicate OK [12:50:10]SAM_PROTO_GetFieldsCounters done [12:50:10]requested_item shift.num is exist - process it [12:50:10]requested_item shift.opened is exist - process it [12:50:10]req_shift_opened [12:50:10]FM_GetShiftState [12:50:10]SAM_PROTO_GetShiftState [12:50:10]wFMCommunicate request_size=4 [12:50:10]MH_SAM_APDU [12:50:10]CAPDU: 80 13 01 00 [12:50:10]Write to MH i2c: E2 08 00 6E 7D 80 13 01 00 00 00 00 00 68 [12:50:10]Write i2c OK [12:50:10]MH_I2C_Read... [12:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:10]Read from MH i2c: E2 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 0E 00 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 0E 00 6E 7D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 86 [12:50:10]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:50:10]wFMCommunicate OK [12:50:10]SAM_PROTO_GetShiftState done [12:50:10]FM_GetShiftState done [12:50:10]req_shift_opened done [12:50:10]requested_item shift.open_date is exist - process it [12:50:10]req_shift_open_date [12:50:10]req_shift_open_date done [12:50:10]produce_requested_data done [12:50:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112482,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:50:10]process_action_free close_receipt [12:50:10]json_value_free [12:50:10]json_value_free done [12:50:10]process_json_proto returns [12:50:10]Send response to host [12:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112482,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:50:10]free response buf [12:50:10]execute_script done [12:50:10]execute_script returns [12:50:10]free content buf [12:50:10]Sock 9.Close socket [12:50:10]Sock 9.Thread stoped [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:14]accept exits with 7 [12:51:14]New connection [12:51:14]New thread 3066813796 created [12:51:14]Thread 3066957156 joined [12:51:14]Waiting for new connection... [12:51:14] Sock 7.Parse request [12:51:14]Sock 7.Check first char [12:51:14]Sock 7.First char is OK [12:51:14]request: POST /json_proto HTTP/1.0 [12:51:14]Method: POST [12:51:14]URL: /json_proto [12:51:14]Method is POST - this is cgi request [12:51:14]url: /json_proto [12:51:14]query_string will be loaded in cgi processing [12:51:14]execute_cgi json_proto POST (null) [12:51:14]execute_cgi path=json_proto method=POST [12:51:14]POST find Content-Length [12:51:14]Host: 172.17.59.68:8080 [12:51:14]Content-Length: 805 [12:51:14]Content-Type: application/json [12:51:14] [12:51:14]POST finish read [12:51:14]Found Content-Length = 805 [12:51:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:14]execute_script... [12:51: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)321162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:14]POST & json_proto [12:51:14]process_json_proto [12:51:14]json parsed OK: [12:51:14]protocol is kg_v1.0 [12:51:14]action value=close_receipt [12:51:14]process_action close_receipt [12:51:14]cmd_close_receipt [12:51:14]MH_GetDate [12:51:14]Write to MH i2c: F0 00 00 6F 7D DB [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: F0 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: F0 09 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: F0 09 00 6F 7D 00 7A 1A 78 66 BC EC 60 65 C3 [12:51:14]GetLastDocTimeStamp 1719147062 [12:51:14]current date 1719147130 [12:51:14]FM_GetShiftState [12:51:14]SAM_PROTO_GetShiftState [12:51:14]wFMCommunicate request_size=4 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 13 01 00 [12:51:14]Write to MH i2c: E2 08 00 70 7D 80 13 01 00 00 00 00 00 6A [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 0E 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 0E 00 70 7D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 88 [12:51:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:51:14]wFMCommunicate OK [12:51:14]SAM_PROTO_GetShiftState done [12:51:14]FM_GetShiftState done [12:51:14]opened in 1719106490 [12:51:14]opened+sec_in_day 1719192890 [12:51:14]quantity*price = 50065 [12:51:14]sum+1 = 50067 [12:51:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 84 23.06.2024 12:52 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112483 ФПД: 50864200187707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112483&fm=50864200187707&tin=02508201610067®Number=0000000000092771&sum=50066 [12:51:15]StoreToDocumentArchive [12:51:15]shift 392 fd 112483 [12:51:15]save to /storage/0392/doc_00112483 [12:51:15]save last doc name /storage/0392/doc_00112483 to /storage/kkm_last_doc_name [12:51:15]save OK [12:51:15]Clear old archive folders... [12:51:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:15]tlvbuf is 01307450 [12:51:15]SAM_PROTO_ClearQueue [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 09 00 00 [12:51:15]Write to MH i2c: E2 08 00 7D 7D 80 09 00 00 00 00 00 00 6C [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 7D 7D 00 90 00 6E [12:51:15]RAPDU: 90 00 [12:51:15]wFMCommunicate OK [12:51:15]SAM_PROTO_ClearQueue done [12:51:15]KKMCreateOFDPacket [12:51:15]OFDProtocolAddRootSTLVToBuf [12:51:15]FM_MakeSignedData [12:51:15]FM_MakeSignedData [12:51:15]SAM_PROTO_SignData [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 0D 01 02 [12:51:15]Write to MH i2c: E2 08 00 7E 7D 80 0D 01 02 00 00 00 00 74 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 7E 7D 00 90 00 6F [12:51:15]RAPDU: 90 00 [12:51:15]wFMCommunicate OK [12:51:15]wFMCommunicate request_size=255 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7A 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B7 01 00 35 04 06 00 2E [12:51:15]Write to MH i2c: E2 02 01 7F 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7A 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B7 01 00 35 04 06 00 2E 00 00 44 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 7F 7D 00 90 00 70 [12:51:15]RAPDU: 90 00 [12:51:15]wFMCommunicate OK [12:51:15]wFMCommunicate request_size=10 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 0D 02 02 05 42 BE 95 7F 3B [12:51:15]Write to MH i2c: E2 0D 00 80 7D 80 0D 02 02 05 00 42 BE 95 7F 3B 00 00 D0 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 80 7D 00 90 00 71 [12:51:15]RAPDU: 90 00 [12:51:15]wFMCommunicate OK [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 0D 03 02 [12:51:15]Write to MH i2c: E2 08 00 81 7D 80 0D 03 02 00 00 00 00 79 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 0B 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 0B 00 81 7D 00 9E C1 2E 22 44 44 71 9C 90 00 BE [12:51:15]RAPDU: 9E C1 2E 22 44 44 71 9C 90 00 [12:51:15]wFMCommunicate OK [12:51:15]SAM_PROTO_SignData done [12:51:15]FM_MakeSignedData done [12:51:15]CreateOFDProtocolMessage [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 11 00 00 [12:51:15]Write to MH i2c: E2 08 00 82 7D 80 11 00 00 00 00 00 00 79 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 17 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 17 00 82 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CB [12:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:51:15]wFMCommunicate OK [12:51:15]CreateOFDProtocolMessage done [12:51:15]OFDSenderStorePacket 112483 [12:51:15]StoreOFDPacket docnum=112483 [12:51:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 02 E4 07 01 6E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7A 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B7 01 00 35 04 06 00 2E 42 BE 95 7F 3B 9E C1 2E 22 44 44 71 9C [12:51:15]CheckFolder [12:51:15]dirname=/storage/ofd_packets [12:51:15]CheckFolder done [12:51:15]ProducePacketName [12:51:15]name=ofd_packets/00112483 [12:51:15]NVStorageSaveData ofd_packets/00112483 [12:51:15]File name is /storage/ofd_packets/00112483 [12:51:15]Write 301 bytes [12:51:15]NVStorageSaveData done [12:51:15]OFDSenderStorePacket done [12:51:15]KKMCreateOFDPacket done [12:51:15]NVStorageSaveData kkm_last_timestamp [12:51:15]File name is /storage/kkm_last_timestamp [12:51:15]Write 4 bytes [12:51:15]NVStorageSaveData done [12:51:15]ExternCall_PrintAddStr [12:51:15]wPrintStart [12:51:15]Write to MH i2c: 01 00 00 83 7D 00 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: 01 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: 01 07 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: 01 07 00 83 7D 00 00 00 00 00 FF 0F 15 [12:51:15]RasterBufferAndPrint [12:51:15]line Счет N : (1)321162 [12:51:15]line ИНН: 02508201610067 [12:51:15]line Контрольно-Кассовый Чек [12:51:15]line ПРОДАЖА [12:51:15]line ТРК (МРК, ГНК) : 11 [12:51:15]line Товар: 2710124130 [12:51:15]line Аи-92-К-5 [12:51:15]line 7.540 * 66.40 [12:51:15]line = 500.66 [12:51:15]line НДС 12% НСП 1% [12:51:15]line > о реализуемом товаре [12:51:15]line ИТОГО: 500.66 [12:51:15]line НСП 1% : 4.43 [12:51:15]line НДС 12% : 53.17 [12:51:15]line Наличными: 0.00 [12:51:15]line Безнал.: 500.66 [12:51:15]line Место: АЗС № 65 "Партнер Нефть" [12:51:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:51:15]line СНО: Общий режим [12:51:15]line Чек 84 23.06.2024 12:52 [12:51:15]line Смена: 392 ФФД: 1.0 [12:51:15]line ЗНМ: 0300000198 [12:51:15]line РНМ: 0000000000092771 [12:51:15]line Версия ККМ: 001 [12:51:15]line Платежная система: О! деньги [12:51:15]line ФМ: 0000000000875083 [12:51:15]line ФД: 112483 [12:51:15]line ФПД: 50864200187707 [12:51:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112483&fm=50864200187707&tin=02508201610067®Number=0000000000092771&sum=50066 [12:51:16]written 0, free lines is 4095 [12:51:16]OFD Sender: Processing packet 112483 [packets to send 38, broken 37] [12:51:16]ProducePacketName [12:51:16]name=ofd_packets/00112483 [12:51:16]OFD Sender: To server: pG, [12:51:16]CommunicateWithHost lk.salyk.kg:30040 [12:51:16]ConnectInit lk.salyk.kg [12:51:16]Connected sock=10 [12:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 02 E4 07 01 6E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7A 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B7 01 00 35 04 06 00 2E 42 BE 95 7F 3B 9E C1 2E 22 44 44 71 9C [12:51:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D 3C 47 00 E4 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B7 01 00 F4 03 04 00 67 B1 77 66 B6 04 01 00 00 CD E0 D9 B8 74 7D B3 4F [12:51:16]CommunicateWithHost err = 0 [12:51:16]CheckOFDResponse [12:51:16]1017 (14) - 77093643461234 [12:51:16]1041 (16) - 0000000000875083 [12:51:16]1040 (4) - 112483 [12:51:16]1012 (4) - 23.06.2024 05:23 [12:51:16]1206 (1) - 0 [12:51:16]OFD Sender: Remove packet 112483 [12:51:16]ProducePacketName [12:51:16]name=ofd_packets/00112483 [12:51:16]NVStorageDeleteData [12:51:16]Write to MH i2c: 01 00 00 AD 7D 2A [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 07 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 07 00 AD 7D 00 00 00 00 00 E0 0C 1D [12:51:16]RasterBufferAndPrint [12:51:16]line [12:51:16]line [12:51:16]line [12:51:16]line [12:51:16]line [12:51:16]written 0, free lines is 3302 [12:51:16]MH_Cut [12:51:16]Write to MH i2c: D1 01 00 B4 7D 01 03 [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: D1 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: D1 01 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: D1 01 00 B4 7D 00 02 [12:51:16]Write to MH i2c: 01 00 00 B5 7D 32 [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:17]OFD Sender: No OFD packet to send [12:51:17]*** Cut start [12:51:17]*** Partial cut [12:51:17]*** CUTSNS_PIN = 1 [12:51:17]*** CUTSNS_PIN = 0 [12:51:17]*** Brake cut motor [12:51:18]Read from MH i2c: 01 [12:51:18]MH_I2C_Read... [12:51:18]*** Stop cut motor [12:51:18]*** Cut end [12:51:18]Read from MH i2c: 01 07 00 [12:51:18]MH_I2C_Read... [12:51:18]Read from MH i2c: 01 07 00 B5 7D 00 00 00 00 00 FF 0F 47 [12:51:18]process_action close_receipt done [12:51:18]requested_data is exist [12:51:18]produce_requested_data [12:51:18]requested_item fm.sn is exist - process it [12:51:18]wFMCommunicate request_size=4 [12:51:18]MH_SAM_APDU [12:51:18]CAPDU: 80 11 00 00 [12:51:18]Write to MH i2c: E2 08 00 B6 7D 80 11 00 00 00 00 00 00 AD [12:51:18]Write i2c OK [12:51:18]MH_I2C_Read... [12:51:18]Read from MH i2c: E2 [12:51:18]MH_I2C_Read... [12:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:18]Read from MH i2c: E2 17 00 [12:51:18]MH_I2C_Read... [12:51:18]Read from MH i2c: E2 17 00 B6 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [12:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:51:18]wFMCommunicate OK [12:51:18]requested_item fd.num is exist - process it [12:51:18]SAM_PROTO_GetFieldsCounters [12:51:18]wFMCommunicate request_size=4 [12:51:18]MH_SAM_APDU [12:51:18]CAPDU: 80 13 00 00 [12:51:18]Write to MH i2c: E2 08 00 B7 7D 80 13 00 00 00 00 00 00 B0 [12:51:18]Write i2c OK [12:51:18]MH_I2C_Read... [12:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:18]Read from MH i2c: E2 [12:51:18]MH_I2C_Read... [12:51:18]Read from MH i2c: E2 62 00 [12:51:18]MH_I2C_Read... [12:51:18]Read from MH i2c: E2 62 00 B7 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B7 01 00 0E 04 04 00 88 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 71 [12:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B7 01 00 0E 04 04 00 88 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 [12:51:18]wFMCommunicate OK [12:51:18]SAM_PROTO_GetFieldsCounters done [12:51:18]requested_item shift.num is exist - process it [12:51:18]requested_item shift.opened is exist - process it [12:51:18]req_shift_opened [12:51:18]FM_GetShiftState [12:51:18]SAM_PROTO_GetShiftState [12:51:18]wFMCommunicate request_size=4 [12:51:18]MH_SAM_APDU [12:51:18]CAPDU: 80 13 01 00 [12:51:18]Write to MH i2c: E2 08 00 B8 7D 80 13 01 00 00 00 00 00 B2 [12:51:18]Write i2c OK [12:51:18]MH_I2C_Read... [12:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:18]Read from MH i2c: E2 [12:51:18]MH_I2C_Read... [12:51:18]Read from MH i2c: E2 0E 00 [12:51:18]MH_I2C_Read... [12:51:18]Read from MH i2c: E2 0E 00 B8 7D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D0 [12:51:18]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:51:18]wFMCommunicate OK [12:51:18]SAM_PROTO_GetShiftState done [12:51:18]FM_GetShiftState done [12:51:18]req_shift_opened done [12:51:18]requested_item shift.open_date is exist - process it [12:51:18]req_shift_open_date [12:51:18]req_shift_open_date done [12:51:18]produce_requested_data done [12:51:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112483,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:51:18]process_action_free close_receipt [12:51:18]json_value_free [12:51:18]json_value_free done [12:51:18]process_json_proto returns [12:51:18]Send response to host [12:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112483,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:51:18]free response buf [12:51:18]execute_script done [12:51:18]execute_script returns [12:51:18]free content buf [12:51:18]Sock 7.Close socket [12:51:18]Sock 7.Thread stoped [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:08]accept exits with 9 [12:52:08]New connection [12:52:08]New thread 3066957156 created [12:52:08]Thread 3066813796 joined [12:52:08]Waiting for new connection... [12:52:08] Sock 9.Parse request [12:52:08]Sock 9.Check first char [12:52:08]Sock 9.First char is OK [12:52:08]request: POST /json_proto HTTP/1.0 [12:52:08]Method: POST [12:52:08]URL: /json_proto [12:52:08]Method is POST - this is cgi request [12:52:08]url: /json_proto [12:52:08]query_string will be loaded in cgi processing [12:52:08]execute_cgi json_proto POST (null) [12:52:08]execute_cgi path=json_proto method=POST [12:52:08]POST find Content-Length [12:52:08]Host: 172.17.59.68:8080 [12:52:08]Content-Length: 682 [12:52:08]Content-Type: application/json [12:52:08] [12:52:08]POST finish read [12:52:08]Found Content-Length = 682 [12:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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:52:08]execute_script... [12:52: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)321163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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:52:08]POST & json_proto [12:52:08]process_json_proto [12:52:08]json parsed OK: [12:52:08]protocol is kg_v1.0 [12:52:08]action value=close_receipt [12:52:08]process_action close_receipt [12:52:08]cmd_close_receipt [12:52:08]MH_GetDate [12:52:08]Write to MH i2c: F0 00 00 B9 7D 25 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: F0 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: F0 09 00 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: F0 09 00 B9 7D 00 B1 1A 78 66 BC EC 60 65 44 [12:52:08]GetLastDocTimeStamp 1719147130 [12:52:08]current date 1719147185 [12:52:08]FM_GetShiftState [12:52:08]SAM_PROTO_GetShiftState [12:52:08]wFMCommunicate request_size=4 [12:52:08]MH_SAM_APDU [12:52:08]CAPDU: 80 13 01 00 [12:52:08]Write to MH i2c: E2 08 00 BA 7D 80 13 01 00 00 00 00 00 B4 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:08]Read from MH i2c: E2 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 0E 00 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 0E 00 BA 7D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D2 [12:52:08]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:52:08]wFMCommunicate OK [12:52:08]SAM_PROTO_GetShiftState done [12:52:08]FM_GetShiftState done [12:52:08]opened in 1719106490 [12:52:08]opened+sec_in_day 1719192890 [12:52:08]quantity*price = 110024 [12:52:08]sum+1 = 110026 [12:52:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.84 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 85 23.06.2024 12:53 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112484 ФПД: 90387663171564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125305&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112484&fm=90387663171564&tin=02508201610067®Number=0000000000092771&sum=110000 [12:52:09]StoreToDocumentArchive [12:52:09]shift 392 fd 112484 [12:52:09]save to /storage/0392/doc_00112484 [12:52:09]save last doc name /storage/0392/doc_00112484 to /storage/kkm_last_doc_name [12:52:09]save OK [12:52:09]Clear old archive folders... [12:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:09]tlvbuf is 0114C1F0 [12:52:09]SAM_PROTO_ClearQueue [12:52:09]wFMCommunicate request_size=4 [12:52:09]MH_SAM_APDU [12:52:09]CAPDU: 80 09 00 00 [12:52:09]Write to MH i2c: E2 08 00 C7 7D 80 09 00 00 00 00 00 00 B6 [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 03 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 03 00 C7 7D 00 90 00 B8 [12:52:10]RAPDU: 90 00 [12:52:10]wFMCommunicate OK [12:52:10]SAM_PROTO_ClearQueue done [12:52:10]KKMCreateOFDPacket [12:52:10]OFDProtocolAddRootSTLVToBuf [12:52:10]FM_MakeSignedData [12:52:10]FM_MakeSignedData [12:52:10]SAM_PROTO_SignData [12:52:10]wFMCommunicate request_size=4 [12:52:10]MH_SAM_APDU [12:52:10]CAPDU: 80 0D 01 02 [12:52:10]Write to MH i2c: E2 08 00 C8 7D 80 0D 01 02 00 00 00 00 BE [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 03 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 03 00 C8 7D 00 90 00 B9 [12:52:10]RAPDU: 90 00 [12:52:10]wFMCommunicate OK [12:52:10]wFMCommunicate request_size=255 [12:52:10]MH_SAM_APDU [12:52:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 55 00 00 00 F4 03 04 00 B1 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B7 01 00 35 04 06 00 52 [12:52:10]Write to MH i2c: E2 02 01 C9 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 55 00 00 00 F4 03 04 00 B1 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B7 01 00 35 04 06 00 52 00 00 95 [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 03 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 03 00 C9 7D 00 90 00 BA [12:52:10]RAPDU: 90 00 [12:52:10]wFMCommunicate OK [12:52:10]wFMCommunicate request_size=10 [12:52:10]MH_SAM_APDU [12:52:10]CAPDU: 80 0D 02 02 05 35 04 8E 2F EC [12:52:10]Write to MH i2c: E2 0D 00 CA 7D 80 0D 02 02 05 00 35 04 8E 2F EC 00 00 AD [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 03 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 03 00 CA 7D 00 90 00 BB [12:52:10]RAPDU: 90 00 [12:52:10]wFMCommunicate OK [12:52:10]wFMCommunicate request_size=4 [12:52:10]MH_SAM_APDU [12:52:10]CAPDU: 80 0D 03 02 [12:52:10]Write to MH i2c: E2 08 00 CB 7D 80 0D 03 02 00 00 00 00 C3 [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 0B 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 0B 00 CB 7D 00 76 DC 0A F6 EA 48 D1 89 90 00 A2 [12:52:10]RAPDU: 76 DC 0A F6 EA 48 D1 89 90 00 [12:52:10]wFMCommunicate OK [12:52:10]SAM_PROTO_SignData done [12:52:10]FM_MakeSignedData done [12:52:10]CreateOFDProtocolMessage [12:52:10]wFMCommunicate request_size=4 [12:52:10]MH_SAM_APDU [12:52:10]CAPDU: 80 11 00 00 [12:52:10]Write to MH i2c: E2 08 00 CC 7D 80 11 00 00 00 00 00 00 C3 [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 17 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 17 00 CC 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [12:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:52:10]wFMCommunicate OK [12:52:10]CreateOFDProtocolMessage done [12:52:10]OFDSenderStorePacket 112484 [12:52:10]StoreOFDPacket docnum=112484 [12:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A1 72 07 01 5D 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 55 00 00 00 F4 03 04 00 B1 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B7 01 00 35 04 06 00 52 35 04 8E 2F EC 76 DC 0A F6 EA 48 D1 89 [12:52:10]CheckFolder [12:52:10]dirname=/storage/ofd_packets [12:52:10]CheckFolder done [12:52:10]ProducePacketName [12:52:10]name=ofd_packets/00112484 [12:52:10]NVStorageSaveData ofd_packets/00112484 [12:52:10]File name is /storage/ofd_packets/00112484 [12:52:10]Write 301 bytes [12:52:10]NVStorageSaveData done [12:52:10]OFDSenderStorePacket done [12:52:10]KKMCreateOFDPacket done [12:52:10]NVStorageSaveData kkm_last_timestamp [12:52:10]File name is /storage/kkm_last_timestamp [12:52:10]Write 4 bytes [12:52:10]NVStorageSaveData done [12:52:10]ExternCall_PrintAddStr [12:52:10]wPrintStart [12:52:10]Write to MH i2c: 01 00 00 CD 7D 4A [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 07 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 07 00 CD 7D 00 00 00 00 00 FF 0F 5F [12:52:10]RasterBufferAndPrint [12:52:10]line Счет N : (1)321163 [12:52:10]line ИНН: 02508201610067 [12:52:10]line Контрольно-Кассовый Чек [12:52:10]line ПРОДАЖА [12:52:10]line ТРК (МРК, ГНК) : 11 [12:52:10]line Товар: 2710124130 [12:52:10]line Аи-92-К-5 [12:52:10]line 16.570 * 66.40 [12:52:10]line = 1100.25 [12:52:10]line НДС 12% НСП 1% [12:52:10]line > о реализуемом товаре [12:52:10]line ОКРУГЛЕНИЕ: -0.25 [12:52:10]line ИТОГО: 1100.00 [12:52:10]line Внесено: 1100.00 [12:52:10]line СДАЧА: 0.00 [12:52:10]line НСП 1% : 9.74 [12:52:10]line НДС 12% : 116.84 [12:52:10]line Наличными: 1100.00 [12:52:10]line Безнал.: 0.00 [12:52:10]line Место: АЗС № 65 "Партнер Нефть" [12:52:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:52:10]line СНО: Общий режим [12:52:10]line Чек 85 23.06.2024 12:53 [12:52:10]line Смена: 392 ФФД: 1.0 [12:52:10]line ЗНМ: 0300000198 [12:52:10]line РНМ: 0000000000092771 [12:52:10]line Версия ККМ: 001 [12:52:10]line ФМ: 0000000000875083 [12:52:10]line ФД: 112484 [12:52:10]line ФПД: 90387663171564 [12:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125305&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112484&fm=90387663171564&tin=02508201610067®Number=0000000000092771&sum=110000 [12:52:10]OFD Sender: Processing packet 112484 [packets to send 38, broken 37] [12:52:10]ProducePacketName [12:52:10]name=ofd_packets/00112484 [12:52:10]OFD Sender: To server: pG, [12:52:10]CommunicateWithHost lk.salyk.kg:30040 [12:52:10]ConnectInit lk.salyk.kg [12:52:10]written 0, free lines is 4095 [12:52:10]Connected sock=10 [12:52:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A1 72 07 01 5D 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 55 00 00 00 F4 03 04 00 B1 1A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B7 01 00 35 04 06 00 52 35 04 8E 2F EC 76 DC 0A F6 EA 48 D1 89 [12:52:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 93 47 00 F7 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B7 01 00 F4 03 04 00 9E B1 77 66 B6 04 01 00 00 D2 CD 2C DB ED 2F 0F 16 [12:52:11]CommunicateWithHost err = 0 [12:52:11]CheckOFDResponse [12:52:11]1017 (14) - 77093643461234 [12:52:11]1041 (16) - 0000000000875083 [12:52:11]1040 (4) - 112484 [12:52:11]1012 (4) - 23.06.2024 05:24 [12:52:11]1206 (1) - 0 [12:52:11]OFD Sender: Remove packet 112484 [12:52:11]ProducePacketName [12:52:11]name=ofd_packets/00112484 [12:52:11]NVStorageDeleteData [12:52:11]Write to MH i2c: 01 00 00 F8 7D 75 [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: 01 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: 01 07 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: 01 07 00 F8 7D 00 00 00 00 00 CC 0C 54 [12:52:11]RasterBufferAndPrint [12:52:11]line [12:52:11]line [12:52:11]line [12:52:11]line [12:52:11]line [12:52:11]written 0, free lines is 3282 [12:52:11]MH_Cut [12:52:11]Write to MH i2c: D1 01 00 FF 7D 01 4E [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: D1 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: D1 01 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: D1 01 00 FF 7D 00 4D [12:52:11]Write to MH i2c: 01 00 00 00 7E 7E [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]OFD Sender: No OFD packet to send [12:52:12]*** Cut start [12:52:12]*** Partial cut [12:52:12]*** CUTSNS_PIN = 1 [12:52:12]*** CUTSNS_PIN = 0 [12:52:12]*** Brake cut motor [12:52:12]Read from MH i2c: 01 [12:52:12]MH_I2C_Read... [12:52:12]*** Stop cut motor [12:52:12]*** Cut end [12:52:12]Read from MH i2c: 01 07 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: 01 07 00 00 7E 00 00 00 00 00 FF 0F 93 [12:52:12]process_action close_receipt done [12:52:12]requested_data is exist [12:52:12]produce_requested_data [12:52:12]requested_item fm.sn is exist - process it [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 11 00 00 [12:52:12]Write to MH i2c: E2 08 00 01 7E 80 11 00 00 00 00 00 00 F9 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 17 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 17 00 01 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [12:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:52:12]wFMCommunicate OK [12:52:12]requested_item fd.num is exist - process it [12:52:12]SAM_PROTO_GetFieldsCounters [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 13 00 00 [12:52:12]Write to MH i2c: E2 08 00 02 7E 80 13 00 00 00 00 00 00 FC [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 62 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 62 00 02 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B7 01 00 0E 04 04 00 88 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 C1 [12:52:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B7 01 00 0E 04 04 00 88 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 [12:52:12]wFMCommunicate OK [12:52:12]SAM_PROTO_GetFieldsCounters done [12:52:12]requested_item shift.num is exist - process it [12:52:12]requested_item shift.opened is exist - process it [12:52:12]req_shift_opened [12:52:12]FM_GetShiftState [12:52:12]SAM_PROTO_GetShiftState [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 13 01 00 [12:52:12]Write to MH i2c: E2 08 00 03 7E 80 13 01 00 00 00 00 00 FE [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 0E 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 0E 00 03 7E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 1C [12:52:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:52:12]wFMCommunicate OK [12:52:12]SAM_PROTO_GetShiftState done [12:52:12]FM_GetShiftState done [12:52:12]req_shift_opened done [12:52:12]requested_item shift.open_date is exist - process it [12:52:12]req_shift_open_date [12:52:12]req_shift_open_date done [12:52:12]produce_requested_data done [12:52:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112484,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:52:12]process_action_free close_receipt [12:52:12]json_value_free [12:52:12]json_value_free done [12:52:12]process_json_proto returns [12:52:12]Send response to host [12:52:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112484,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:52:12]free response buf [12:52:12]execute_script done [12:52:12]execute_script returns [12:52:12]free content buf [12:52:12]Sock 9.Close socket [12:52:12]Sock 9.Thread stoped [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:47]accept exits with 7 [12:54:47]New connection [12:54:47]New thread 3066813796 created [12:54:47]Thread 3066957156 joined [12:54:47]Waiting for new connection... [12:54:47] Sock 7.Parse request [12:54:47]Sock 7.Check first char [12:54:47]Sock 7.First char is OK [12:54:47]request: POST /json_proto HTTP/1.0 [12:54:47]Method: POST [12:54:47]URL: /json_proto [12:54:47]Method is POST - this is cgi request [12:54:47]url: /json_proto [12:54:47]query_string will be loaded in cgi processing [12:54:47]execute_cgi json_proto POST (null) [12:54:47]execute_cgi path=json_proto method=POST [12:54:47]POST find Content-Length [12:54:47]Host: 172.17.59.68:8080 [12:54:47]Content-Length: 677 [12:54:47]Content-Type: application/json [12:54:47] [12:54:47]POST finish read [12:54:47]Found Content-Length = 677 [12:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "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" ] } } [12:54:47]execute_script... [12:54: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)321164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "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" ] } } [12:54:47]POST & json_proto [12:54:47]process_json_proto [12:54:47]json parsed OK: [12:54:47]protocol is kg_v1.0 [12:54:47]action value=close_receipt [12:54:47]process_action close_receipt [12:54:47]cmd_close_receipt [12:54:47]MH_GetDate [12:54:47]Write to MH i2c: F0 00 00 04 7E 71 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: F0 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: F0 09 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: F0 09 00 04 7E 00 50 1B 78 66 BC EC 60 65 30 [12:54:47]GetLastDocTimeStamp 1719147185 [12:54:47]current date 1719147344 [12:54:47]FM_GetShiftState [12:54:47]SAM_PROTO_GetShiftState [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 13 01 00 [12:54:47]Write to MH i2c: E2 08 00 05 7E 80 13 01 00 00 00 00 00 00 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 0E 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 0E 00 05 7E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 1E [12:54:47]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:54:47]wFMCommunicate OK [12:54:47]SAM_PROTO_GetShiftState done [12:54:47]FM_GetShiftState done [12:54:47]opened in 1719106490 [12:54:47]opened+sec_in_day 1719192890 [12:54:47]quantity*price = 65005 [12:54:47]sum+1 = 65007 [12:54:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 86 23.06.2024 12:55 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112485 ФПД: 66380051830071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125544&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112485&fm=66380051830071&tin=02508201610067®Number=0000000000092771&sum=65000 [12:54:48]StoreToDocumentArchive [12:54:48]shift 392 fd 112485 [12:54:48]save to /storage/0392/doc_00112485 [12:54:48]save last doc name /storage/0392/doc_00112485 to /storage/kkm_last_doc_name [12:54:48]save OK [12:54:48]Clear old archive folders... [12:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:48]tlvbuf is 013228F0 [12:54:48]SAM_PROTO_ClearQueue [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 09 00 00 [12:54:48]Write to MH i2c: E2 08 00 12 7E 80 09 00 00 00 00 00 00 02 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 12 7E 00 90 00 04 [12:54:48]RAPDU: 90 00 [12:54:48]wFMCommunicate OK [12:54:48]SAM_PROTO_ClearQueue done [12:54:48]KKMCreateOFDPacket [12:54:48]OFDProtocolAddRootSTLVToBuf [12:54:48]FM_MakeSignedData [12:54:48]FM_MakeSignedData [12:54:48]SAM_PROTO_SignData [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 0D 01 02 [12:54:48]Write to MH i2c: E2 08 00 13 7E 80 0D 01 02 00 00 00 00 0A [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:49]Read from MH i2c: E2 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 03 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 03 00 13 7E 00 90 00 05 [12:54:49]RAPDU: 90 00 [12:54:49]wFMCommunicate OK [12:54:49]wFMCommunicate request_size=255 [12:54:49]MH_SAM_APDU [12:54:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 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 F7 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 56 00 00 00 F4 03 04 00 50 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B7 01 00 35 04 06 00 3C [12:54:49]Write to MH i2c: E2 02 01 14 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 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 F7 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 56 00 00 00 F4 03 04 00 50 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B7 01 00 35 04 06 00 3C 00 00 09 [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:49]Read from MH i2c: E2 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 03 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 03 00 14 7E 00 90 00 06 [12:54:49]RAPDU: 90 00 [12:54:49]wFMCommunicate OK [12:54:49]wFMCommunicate request_size=10 [12:54:49]MH_SAM_APDU [12:54:49]CAPDU: 80 0D 02 02 05 5F 4F 68 D5 37 [12:54:49]Write to MH i2c: E2 0D 00 15 7E 80 0D 02 02 05 00 5F 4F 68 D5 37 00 00 39 [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:49]Read from MH i2c: E2 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 03 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 03 00 15 7E 00 90 00 07 [12:54:49]RAPDU: 90 00 [12:54:49]wFMCommunicate OK [12:54:49]wFMCommunicate request_size=4 [12:54:49]MH_SAM_APDU [12:54:49]CAPDU: 80 0D 03 02 [12:54:49]Write to MH i2c: E2 08 00 16 7E 80 0D 03 02 00 00 00 00 0F [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:49]Read from MH i2c: E2 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 0B 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 0B 00 16 7E 00 97 F7 B7 CC E5 F5 80 5E 90 00 D9 [12:54:49]RAPDU: 97 F7 B7 CC E5 F5 80 5E 90 00 [12:54:49]wFMCommunicate OK [12:54:49]SAM_PROTO_SignData done [12:54:49]FM_MakeSignedData done [12:54:49]CreateOFDProtocolMessage [12:54:49]wFMCommunicate request_size=4 [12:54:49]MH_SAM_APDU [12:54:49]CAPDU: 80 11 00 00 [12:54:49]Write to MH i2c: E2 08 00 17 7E 80 11 00 00 00 00 00 00 0F [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:49]Read from MH i2c: E2 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 17 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 17 00 17 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [12:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:54:49]wFMCommunicate OK [12:54:49]CreateOFDProtocolMessage done [12:54:49]OFDSenderStorePacket 112485 [12:54:49]StoreOFDPacket docnum=112485 [12:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5C 45 07 01 43 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 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 F7 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 56 00 00 00 F4 03 04 00 50 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B7 01 00 35 04 06 00 3C 5F 4F 68 D5 37 97 F7 B7 CC E5 F5 80 5E [12:54:49]CheckFolder [12:54:49]dirname=/storage/ofd_packets [12:54:49]CheckFolder done [12:54:49]ProducePacketName [12:54:49]name=ofd_packets/00112485 [12:54:49]NVStorageSaveData ofd_packets/00112485 [12:54:49]File name is /storage/ofd_packets/00112485 [12:54:49]Write 301 bytes [12:54:49]NVStorageSaveData done [12:54:49]OFDSenderStorePacket done [12:54:49]KKMCreateOFDPacket done [12:54:49]NVStorageSaveData kkm_last_timestamp [12:54:49]File name is /storage/kkm_last_timestamp [12:54:49]Write 4 bytes [12:54:49]NVStorageSaveData done [12:54:49]ExternCall_PrintAddStr [12:54:49]wPrintStart [12:54:49]Write to MH i2c: 01 00 00 18 7E 96 [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: 01 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: 01 07 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: 01 07 00 18 7E 00 00 00 00 00 FF 0F AB [12:54:49]RasterBufferAndPrint [12:54:49]line Счет N : (1)321164 [12:54:49]line ИНН: 02508201610067 [12:54:49]line Контрольно-Кассовый Чек [12:54:49]line ПРОДАЖА [12:54:49]line ТРК (МРК, ГНК) : 11 [12:54:49]line Товар: 2710124130 [12:54:49]line Аи-92-К-5 [12:54:49]line 9.790 * 66.40 [12:54:49]line = 650.06 [12:54:49]line НДС 12% НСП 1% [12:54:49]line > о реализуемом товаре [12:54:49]line ОКРУГЛЕНИЕ: -0.06 [12:54:49]line ИТОГО: 650.00 [12:54:49]line Внесено: 650.00 [12:54:49]line СДАЧА: 0.00 [12:54:49]line НСП 1% : 5.75 [12:54:49]line НДС 12% : 69.03 [12:54:49]line Наличными: 650.00 [12:54:49]line Безнал.: 0.00 [12:54:49]line Место: АЗС № 65 "Партнер Нефть" [12:54:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:54:49]line СНО: Общий режим [12:54:49]line Чек 86 23.06.2024 12:55 [12:54:49]line Смена: 392 ФФД: 1.0 [12:54:49]line ЗНМ: 0300000198 [12:54:49]line РНМ: 0000000000092771 [12:54:49]line Версия ККМ: 001 [12:54:49]line ФМ: 0000000000875083 [12:54:49]line ФД: 112485 [12:54:49]line ФПД: 66380051830071 [12:54:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125544&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112485&fm=66380051830071&tin=02508201610067®Number=0000000000092771&sum=65000 [12:54:49]OFD Sender: Processing packet 112485 [packets to send 38, broken 37] [12:54:49]ProducePacketName [12:54:49]name=ofd_packets/00112485 [12:54:49]OFD Sender: To server: pG, [12:54:49]CommunicateWithHost lk.salyk.kg:30040 [12:54:49]ConnectInit lk.salyk.kg [12:54:49]written 0, free lines is 4095 [12:54:49]Connected sock=10 [12:54:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5C 45 07 01 43 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 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 F7 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 56 00 00 00 F4 03 04 00 50 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B7 01 00 35 04 06 00 3C 5F 4F 68 D5 37 97 F7 B7 CC E5 F5 80 5E [12:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D6 0F 47 00 CC CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B7 01 00 F4 03 04 00 3D B2 77 66 B6 04 01 00 00 F2 04 D2 C6 27 1B 47 91 [12:54:50]CommunicateWithHost err = 0 [12:54:50]CheckOFDResponse [12:54:50]1017 (14) - 77093643461234 [12:54:50]1041 (16) - 0000000000875083 [12:54:50]1040 (4) - 112485 [12:54:50]1012 (4) - 23.06.2024 05:27 [12:54:50]1206 (1) - 0 [12:54:50]OFD Sender: Remove packet 112485 [12:54:50]ProducePacketName [12:54:50]name=ofd_packets/00112485 [12:54:50]NVStorageDeleteData [12:54:50]Write to MH i2c: 01 00 00 43 7E C1 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: 01 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: 01 07 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: 01 07 00 43 7E 00 00 00 00 00 CE 0C A2 [12:54:50]RasterBufferAndPrint [12:54:50]line [12:54:50]line [12:54:50]line [12:54:50]line [12:54:50]line [12:54:50]written 0, free lines is 3287 [12:54:50]MH_Cut [12:54:50]Write to MH i2c: D1 01 00 4A 7E 01 9A [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: D1 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: D1 01 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: D1 01 00 4A 7E 00 99 [12:54:50]Write to MH i2c: 01 00 00 4B 7E C9 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]OFD Sender: No OFD packet to send [12:54:51]*** Cut start [12:54:51]*** Partial cut [12:54:51]*** CUTSNS_PIN = 1 [12:54:51]*** CUTSNS_PIN = 0 [12:54:51]*** Brake cut motor [12:54:51]Read from MH i2c: 01 [12:54:51]MH_I2C_Read... [12:54:51]*** Stop cut motor [12:54:51]*** Cut end [12:54:51]Read from MH i2c: 01 07 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: 01 07 00 4B 7E 00 00 00 00 00 FF 0F DE [12:54:51]process_action close_receipt done [12:54:51]requested_data is exist [12:54:51]produce_requested_data [12:54:51]requested_item fm.sn is exist - process it [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 11 00 00 [12:54:51]Write to MH i2c: E2 08 00 4C 7E 80 11 00 00 00 00 00 00 44 [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 17 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 17 00 4C 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 96 [12:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:54:51]wFMCommunicate OK [12:54:51]requested_item fd.num is exist - process it [12:54:51]SAM_PROTO_GetFieldsCounters [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 13 00 00 [12:54:51]Write to MH i2c: E2 08 00 4D 7E 80 13 00 00 00 00 00 00 47 [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 62 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 62 00 4D 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B7 01 00 0E 04 04 00 88 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 10 [12:54:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B7 01 00 0E 04 04 00 88 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 [12:54:51]wFMCommunicate OK [12:54:51]SAM_PROTO_GetFieldsCounters done [12:54:51]requested_item shift.num is exist - process it [12:54:51]requested_item shift.opened is exist - process it [12:54:51]req_shift_opened [12:54:51]FM_GetShiftState [12:54:51]SAM_PROTO_GetShiftState [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 13 01 00 [12:54:51]Write to MH i2c: E2 08 00 4E 7E 80 13 01 00 00 00 00 00 49 [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 0E 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 0E 00 4E 7E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 67 [12:54:51]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:54:51]wFMCommunicate OK [12:54:51]SAM_PROTO_GetShiftState done [12:54:51]FM_GetShiftState done [12:54:51]req_shift_opened done [12:54:51]requested_item shift.open_date is exist - process it [12:54:51]req_shift_open_date [12:54:51]req_shift_open_date done [12:54:51]produce_requested_data done [12:54:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112485,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:54:51]process_action_free close_receipt [12:54:51]json_value_free [12:54:51]json_value_free done [12:54:51]process_json_proto returns [12:54:51]Send response to host [12:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112485,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:54:51]free response buf [12:54:51]execute_script done [12:54:51]execute_script returns [12:54:51]free content buf [12:54:51]Sock 7.Close socket [12:54:51]Sock 7.Thread stoped [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:00]accept exits with 9 [12:56:00]New connection [12:56:00]New thread 3066957156 created [12:56:00]Thread 3066813796 joined [12:56:00]Waiting for new connection... [12:56:00] Sock 9.Parse request [12:56:00]Sock 9.Check first char [12:56:00]Sock 9.First char is OK [12:56:00]request: POST /json_proto HTTP/1.0 [12:56:00]Method: POST [12:56:00]URL: /json_proto [12:56:00]Method is POST - this is cgi request [12:56:00]url: /json_proto [12:56:00]query_string will be loaded in cgi processing [12:56:00]execute_cgi json_proto POST (null) [12:56:00]execute_cgi path=json_proto method=POST [12:56:00]POST find Content-Length [12:56:00]Host: 172.17.59.68:8080 [12:56:00]Content-Length: 677 [12:56:00]Content-Type: application/json [12:56:00] [12:56:00]POST finish read [12:56:00]Found Content-Length = 677 [12:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:00]execute_script... [12:56:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:00]POST & json_proto [12:56:00]process_json_proto [12:56:00]json parsed OK: [12:56:00]protocol is kg_v1.0 [12:56:00]action value=close_receipt [12:56:00]process_action close_receipt [12:56:00]cmd_close_receipt [12:56:00]MH_GetDate [12:56:00]Write to MH i2c: F0 00 00 4F 7E BC [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: F0 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: F0 09 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: F0 09 00 4F 7E 00 99 1B 78 66 BC EC 60 65 C4 [12:56:00]GetLastDocTimeStamp 1719147344 [12:56:00]current date 1719147417 [12:56:00]FM_GetShiftState [12:56:00]SAM_PROTO_GetShiftState [12:56:00]wFMCommunicate request_size=4 [12:56:00]MH_SAM_APDU [12:56:00]CAPDU: 80 13 01 00 [12:56:00]Write to MH i2c: E2 08 00 50 7E 80 13 01 00 00 00 00 00 4B [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 0E 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 0E 00 50 7E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 69 [12:56:00]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:56:00]wFMCommunicate OK [12:56:00]SAM_PROTO_GetShiftState done [12:56:00]FM_GetShiftState done [12:56:00]opened in 1719106490 [12:56:00]opened+sec_in_day 1719192890 [12:56:00]quantity*price = 20052 [12:56:00]sum+1 = 20054 [12:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 87 23.06.2024 12:56 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112486 ФПД: 112049776534079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125657&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112486&fm=112049776534079&tin=02508201610067®Number=0000000000092771&sum=20000 [12:56:01]StoreToDocumentArchive [12:56:01]shift 392 fd 112486 [12:56:01]save to /storage/0392/doc_00112486 [12:56:01]save last doc name /storage/0392/doc_00112486 to /storage/kkm_last_doc_name [12:56:01]save OK [12:56:01]Clear old archive folders... [12:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:02]tlvbuf is 013A3AA0 [12:56:02]SAM_PROTO_ClearQueue [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 09 00 00 [12:56:02]Write to MH i2c: E2 08 00 5D 7E 80 09 00 00 00 00 00 00 4D [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 03 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 03 00 5D 7E 00 90 00 4F [12:56:02]RAPDU: 90 00 [12:56:02]wFMCommunicate OK [12:56:02]SAM_PROTO_ClearQueue done [12:56:02]KKMCreateOFDPacket [12:56:02]OFDProtocolAddRootSTLVToBuf [12:56:02]FM_MakeSignedData [12:56:02]FM_MakeSignedData [12:56:02]SAM_PROTO_SignData [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 0D 01 02 [12:56:02]Write to MH i2c: E2 08 00 5E 7E 80 0D 01 02 00 00 00 00 55 [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 03 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 03 00 5E 7E 00 90 00 50 [12:56:02]RAPDU: 90 00 [12:56:02]wFMCommunicate OK [12:56:02]wFMCommunicate request_size=255 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 57 00 00 00 F4 03 04 00 99 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B7 01 00 35 04 06 00 65 [12:56:02]Write to MH i2c: E2 02 01 5F 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 57 00 00 00 F4 03 04 00 99 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B7 01 00 35 04 06 00 65 00 00 BD [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 03 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 03 00 5F 7E 00 90 00 51 [12:56:02]RAPDU: 90 00 [12:56:02]wFMCommunicate OK [12:56:02]wFMCommunicate request_size=10 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 0D 02 02 05 E8 9F 20 A2 3F [12:56:02]Write to MH i2c: E2 0D 00 60 7E 80 0D 02 02 05 00 E8 9F 20 A2 3F 00 00 EA [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 03 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 03 00 60 7E 00 90 00 52 [12:56:02]RAPDU: 90 00 [12:56:02]wFMCommunicate OK [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 0D 03 02 [12:56:02]Write to MH i2c: E2 08 00 61 7E 80 0D 03 02 00 00 00 00 5A [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 0B 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 0B 00 61 7E 00 B6 C0 CB B4 58 89 8C CB 90 00 88 [12:56:02]RAPDU: B6 C0 CB B4 58 89 8C CB 90 00 [12:56:02]wFMCommunicate OK [12:56:02]SAM_PROTO_SignData done [12:56:02]FM_MakeSignedData done [12:56:02]CreateOFDProtocolMessage [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 62 7E 80 11 00 00 00 00 00 00 5A [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 62 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [12:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:56:02]wFMCommunicate OK [12:56:02]CreateOFDProtocolMessage done [12:56:02]OFDSenderStorePacket 112486 [12:56:02]StoreOFDPacket docnum=112486 [12:56:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 17 07 01 6F 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 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 57 00 00 00 F4 03 04 00 99 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B7 01 00 35 04 06 00 65 E8 9F 20 A2 3F B6 C0 CB B4 58 89 8C CB [12:56:02]CheckFolder [12:56:02]dirname=/storage/ofd_packets [12:56:02]CheckFolder done [12:56:02]ProducePacketName [12:56:02]name=ofd_packets/00112486 [12:56:02]NVStorageSaveData ofd_packets/00112486 [12:56:02]File name is /storage/ofd_packets/00112486 [12:56:02]Write 301 bytes [12:56:02]NVStorageSaveData done [12:56:02]OFDSenderStorePacket done [12:56:02]KKMCreateOFDPacket done [12:56:02]NVStorageSaveData kkm_last_timestamp [12:56:02]File name is /storage/kkm_last_timestamp [12:56:02]Write 4 bytes [12:56:02]NVStorageSaveData done [12:56:02]ExternCall_PrintAddStr [12:56:02]wPrintStart [12:56:02]Write to MH i2c: 01 00 00 63 7E E1 [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: 01 [12:56:02]MH_I2C_Read... [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 63 7E 00 00 00 00 00 FF 0F F6 [12:56:02]RasterBufferAndPrint [12:56:02]line Счет N : (1)321165 [12:56:02]line ИНН: 02508201610067 [12:56:02]line Контрольно-Кассовый Чек [12:56:02]line ПРОДАЖА [12:56:02]line ТРК (МРК, ГНК) : 11 [12:56:02]line Товар: 2710124130 [12:56:02]line Аи-92-К-5 [12:56:02]line 3.020 * 66.40 [12:56:02]line = 200.53 [12:56:02]line НДС 12% НСП 1% [12:56:02]line > о реализуемом товаре [12:56:02]line ОКРУГЛЕНИЕ: -0.53 [12:56:02]line ИТОГО: 200.00 [12:56:02]line Внесено: 200.00 [12:56:02]line СДАЧА: 0.00 [12:56:02]line НСП 1% : 1.77 [12:56:02]line НДС 12% : 21.29 [12:56:02]line Наличными: 200.00 [12:56:02]line Безнал.: 0.00 [12:56:02]line Место: АЗС № 65 "Партнер Нефть" [12:56:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:56:02]line СНО: Общий режим [12:56:02]line Чек 87 23.06.2024 12:56 [12:56:02]line Смена: 392 ФФД: 1.0 [12:56:02]line ЗНМ: 0300000198 [12:56:02]line РНМ: 0000000000092771 [12:56:02]line Версия ККМ: 001 [12:56:02]line ФМ: 0000000000875083 [12:56:02]line ФД: 112486 [12:56:02]line ФПД: 112049776534079 [12:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125657&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112486&fm=112049776534079&tin=02508201610067®Number=0000000000092771&sum=20000 [12:56:02]OFD Sender: Processing packet 112486 [packets to send 38, broken 37] [12:56:02]ProducePacketName [12:56:02]name=ofd_packets/00112486 [12:56:02]OFD Sender: To server: pG, [12:56:02]CommunicateWithHost lk.salyk.kg:30040 [12:56:02]ConnectInit lk.salyk.kg [12:56:02]written 0, free lines is 4095 [12:56:02]Connected sock=10 [12:56:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 17 07 01 6F 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 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 57 00 00 00 F4 03 04 00 99 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B7 01 00 35 04 06 00 65 E8 9F 20 A2 3F B6 C0 CB B4 58 89 8C CB [12:56:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 60 2A 47 00 C2 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B7 01 00 F4 03 04 00 86 B2 77 66 B6 04 01 00 00 5B 01 FF 4A 53 FC 26 79 [12:56:03]CommunicateWithHost err = 0 [12:56:03]CheckOFDResponse [12:56:03]1017 (14) - 77093643461234 [12:56:03]1041 (16) - 0000000000875083 [12:56:03]1040 (4) - 112486 [12:56:03]1012 (4) - 23.06.2024 05:28 [12:56:03]1206 (1) - 0 [12:56:03]OFD Sender: Remove packet 112486 [12:56:03]ProducePacketName [12:56:03]name=ofd_packets/00112486 [12:56:03]NVStorageDeleteData [12:56:03]Write to MH i2c: 01 00 00 8E 7E 0C [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: 01 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: 01 07 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: 01 07 00 8E 7E 00 00 00 00 00 CA 0C E9 [12:56:03]RasterBufferAndPrint [12:56:03]line [12:56:03]line [12:56:03]line [12:56:03]line [12:56:03]line [12:56:03]written 0, free lines is 3280 [12:56:03]MH_Cut [12:56:03]Write to MH i2c: D1 01 00 95 7E 01 E5 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: D1 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: D1 01 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: D1 01 00 95 7E 00 E4 [12:56:03]Write to MH i2c: 01 00 00 96 7E 14 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]OFD Sender: No OFD packet to send [12:56:04]*** Cut start [12:56:04]*** Partial cut [12:56:04]*** CUTSNS_PIN = 1 [12:56:04]*** CUTSNS_PIN = 0 [12:56:04]*** Brake cut motor [12:56:04]Read from MH i2c: 01 [12:56:04]MH_I2C_Read... [12:56:04]*** Stop cut motor [12:56:04]*** Cut end [12:56:04]Read from MH i2c: 01 07 00 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: 01 07 00 96 7E 00 00 00 00 00 FF 0F 29 [12:56:04]process_action close_receipt done [12:56:04]requested_data is exist [12:56:04]produce_requested_data [12:56:04]requested_item fm.sn is exist - process it [12:56:04]wFMCommunicate request_size=4 [12:56:04]MH_SAM_APDU [12:56:04]CAPDU: 80 11 00 00 [12:56:04]Write to MH i2c: E2 08 00 97 7E 80 11 00 00 00 00 00 00 8F [12:56:04]Write i2c OK [12:56:04]MH_I2C_Read... [12:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:04]Read from MH i2c: E2 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: E2 17 00 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: E2 17 00 97 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E1 [12:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:56:04]wFMCommunicate OK [12:56:04]requested_item fd.num is exist - process it [12:56:04]SAM_PROTO_GetFieldsCounters [12:56:04]wFMCommunicate request_size=4 [12:56:04]MH_SAM_APDU [12:56:04]CAPDU: 80 13 00 00 [12:56:04]Write to MH i2c: E2 08 00 98 7E 80 13 00 00 00 00 00 00 92 [12:56:04]Write i2c OK [12:56:04]MH_I2C_Read... [12:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:04]Read from MH i2c: E2 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: E2 62 00 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: E2 62 00 98 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B7 01 00 0E 04 04 00 88 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 5F [12:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B7 01 00 0E 04 04 00 88 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 [12:56:04]wFMCommunicate OK [12:56:04]SAM_PROTO_GetFieldsCounters done [12:56:04]requested_item shift.num is exist - process it [12:56:04]requested_item shift.opened is exist - process it [12:56:04]req_shift_opened [12:56:04]FM_GetShiftState [12:56:04]SAM_PROTO_GetShiftState [12:56:04]wFMCommunicate request_size=4 [12:56:04]MH_SAM_APDU [12:56:04]CAPDU: 80 13 01 00 [12:56:04]Write to MH i2c: E2 08 00 99 7E 80 13 01 00 00 00 00 00 94 [12:56:04]Write i2c OK [12:56:04]MH_I2C_Read... [12:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:04]Read from MH i2c: E2 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: E2 0E 00 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: E2 0E 00 99 7E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B2 [12:56:04]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:56:04]wFMCommunicate OK [12:56:04]SAM_PROTO_GetShiftState done [12:56:04]FM_GetShiftState done [12:56:04]req_shift_opened done [12:56:04]requested_item shift.open_date is exist - process it [12:56:04]req_shift_open_date [12:56:04]req_shift_open_date done [12:56:04]produce_requested_data done [12:56:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112486,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:56:04]process_action_free close_receipt [12:56:04]json_value_free [12:56:04]json_value_free done [12:56:04]process_json_proto returns [12:56:04]Send response to host [12:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112486,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:56:04]free response buf [12:56:04]execute_script done [12:56:04]execute_script returns [12:56:04]free content buf [12:56:04]Sock 9.Close socket [12:56:04]Sock 9.Thread stoped [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:20]accept exits with 7 [12:57:20]New connection [12:57:20]New thread 3066813796 created [12:57:20]Thread 3066957156 joined [12:57:20]Waiting for new connection... [12:57:20] Sock 7.Parse request [12:57:20]Sock 7.Check first char [12:57:20]Sock 7.First char is OK [12:57:20]request: POST /json_proto HTTP/1.0 [12:57:20]Method: POST [12:57:20]URL: /json_proto [12:57:20]Method is POST - this is cgi request [12:57:20]url: /json_proto [12:57:20]query_string will be loaded in cgi processing [12:57:20]execute_cgi json_proto POST (null) [12:57:20]execute_cgi path=json_proto method=POST [12:57:20]POST find Content-Length [12:57:20]Host: 172.17.59.68:8080 [12:57:20]Content-Length: 682 [12:57:20]Content-Type: application/json [12:57:20] [12:57:20]POST finish read [12:57:20]Found Content-Length = 682 [12:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.11, "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" ] } } [12:57:20]execute_script... [12:57: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)321166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.11, "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" ] } } [12:57:20]POST & json_proto [12:57:20]process_json_proto [12:57:20]json parsed OK: [12:57:20]protocol is kg_v1.0 [12:57:20]action value=close_receipt [12:57:20]process_action close_receipt [12:57:20]cmd_close_receipt [12:57:20]MH_GetDate [12:57:20]Write to MH i2c: F0 00 00 9A 7E 07 [12:57:20]Write i2c OK [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: F0 [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: F0 09 00 [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: F0 09 00 9A 7E 00 E9 1B 78 66 BC EC 60 65 5F [12:57:20]GetLastDocTimeStamp 1719147417 [12:57:20]current date 1719147497 [12:57:20]FM_GetShiftState [12:57:20]SAM_PROTO_GetShiftState [12:57:20]wFMCommunicate request_size=4 [12:57:20]MH_SAM_APDU [12:57:20]CAPDU: 80 13 01 00 [12:57:20]Write to MH i2c: E2 08 00 9B 7E 80 13 01 00 00 00 00 00 96 [12:57:20]Write i2c OK [12:57:20]MH_I2C_Read... [12:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:20]Read from MH i2c: E2 [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: E2 0E 00 [12:57:20]MH_I2C_Read... [12:57:20]Read from MH i2c: E2 0E 00 9B 7E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B4 [12:57:20]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:57:20]wFMCommunicate OK [12:57:20]SAM_PROTO_GetShiftState done [12:57:20]FM_GetShiftState done [12:57:20]opened in 1719106490 [12:57:20]opened+sec_in_day 1719192890 [12:57:20]quantity*price = 130011 [12:57:20]sum+1 = 130012 [12:57:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 88 23.06.2024 12:58 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112487 ФПД: 96673138475714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125817&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112487&fm=96673138475714&tin=02508201610067®Number=0000000000092771&sum=130000 [12:57:21]StoreToDocumentArchive [12:57:21]shift 392 fd 112487 [12:57:21]save to /storage/0392/doc_00112487 [12:57:21]save last doc name /storage/0392/doc_00112487 to /storage/kkm_last_doc_name [12:57:21]save OK [12:57:21]Clear old archive folders... [12:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:22]tlvbuf is 01307CF0 [12:57:22]SAM_PROTO_ClearQueue [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 09 00 00 [12:57:22]Write to MH i2c: E2 08 00 A8 7E 80 09 00 00 00 00 00 00 98 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 A8 7E 00 90 00 9A [12:57:22]RAPDU: 90 00 [12:57:22]wFMCommunicate OK [12:57:22]SAM_PROTO_ClearQueue done [12:57:22]KKMCreateOFDPacket [12:57:22]OFDProtocolAddRootSTLVToBuf [12:57:22]FM_MakeSignedData [12:57:22]FM_MakeSignedData [12:57:22]SAM_PROTO_SignData [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 0D 01 02 [12:57:22]Write to MH i2c: E2 08 00 A9 7E 80 0D 01 02 00 00 00 00 A0 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 A9 7E 00 90 00 9B [12:57:22]RAPDU: 90 00 [12:57:22]wFMCommunicate OK [12:57:22]wFMCommunicate request_size=255 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 58 00 00 00 F4 03 04 00 E9 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B7 01 00 35 04 06 00 57 [12:57:22]Write to MH i2c: E2 02 01 AA 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 58 00 00 00 F4 03 04 00 E9 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B7 01 00 35 04 06 00 57 00 00 C8 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 AA 7E 00 90 00 9C [12:57:22]RAPDU: 90 00 [12:57:22]wFMCommunicate OK [12:57:22]wFMCommunicate request_size=10 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 0D 02 02 05 EC 78 14 02 C2 [12:57:22]Write to MH i2c: E2 0D 00 AB 7E 80 0D 02 02 05 00 EC 78 14 02 C2 00 00 E9 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 AB 7E 00 90 00 9D [12:57:22]RAPDU: 90 00 [12:57:22]wFMCommunicate OK [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 0D 03 02 [12:57:22]Write to MH i2c: E2 08 00 AC 7E 80 0D 03 02 00 00 00 00 A5 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 0B 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 0B 00 AC 7E 00 62 EA FA 31 B9 04 D1 7F 90 00 2A [12:57:22]RAPDU: 62 EA FA 31 B9 04 D1 7F 90 00 [12:57:22]wFMCommunicate OK [12:57:22]SAM_PROTO_SignData done [12:57:22]FM_MakeSignedData done [12:57:22]CreateOFDProtocolMessage [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 11 00 00 [12:57:22]Write to MH i2c: E2 08 00 AD 7E 80 11 00 00 00 00 00 00 A5 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 17 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 17 00 AD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [12:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:57:22]wFMCommunicate OK [12:57:22]CreateOFDProtocolMessage done [12:57:22]OFDSenderStorePacket 112487 [12:57:22]StoreOFDPacket docnum=112487 [12:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 67 53 07 01 DC 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 58 00 00 00 F4 03 04 00 E9 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B7 01 00 35 04 06 00 57 EC 78 14 02 C2 62 EA FA 31 B9 04 D1 7F [12:57:22]CheckFolder [12:57:22]dirname=/storage/ofd_packets [12:57:22]CheckFolder done [12:57:22]ProducePacketName [12:57:22]name=ofd_packets/00112487 [12:57:22]NVStorageSaveData ofd_packets/00112487 [12:57:22]File name is /storage/ofd_packets/00112487 [12:57:22]Write 301 bytes [12:57:22]NVStorageSaveData done [12:57:22]OFDSenderStorePacket done [12:57:22]KKMCreateOFDPacket done [12:57:22]NVStorageSaveData kkm_last_timestamp [12:57:22]File name is /storage/kkm_last_timestamp [12:57:22]Write 4 bytes [12:57:22]NVStorageSaveData done [12:57:22]ExternCall_PrintAddStr [12:57:22]wPrintStart [12:57:22]Write to MH i2c: 01 00 00 AE 7E 2C [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: 01 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: 01 07 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: 01 07 00 AE 7E 00 00 00 00 00 FF 0F 41 [12:57:22]RasterBufferAndPrint [12:57:22]line Счет N : (1)321166 [12:57:22]line ИНН: 02508201610067 [12:57:22]line Контрольно-Кассовый Чек [12:57:22]line ПРОДАЖА [12:57:22]line ТРК (МРК, ГНК) : 11 [12:57:22]line Товар: 2710124130 [12:57:22]line Аи-92-К-5 [12:57:22]line 19.580 * 66.40 [12:57:22]line = 1300.11 [12:57:22]line НДС 12% НСП 1% [12:57:22]line > о реализуемом товаре [12:57:22]line ОКРУГЛЕНИЕ: -0.11 [12:57:22]line ИТОГО: 1300.00 [12:57:22]line Внесено: 1300.00 [12:57:22]line СДАЧА: 0.00 [12:57:22]line НСП 1% : 11.50 [12:57:22]line НДС 12% : 138.06 [12:57:22]line Наличными: 1300.00 [12:57:22]line Безнал.: 0.00 [12:57:22]line Место: АЗС № 65 "Партнер Нефть" [12:57:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:57:22]line СНО: Общий режим [12:57:22]line Чек 88 23.06.2024 12:58 [12:57:22]line Смена: 392 ФФД: 1.0 [12:57:22]line ЗНМ: 0300000198 [12:57:22]line РНМ: 0000000000092771 [12:57:22]line Версия ККМ: 001 [12:57:22]line ФМ: 0000000000875083 [12:57:22]line ФД: 112487 [12:57:22]line ФПД: 96673138475714 [12:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125817&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112487&fm=96673138475714&tin=02508201610067®Number=0000000000092771&sum=130000 [12:57:22]OFD Sender: Processing packet 112487 [packets to send 38, broken 37] [12:57:22]ProducePacketName [12:57:22]name=ofd_packets/00112487 [12:57:22]OFD Sender: To server: pG, [12:57:22]CommunicateWithHost lk.salyk.kg:30040 [12:57:22]ConnectInit lk.salyk.kg [12:57:22]written 0, free lines is 4095 [12:57:23]Connected sock=10 [12:57:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 67 53 07 01 DC 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 58 00 00 00 F4 03 04 00 E9 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B7 01 00 35 04 06 00 57 EC 78 14 02 C2 62 EA FA 31 B9 04 D1 7F [12:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D8 2C 47 00 60 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B7 01 00 F4 03 04 00 D6 B2 77 66 B6 04 01 00 00 EB 44 D1 A5 7D AF 2A 46 [12:57:23]CommunicateWithHost err = 0 [12:57:23]CheckOFDResponse [12:57:23]1017 (14) - 77093643461234 [12:57:23]1041 (16) - 0000000000875083 [12:57:23]1040 (4) - 112487 [12:57:23]1012 (4) - 23.06.2024 05:29 [12:57:23]1206 (1) - 0 [12:57:23]OFD Sender: Remove packet 112487 [12:57:23]ProducePacketName [12:57:23]name=ofd_packets/00112487 [12:57:23]NVStorageDeleteData [12:57:23]Write to MH i2c: 01 00 00 D9 7E 57 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 07 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 07 00 D9 7E 00 00 00 00 00 CD 0C 37 [12:57:23]RasterBufferAndPrint [12:57:23]line [12:57:23]line [12:57:23]line [12:57:23]line [12:57:23]line [12:57:23]written 0, free lines is 3283 [12:57:23]MH_Cut [12:57:23]Write to MH i2c: D1 01 00 E0 7E 01 30 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: D1 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: D1 01 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: D1 01 00 E0 7E 00 2F [12:57:23]Write to MH i2c: 01 00 00 E1 7E 5F [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]OFD Sender: No OFD packet to send [12:57:24]*** Cut start [12:57:24]*** Partial cut [12:57:24]*** CUTSNS_PIN = 1 [12:57:24]*** CUTSNS_PIN = 0 [12:57:24]*** Brake cut motor [12:57:24]Read from MH i2c: 01 [12:57:24]MH_I2C_Read... [12:57:24]*** Stop cut motor [12:57:24]*** Cut end [12:57:24]Read from MH i2c: 01 07 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: 01 07 00 E1 7E 00 00 00 00 00 FF 0F 74 [12:57:24]process_action close_receipt done [12:57:24]requested_data is exist [12:57:24]produce_requested_data [12:57:24]requested_item fm.sn is exist - process it [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 11 00 00 [12:57:24]Write to MH i2c: E2 08 00 E2 7E 80 11 00 00 00 00 00 00 DA [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 17 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 17 00 E2 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [12:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:57:24]wFMCommunicate OK [12:57:24]requested_item fd.num is exist - process it [12:57:24]SAM_PROTO_GetFieldsCounters [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 13 00 00 [12:57:24]Write to MH i2c: E2 08 00 E3 7E 80 13 00 00 00 00 00 00 DD [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 62 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 62 00 E3 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B7 01 00 0E 04 04 00 88 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 AE [12:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B7 01 00 0E 04 04 00 88 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 [12:57:24]wFMCommunicate OK [12:57:24]SAM_PROTO_GetFieldsCounters done [12:57:24]requested_item shift.num is exist - process it [12:57:24]requested_item shift.opened is exist - process it [12:57:24]req_shift_opened [12:57:24]FM_GetShiftState [12:57:24]SAM_PROTO_GetShiftState [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 13 01 00 [12:57:24]Write to MH i2c: E2 08 00 E4 7E 80 13 01 00 00 00 00 00 DF [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 0E 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 0E 00 E4 7E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FD [12:57:24]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:57:24]wFMCommunicate OK [12:57:24]SAM_PROTO_GetShiftState done [12:57:24]FM_GetShiftState done [12:57:24]req_shift_opened done [12:57:24]requested_item shift.open_date is exist - process it [12:57:24]req_shift_open_date [12:57:24]req_shift_open_date done [12:57:24]produce_requested_data done [12:57:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112487,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:57:24]process_action_free close_receipt [12:57:24]json_value_free [12:57:24]json_value_free done [12:57:24]process_json_proto returns [12:57:24]Send response to host [12:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112487,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:57:24]free response buf [12:57:24]execute_script done [12:57:24]execute_script returns [12:57:24]free content buf [12:57:24]Sock 7.Close socket [12:57:24]Sock 7.Thread stoped [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:41]accept exits with 9 [12:57:41]New connection [12:57:41]New thread 3066957156 created [12:57:41]Thread 3066813796 joined [12:57:41]Waiting for new connection... [12:57:41] Sock 9.Parse request [12:57:41]Sock 9.Check first char [12:57:41]Sock 9.First char is OK [12:57:41]request: POST /json_proto HTTP/1.0 [12:57:41]Method: POST [12:57:41]URL: /json_proto [12:57:41]Method is POST - this is cgi request [12:57:41]url: /json_proto [12:57:41]query_string will be loaded in cgi processing [12:57:41]execute_cgi json_proto POST (null) [12:57:41]execute_cgi path=json_proto method=POST [12:57:41]POST find Content-Length [12:57:41]Host: 172.17.59.68:8080 [12:57:41]Content-Length: 677 [12:57:41]Content-Type: application/json [12:57:41] [12:57:41]POST finish read [12:57:41]Found Content-Length = 677 [12:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:41]execute_script... [12:57: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)321167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:41]POST & json_proto [12:57:41]process_json_proto [12:57:41]json parsed OK: [12:57:41]protocol is kg_v1.0 [12:57:41]action value=close_receipt [12:57:41]process_action close_receipt [12:57:41]cmd_close_receipt [12:57:41]MH_GetDate [12:57:41]Write to MH i2c: F0 00 00 E5 7E 52 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: F0 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: F0 09 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: F0 09 00 E5 7E 00 FE 1B 78 66 BC EC 60 65 BF [12:57:41]GetLastDocTimeStamp 1719147497 [12:57:41]current date 1719147518 [12:57:41]FM_GetShiftState [12:57:41]SAM_PROTO_GetShiftState [12:57:41]wFMCommunicate request_size=4 [12:57:41]MH_SAM_APDU [12:57:41]CAPDU: 80 13 01 00 [12:57:41]Write to MH i2c: E2 08 00 E6 7E 80 13 01 00 00 00 00 00 E1 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:41]Read from MH i2c: E2 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 0E 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 0E 00 E6 7E 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FF [12:57:41]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:57:41]wFMCommunicate OK [12:57:41]SAM_PROTO_GetShiftState done [12:57:41]FM_GetShiftState done [12:57:41]opened in 1719106490 [12:57:41]opened+sec_in_day 1719192890 [12:57:41]quantity*price = 20052 [12:57:41]sum+1 = 20054 [12:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 89 23.06.2024 12:58 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112488 ФПД: 98459589048171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125838&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112488&fm=98459589048171&tin=02508201610067®Number=0000000000092771&sum=20000 [12:57:42]StoreToDocumentArchive [12:57:42]shift 392 fd 112488 [12:57:42]save to /storage/0392/doc_00112488 [12:57:42]save last doc name /storage/0392/doc_00112488 to /storage/kkm_last_doc_name [12:57:42]save OK [12:57:42]Clear old archive folders... [12:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:42]tlvbuf is 013E80A0 [12:57:42]SAM_PROTO_ClearQueue [12:57:42]wFMCommunicate request_size=4 [12:57:42]MH_SAM_APDU [12:57:42]CAPDU: 80 09 00 00 [12:57:42]Write to MH i2c: E2 08 00 F3 7E 80 09 00 00 00 00 00 00 E3 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:42]Read from MH i2c: E2 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 03 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 03 00 F3 7E 00 90 00 E5 [12:57:42]RAPDU: 90 00 [12:57:42]wFMCommunicate OK [12:57:42]SAM_PROTO_ClearQueue done [12:57:42]KKMCreateOFDPacket [12:57:42]OFDProtocolAddRootSTLVToBuf [12:57:42]FM_MakeSignedData [12:57:42]FM_MakeSignedData [12:57:42]SAM_PROTO_SignData [12:57:42]wFMCommunicate request_size=4 [12:57:42]MH_SAM_APDU [12:57:42]CAPDU: 80 0D 01 02 [12:57:42]Write to MH i2c: E2 08 00 F4 7E 80 0D 01 02 00 00 00 00 EB [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:42]Read from MH i2c: E2 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 03 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 03 00 F4 7E 00 90 00 E6 [12:57:42]RAPDU: 90 00 [12:57:42]wFMCommunicate OK [12:57:42]wFMCommunicate request_size=255 [12:57:42]MH_SAM_APDU [12:57: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 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 59 00 00 00 F4 03 04 00 FE 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B7 01 00 35 04 06 00 59 [12:57:42]Write to MH i2c: E2 02 01 F5 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 59 00 00 00 F4 03 04 00 FE 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B7 01 00 35 04 06 00 59 00 00 B0 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:42]Read from MH i2c: E2 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 03 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 03 00 F5 7E 00 90 00 E7 [12:57:42]RAPDU: 90 00 [12:57:42]wFMCommunicate OK [12:57:42]wFMCommunicate request_size=10 [12:57:42]MH_SAM_APDU [12:57:42]CAPDU: 80 0D 02 02 05 8C 68 D4 77 6B [12:57:42]Write to MH i2c: E2 0D 00 F6 7E 80 0D 02 02 05 00 8C 68 D4 77 6B 00 00 A2 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:42]Read from MH i2c: E2 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 03 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 03 00 F6 7E 00 90 00 E8 [12:57:42]RAPDU: 90 00 [12:57:42]wFMCommunicate OK [12:57:42]wFMCommunicate request_size=4 [12:57:42]MH_SAM_APDU [12:57:42]CAPDU: 80 0D 03 02 [12:57:42]Write to MH i2c: E2 08 00 F7 7E 80 0D 03 02 00 00 00 00 F0 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:42]Read from MH i2c: E2 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 0B 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 0B 00 F7 7E 00 81 BD 97 05 D2 56 0C 1E 90 00 1D [12:57:42]RAPDU: 81 BD 97 05 D2 56 0C 1E 90 00 [12:57:42]wFMCommunicate OK [12:57:42]SAM_PROTO_SignData done [12:57:42]FM_MakeSignedData done [12:57:42]CreateOFDProtocolMessage [12:57:42]wFMCommunicate request_size=4 [12:57:42]MH_SAM_APDU [12:57:42]CAPDU: 80 11 00 00 [12:57:42]Write to MH i2c: E2 08 00 F8 7E 80 11 00 00 00 00 00 00 F0 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:42]Read from MH i2c: E2 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 17 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 17 00 F8 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 42 [12:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:57:42]wFMCommunicate OK [12:57:42]CreateOFDProtocolMessage done [12:57:42]OFDSenderStorePacket 112488 [12:57:42]StoreOFDPacket docnum=112488 [12:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 27 07 01 A2 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 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 59 00 00 00 F4 03 04 00 FE 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B7 01 00 35 04 06 00 59 8C 68 D4 77 6B 81 BD 97 05 D2 56 0C 1E [12:57:42]CheckFolder [12:57:42]dirname=/storage/ofd_packets [12:57:42]CheckFolder done [12:57:42]ProducePacketName [12:57:42]name=ofd_packets/00112488 [12:57:42]NVStorageSaveData ofd_packets/00112488 [12:57:42]File name is /storage/ofd_packets/00112488 [12:57:42]Write 301 bytes [12:57:42]NVStorageSaveData done [12:57:42]OFDSenderStorePacket done [12:57:42]KKMCreateOFDPacket done [12:57:42]NVStorageSaveData kkm_last_timestamp [12:57:42]File name is /storage/kkm_last_timestamp [12:57:42]Write 4 bytes [12:57:42]NVStorageSaveData done [12:57:42]ExternCall_PrintAddStr [12:57:42]wPrintStart [12:57:42]Write to MH i2c: 01 00 00 F9 7E 77 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: 01 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: 01 07 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: 01 07 00 F9 7E 00 00 00 00 00 FF 0F 8C [12:57:42]RasterBufferAndPrint [12:57:42]line Счет N : (1)321167 [12:57:42]line ИНН: 02508201610067 [12:57:42]line Контрольно-Кассовый Чек [12:57:42]line ПРОДАЖА [12:57:42]line ТРК (МРК, ГНК) : 11 [12:57:42]line Товар: 2710124130 [12:57:42]line Аи-92-К-5 [12:57:42]line 3.020 * 66.40 [12:57:42]line = 200.53 [12:57:42]line НДС 12% НСП 1% [12:57:42]line > о реализуемом товаре [12:57:42]line ОКРУГЛЕНИЕ: -0.53 [12:57:42]line ИТОГО: 200.00 [12:57:42]line Внесено: 200.00 [12:57:42]line СДАЧА: 0.00 [12:57:42]line НСП 1% : 1.77 [12:57:42]line НДС 12% : 21.29 [12:57:42]line Наличными: 200.00 [12:57:42]line Безнал.: 0.00 [12:57:42]line Место: АЗС № 65 "Партнер Нефть" [12:57:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:57:42]line СНО: Общий режим [12:57:42]line Чек 89 23.06.2024 12:58 [12:57:42]line Смена: 392 ФФД: 1.0 [12:57:42]line ЗНМ: 0300000198 [12:57:42]line РНМ: 0000000000092771 [12:57:42]line Версия ККМ: 001 [12:57:42]line ФМ: 0000000000875083 [12:57:42]line ФД: 112488 [12:57:42]line ФПД: 98459589048171 [12:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125838&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112488&fm=98459589048171&tin=02508201610067®Number=0000000000092771&sum=20000 [12:57:43]OFD Sender: Processing packet 112488 [packets to send 38, broken 37] [12:57:43]ProducePacketName [12:57:43]name=ofd_packets/00112488 [12:57:43]OFD Sender: To server: pG, [12:57:43]CommunicateWithHost lk.salyk.kg:30040 [12:57:43]ConnectInit lk.salyk.kg [12:57:43]written 0, free lines is 4095 [12:57:43]Connected sock=10 [12:57:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 27 07 01 A2 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 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 59 00 00 00 F4 03 04 00 FE 1B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B7 01 00 35 04 06 00 59 8C 68 D4 77 6B 81 BD 97 05 D2 56 0C 1E [12:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2B 25 47 00 83 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 38 37 35 30 38 33 10 04 04 00 68 B7 01 00 F4 03 04 00 EA B2 77 66 B6 04 01 00 00 A7 4D 44 2E 7C 13 3F 3B [12:57:43]CommunicateWithHost err = 0 [12:57:43]CheckOFDResponse [12:57:43]1017 (14) - 77093643461234 [12:57:43]1041 (16) - 0000000000875083 [12:57:43]1040 (4) - 112488 [12:57:43]1012 (4) - 23.06.2024 05:30 [12:57:43]1206 (1) - 0 [12:57:43]OFD Sender: Remove packet 112488 [12:57:43]ProducePacketName [12:57:43]name=ofd_packets/00112488 [12:57:43]NVStorageDeleteData [12:57:43]Write to MH i2c: 01 00 00 24 7F A3 [12:57:43]Write i2c OK [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: 01 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: 01 07 00 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: 01 07 00 24 7F 00 00 00 00 00 D4 0C 8A [12:57:43]RasterBufferAndPrint [12:57:43]line [12:57:43]line [12:57:43]line [12:57:43]line [12:57:43]line [12:57:43]written 0, free lines is 3292 [12:57:43]MH_Cut [12:57:43]Write to MH i2c: D1 01 00 2B 7F 01 7C [12:57:43]Write i2c OK [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: D1 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: D1 01 00 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: D1 01 00 2B 7F 00 7B [12:57:43]Write to MH i2c: 01 00 00 2C 7F AB [12:57:43]Write i2c OK [12:57:43]MH_I2C_Read... [12:57:44]OFD Sender: No OFD packet to send [12:57:44]*** Cut start [12:57:44]*** Partial cut [12:57:44]*** CUTSNS_PIN = 1 [12:57:44]*** CUTSNS_PIN = 0 [12:57:44]*** Brake cut motor [12:57:45]Read from MH i2c: 01 [12:57:45]MH_I2C_Read... [12:57:45]*** Stop cut motor [12:57:45]*** Cut end [12:57:45]Read from MH i2c: 01 07 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: 01 07 00 2C 7F 00 00 00 00 00 FF 0F C0 [12:57:45]process_action close_receipt done [12:57:45]requested_data is exist [12:57:45]produce_requested_data [12:57:45]requested_item fm.sn is exist - process it [12:57:45]wFMCommunicate request_size=4 [12:57:45]MH_SAM_APDU [12:57:45]CAPDU: 80 11 00 00 [12:57:45]Write to MH i2c: E2 08 00 2D 7F 80 11 00 00 00 00 00 00 26 [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:45]Read from MH i2c: E2 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 17 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 17 00 2D 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 78 [12:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:57:45]wFMCommunicate OK [12:57:45]requested_item fd.num is exist - process it [12:57:45]SAM_PROTO_GetFieldsCounters [12:57:45]wFMCommunicate request_size=4 [12:57:45]MH_SAM_APDU [12:57:45]CAPDU: 80 13 00 00 [12:57:45]Write to MH i2c: E2 08 00 2E 7F 80 13 00 00 00 00 00 00 29 [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:45]Read from MH i2c: E2 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 62 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 62 00 2E 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B7 01 00 0E 04 04 00 88 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 FE [12:57:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B7 01 00 0E 04 04 00 88 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 [12:57:45]wFMCommunicate OK [12:57:45]SAM_PROTO_GetFieldsCounters done [12:57:45]requested_item shift.num is exist - process it [12:57:45]requested_item shift.opened is exist - process it [12:57:45]req_shift_opened [12:57:45]FM_GetShiftState [12:57:45]SAM_PROTO_GetShiftState [12:57:45]wFMCommunicate request_size=4 [12:57:45]MH_SAM_APDU [12:57:45]CAPDU: 80 13 01 00 [12:57:45]Write to MH i2c: E2 08 00 2F 7F 80 13 01 00 00 00 00 00 2B [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:45]Read from MH i2c: E2 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 0E 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 0E 00 2F 7F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 49 [12:57:45]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:57:45]wFMCommunicate OK [12:57:45]SAM_PROTO_GetShiftState done [12:57:45]FM_GetShiftState done [12:57:45]req_shift_opened done [12:57:45]requested_item shift.open_date is exist - process it [12:57:45]req_shift_open_date [12:57:45]req_shift_open_date done [12:57:45]produce_requested_data done [12:57:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112488,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:57:45]process_action_free close_receipt [12:57:45]json_value_free [12:57:45]json_value_free done [12:57:45]process_json_proto returns [12:57:45]Send response to host [12:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112488,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:57:45]free response buf [12:57:45]execute_script done [12:57:45]execute_script returns [12:57:45]free content buf [12:57:45]Sock 9.Close socket [12:57:45]Sock 9.Thread stoped [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:41]accept exits with 7 [12:58:41]New connection [12:58:41]New thread 3066813796 created [12:58:41]Thread 3066957156 joined [12:58:41]Waiting for new connection... [12:58:41] Sock 7.Parse request [12:58:41]Sock 7.Check first char [12:58:41]Sock 7.First char is OK [12:58:41]request: POST /json_proto HTTP/1.0 [12:58:41]Method: POST [12:58:41]URL: /json_proto [12:58:41]Method is POST - this is cgi request [12:58:41]url: /json_proto [12:58:41]query_string will be loaded in cgi processing [12:58:41]execute_cgi json_proto POST (null) [12:58:41]execute_cgi path=json_proto method=POST [12:58:41]POST find Content-Length [12:58:41]Host: 172.17.59.68:8080 [12:58:41]Content-Length: 677 [12:58:41]Content-Type: application/json [12:58:41] [12:58:41]POST finish read [12:58:41]Found Content-Length = 677 [12:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.080, "sum" : 470.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:41]execute_script... [12:58: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)321168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.080, "sum" : 470.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:41]POST & json_proto [12:58:41]process_json_proto [12:58:41]json parsed OK: [12:58:41]protocol is kg_v1.0 [12:58:41]action value=close_receipt [12:58:41]process_action close_receipt [12:58:41]cmd_close_receipt [12:58:41]MH_GetDate [12:58:41]Write to MH i2c: F0 00 00 30 7F 9E [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 09 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 09 00 30 7F 00 3A 1C 78 66 BC EC 60 65 48 [12:58:41]GetLastDocTimeStamp 1719147518 [12:58:41]current date 1719147578 [12:58:41]FM_GetShiftState [12:58:41]SAM_PROTO_GetShiftState [12:58:41]wFMCommunicate request_size=4 [12:58:41]MH_SAM_APDU [12:58:41]CAPDU: 80 13 01 00 [12:58:41]Write to MH i2c: E2 08 00 31 7F 80 13 01 00 00 00 00 00 2D [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:41]Read from MH i2c: E2 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 0E 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 0E 00 31 7F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4B [12:58:41]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:58:41]wFMCommunicate OK [12:58:41]SAM_PROTO_GetShiftState done [12:58:41]FM_GetShiftState done [12:58:41]opened in 1719106490 [12:58:41]opened+sec_in_day 1719192890 [12:58:41]quantity*price = 47011 [12:58:41]sum+1 = 47012 [12:58:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.92 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 90 23.06.2024 12:59 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112489 ФПД: 245453390755641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125938&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112489&fm=245453390755641&tin=02508201610067®Number=0000000000092771&sum=47000 [12:58:42]StoreToDocumentArchive [12:58:42]shift 392 fd 112489 [12:58:42]save to /storage/0392/doc_00112489 [12:58:42]save last doc name /storage/0392/doc_00112489 to /storage/kkm_last_doc_name [12:58:42]save OK [12:58:42]Clear old archive folders... [12:58:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:42]tlvbuf is B6DA9700 [12:58:42]SAM_PROTO_ClearQueue [12:58:42]wFMCommunicate request_size=4 [12:58:42]MH_SAM_APDU [12:58:42]CAPDU: 80 09 00 00 [12:58:42]Write to MH i2c: E2 08 00 3E 7F 80 09 00 00 00 00 00 00 2F [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:42]Read from MH i2c: E2 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 03 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 03 00 3E 7F 00 90 00 31 [12:58:42]RAPDU: 90 00 [12:58:42]wFMCommunicate OK [12:58:42]SAM_PROTO_ClearQueue done [12:58:42]KKMCreateOFDPacket [12:58:42]OFDProtocolAddRootSTLVToBuf [12:58:42]FM_MakeSignedData [12:58:42]FM_MakeSignedData [12:58:42]SAM_PROTO_SignData [12:58:42]wFMCommunicate request_size=4 [12:58:42]MH_SAM_APDU [12:58:42]CAPDU: 80 0D 01 02 [12:58:42]Write to MH i2c: E2 08 00 3F 7F 80 0D 01 02 00 00 00 00 37 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:42]Read from MH i2c: E2 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 03 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 03 00 3F 7F 00 90 00 32 [12:58:42]RAPDU: 90 00 [12:58:42]wFMCommunicate OK [12:58:42]wFMCommunicate request_size=255 [12:58:42]MH_SAM_APDU [12:58: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 35 FF 03 08 00 03 A8 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3A 1C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B7 01 00 35 04 06 00 DF [12:58:42]Write to MH i2c: E2 02 01 40 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3A 1C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B7 01 00 35 04 06 00 DF 00 00 50 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 40 7F 00 90 00 33 [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=10 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 02 02 05 3D 12 2A 37 39 [12:58:43]Write to MH i2c: E2 0D 00 41 7F 80 0D 02 02 05 00 3D 12 2A 37 39 00 00 2D [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 41 7F 00 90 00 34 [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 03 02 [12:58:43]Write to MH i2c: E2 08 00 42 7F 80 0D 03 02 00 00 00 00 3C [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 0B 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 0B 00 42 7F 00 17 FB CF EC 03 7D 82 19 90 00 25 [12:58:43]RAPDU: 17 FB CF EC 03 7D 82 19 90 00 [12:58:43]wFMCommunicate OK [12:58:43]SAM_PROTO_SignData done [12:58:43]FM_MakeSignedData done [12:58:43]CreateOFDProtocolMessage [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 11 00 00 [12:58:43]Write to MH i2c: E2 08 00 43 7F 80 11 00 00 00 00 00 00 3C [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 17 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 17 00 43 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8E [12:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:58:43]wFMCommunicate OK [12:58:43]CreateOFDProtocolMessage done [12:58:43]OFDSenderStorePacket 112489 [12:58:43]StoreOFDPacket docnum=112489 [12:58:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 F9 07 01 B9 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3A 1C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B7 01 00 35 04 06 00 DF 3D 12 2A 37 39 17 FB CF EC 03 7D 82 19 [12:58:43]CheckFolder [12:58:43]dirname=/storage/ofd_packets [12:58:43]CheckFolder done [12:58:43]ProducePacketName [12:58:43]name=ofd_packets/00112489 [12:58:43]NVStorageSaveData ofd_packets/00112489 [12:58:43]File name is /storage/ofd_packets/00112489 [12:58:43]Write 301 bytes [12:58:43]NVStorageSaveData done [12:58:43]OFDSenderStorePacket done [12:58:43]KKMCreateOFDPacket done [12:58:43]NVStorageSaveData kkm_last_timestamp [12:58:43]File name is /storage/kkm_last_timestamp [12:58:43]Write 4 bytes [12:58:43]NVStorageSaveData done [12:58:43]ExternCall_PrintAddStr [12:58:43]wPrintStart [12:58:43]Write to MH i2c: 01 00 00 44 7F C3 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 44 7F 00 00 00 00 00 FF 0F D8 [12:58:43]RasterBufferAndPrint [12:58:43]line Счет N : (1)321168 [12:58:43]line ИНН: 02508201610067 [12:58:43]line Контрольно-Кассовый Чек [12:58:43]line ПРОДАЖА [12:58:43]line ТРК (МРК, ГНК) : 11 [12:58:43]line Товар: 2710124130 [12:58:43]line Аи-92-К-5 [12:58:43]line 7.080 * 66.40 [12:58:43]line = 470.11 [12:58:43]line НДС 12% НСП 1% [12:58:43]line > о реализуемом товаре [12:58:43]line ОКРУГЛЕНИЕ: -0.11 [12:58:43]line ИТОГО: 470.00 [12:58:43]line Внесено: 470.00 [12:58:43]line СДАЧА: 0.00 [12:58:43]line НСП 1% : 4.16 [12:58:43]line НДС 12% : 49.92 [12:58:43]line Наличными: 470.00 [12:58:43]line Безнал.: 0.00 [12:58:43]line Место: АЗС № 65 "Партнер Нефть" [12:58:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:58:43]line СНО: Общий режим [12:58:43]line Чек 90 23.06.2024 12:59 [12:58:43]line Смена: 392 ФФД: 1.0 [12:58:43]line ЗНМ: 0300000198 [12:58:43]line РНМ: 0000000000092771 [12:58:43]line Версия ККМ: 001 [12:58:43]line ФМ: 0000000000875083 [12:58:43]line ФД: 112489 [12:58:43]line ФПД: 245453390755641 [12:58:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T125938&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112489&fm=245453390755641&tin=02508201610067®Number=0000000000092771&sum=47000 [12:58:43]OFD Sender: Processing packet 112489 [packets to send 38, broken 37] [12:58:43]ProducePacketName [12:58:43]name=ofd_packets/00112489 [12:58:43]OFD Sender: To server: pG, [12:58:43]CommunicateWithHost lk.salyk.kg:30040 [12:58:43]ConnectInit lk.salyk.kg [12:58:43]written 0, free lines is 4095 [12:58:43]Connected sock=10 [12:58:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 F9 07 01 B9 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3A 1C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B7 01 00 35 04 06 00 DF 3D 12 2A 37 39 17 FB CF EC 03 7D 82 19 [12:58:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 08 42 47 00 CE E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B7 01 00 F4 03 04 00 27 B3 77 66 B6 04 01 00 00 B1 BF 43 BB 06 2F CD FD [12:58:43]CommunicateWithHost err = 0 [12:58:43]CheckOFDResponse [12:58:43]1017 (14) - 77093643461234 [12:58:43]1041 (16) - 0000000000875083 [12:58:43]1040 (4) - 112489 [12:58:43]1012 (4) - 23.06.2024 05:31 [12:58:43]1206 (1) - 0 [12:58:43]OFD Sender: Remove packet 112489 [12:58:43]ProducePacketName [12:58:43]name=ofd_packets/00112489 [12:58:43]NVStorageDeleteData [12:58:44]Write to MH i2c: 01 00 00 6F 7F EE [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 6F 7F 00 00 00 00 00 D4 0C D5 [12:58:44]RasterBufferAndPrint [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]written 0, free lines is 3288 [12:58:44]MH_Cut [12:58:44]Write to MH i2c: D1 01 00 76 7F 01 C7 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 01 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 01 00 76 7F 00 C6 [12:58:44]Write to MH i2c: 01 00 00 77 7F F6 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]OFD Sender: No OFD packet to send [12:58:44]*** Cut start [12:58:44]*** Partial cut [12:58:44]*** CUTSNS_PIN = 1 [12:58:44]*** CUTSNS_PIN = 0 [12:58:45]*** Brake cut motor [12:58:45]Read from MH i2c: 01 [12:58:45]MH_I2C_Read... [12:58:45]*** Stop cut motor [12:58:45]*** Cut end [12:58:45]Read from MH i2c: 01 07 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: 01 07 00 77 7F 00 00 00 00 00 FF 0F 0B [12:58:45]process_action close_receipt done [12:58:45]requested_data is exist [12:58:45]produce_requested_data [12:58:45]requested_item fm.sn is exist - process it [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 11 00 00 [12:58:45]Write to MH i2c: E2 08 00 78 7F 80 11 00 00 00 00 00 00 71 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 17 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 17 00 78 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C3 [12:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:58:45]wFMCommunicate OK [12:58:45]requested_item fd.num is exist - process it [12:58:45]SAM_PROTO_GetFieldsCounters [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 13 00 00 [12:58:45]Write to MH i2c: E2 08 00 79 7F 80 13 00 00 00 00 00 00 74 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 62 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 62 00 79 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B7 01 00 0E 04 04 00 88 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 4D [12:58:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B7 01 00 0E 04 04 00 88 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 [12:58:45]wFMCommunicate OK [12:58:45]SAM_PROTO_GetFieldsCounters done [12:58:45]requested_item shift.num is exist - process it [12:58:45]requested_item shift.opened is exist - process it [12:58:45]req_shift_opened [12:58:45]FM_GetShiftState [12:58:45]SAM_PROTO_GetShiftState [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 13 01 00 [12:58:45]Write to MH i2c: E2 08 00 7A 7F 80 13 01 00 00 00 00 00 76 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 0E 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 0E 00 7A 7F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 94 [12:58:45]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:58:45]wFMCommunicate OK [12:58:45]SAM_PROTO_GetShiftState done [12:58:45]FM_GetShiftState done [12:58:45]req_shift_opened done [12:58:45]requested_item shift.open_date is exist - process it [12:58:45]req_shift_open_date [12:58:45]req_shift_open_date done [12:58:45]produce_requested_data done [12:58:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112489,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:58:45]process_action_free close_receipt [12:58:45]json_value_free [12:58:45]json_value_free done [12:58:45]process_json_proto returns [12:58:45]Send response to host [12:58:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112489,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:58:45]free response buf [12:58:45]execute_script done [12:58:45]execute_script returns [12:58:45]free content buf [12:58:45]Sock 7.Close socket [12:58:45]Sock 7.Thread stoped [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:43]accept exits with 9 [12:59:43]New connection [12:59:43]New thread 3066957156 created [12:59:43]Thread 3066813796 joined [12:59:43]Waiting for new connection... [12:59:43] Sock 9.Parse request [12:59:43]Sock 9.Check first char [12:59:43]Sock 9.First char is OK [12:59:43]request: POST /json_proto HTTP/1.0 [12:59:43]Method: POST [12:59:43]URL: /json_proto [12:59:43]Method is POST - this is cgi request [12:59:43]url: /json_proto [12:59:43]query_string will be loaded in cgi processing [12:59:43]execute_cgi json_proto POST (null) [12:59:43]execute_cgi path=json_proto method=POST [12:59:43]POST find Content-Length [12:59:43]Host: 172.17.59.68:8080 [12:59:43]Content-Length: 678 [12:59:43]Content-Type: application/json [12:59:43] [12:59:43]POST finish read [12:59:43]Found Content-Length = 678 [12:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "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" ] } } [12:59:43]execute_script... [12:59: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)321169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "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" ] } } [12:59:43]POST & json_proto [12:59:43]process_json_proto [12:59:43]json parsed OK: [12:59:43]protocol is kg_v1.0 [12:59:43]action value=close_receipt [12:59:43]process_action close_receipt [12:59:43]cmd_close_receipt [12:59:43]MH_GetDate [12:59:43]Write to MH i2c: F0 00 00 7B 7F E9 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: F0 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: F0 09 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: F0 09 00 7B 7F 00 78 1C 78 66 BC EC 60 65 D1 [12:59:43]GetLastDocTimeStamp 1719147578 [12:59:43]current date 1719147640 [12:59:43]FM_GetShiftState [12:59:43]SAM_PROTO_GetShiftState [12:59:43]wFMCommunicate request_size=4 [12:59:43]MH_SAM_APDU [12:59:43]CAPDU: 80 13 01 00 [12:59:43]Write to MH i2c: E2 08 00 7C 7F 80 13 01 00 00 00 00 00 78 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:43]Read from MH i2c: E2 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 0E 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 0E 00 7C 7F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 96 [12:59:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:59:43]wFMCommunicate OK [12:59:43]SAM_PROTO_GetShiftState done [12:59:43]FM_GetShiftState done [12:59:43]opened in 1719106490 [12:59:43]opened+sec_in_day 1719192890 [12:59:43]quantity*price = 80012 [12:59:43]sum+1 = 80013 [12:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 91 23.06.2024 13:00 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112490 ФПД: 156017236594045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112490&fm=156017236594045&tin=02508201610067®Number=0000000000092771&sum=80000 [12:59:44]StoreToDocumentArchive [12:59:44]shift 392 fd 112490 [12:59:44]save to /storage/0392/doc_00112490 [12:59:44]save last doc name /storage/0392/doc_00112490 to /storage/kkm_last_doc_name [12:59:44]save OK [12:59:44]Clear old archive folders... [12:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:44]tlvbuf is 0117FDA0 [12:59:44]SAM_PROTO_ClearQueue [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 09 00 00 [12:59:44]Write to MH i2c: E2 08 00 89 7F 80 09 00 00 00 00 00 00 7A [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 89 7F 00 90 00 7C [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]SAM_PROTO_ClearQueue done [12:59:44]KKMCreateOFDPacket [12:59:44]OFDProtocolAddRootSTLVToBuf [12:59:44]FM_MakeSignedData [12:59:44]FM_MakeSignedData [12:59:44]SAM_PROTO_SignData [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 01 02 [12:59:44]Write to MH i2c: E2 08 00 8A 7F 80 0D 01 02 00 00 00 00 82 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 8A 7F 00 90 00 7D [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]wFMCommunicate request_size=255 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 5B 00 00 00 F4 03 04 00 78 1C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B7 01 00 35 04 06 00 8D [12:59:44]Write to MH i2c: E2 02 01 8B 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 5B 00 00 00 F4 03 04 00 78 1C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B7 01 00 35 04 06 00 8D 00 00 2A [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]OFD Sender: No OFD packet to send [12:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 8B 7F 00 90 00 7E [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]wFMCommunicate request_size=10 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 02 02 05 E5 97 F7 4D 7D [12:59:44]Write to MH i2c: E2 0D 00 8C 7F 80 0D 02 02 05 00 E5 97 F7 4D 7D 00 00 CC [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 8C 7F 00 90 00 7F [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 03 02 [12:59:44]Write to MH i2c: E2 08 00 8D 7F 80 0D 03 02 00 00 00 00 87 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 0B 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 0B 00 8D 7F 00 84 97 88 F5 59 CE AF BA 90 00 B0 [12:59:44]RAPDU: 84 97 88 F5 59 CE AF BA 90 00 [12:59:44]wFMCommunicate OK [12:59:44]SAM_PROTO_SignData done [12:59:44]FM_MakeSignedData done [12:59:44]CreateOFDProtocolMessage [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 11 00 00 [12:59:44]Write to MH i2c: E2 08 00 8E 7F 80 11 00 00 00 00 00 00 87 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 17 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 17 00 8E 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D9 [12:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:59:44]wFMCommunicate OK [12:59:44]CreateOFDProtocolMessage done [12:59:44]OFDSenderStorePacket 112490 [12:59:44]StoreOFDPacket docnum=112490 [12:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 D5 07 01 42 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 5B 00 00 00 F4 03 04 00 78 1C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B7 01 00 35 04 06 00 8D E5 97 F7 4D 7D 84 97 88 F5 59 CE AF BA [12:59:44]CheckFolder [12:59:44]dirname=/storage/ofd_packets [12:59:44]CheckFolder done [12:59:44]ProducePacketName [12:59:44]name=ofd_packets/00112490 [12:59:44]NVStorageSaveData ofd_packets/00112490 [12:59:44]File name is /storage/ofd_packets/00112490 [12:59:44]Write 301 bytes [12:59:44]NVStorageSaveData done [12:59:44]OFDSenderStorePacket done [12:59:44]KKMCreateOFDPacket done [12:59:44]NVStorageSaveData kkm_last_timestamp [12:59:44]File name is /storage/kkm_last_timestamp [12:59:44]Write 4 bytes [12:59:44]NVStorageSaveData done [12:59:44]ExternCall_PrintAddStr [12:59:44]wPrintStart [12:59:44]Write to MH i2c: 01 00 00 8F 7F 0E [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 8F 7F 00 00 00 00 00 FF 0F 23 [12:59:44]RasterBufferAndPrint [12:59:44]line Счет N : (1)321169 [12:59:44]line ИНН: 02508201610067 [12:59:44]line Контрольно-Кассовый Чек [12:59:44]line ПРОДАЖА [12:59:44]line ТРК (МРК, ГНК) : 11 [12:59:44]line Товар: 2710124130 [12:59:44]line Аи-92-К-5 [12:59:44]line 12.050 * 66.40 [12:59:44]line = 800.12 [12:59:44]line НДС 12% НСП 1% [12:59:44]line > о реализуемом товаре [12:59:44]line ОКРУГЛЕНИЕ: -0.12 [12:59:44]line ИТОГО: 800.00 [12:59:44]line Внесено: 800.00 [12:59:44]line СДАЧА: 0.00 [12:59:44]line НСП 1% : 7.08 [12:59:44]line НДС 12% : 84.97 [12:59:44]line Наличными: 800.00 [12:59:44]line Безнал.: 0.00 [12:59:44]line Место: АЗС № 65 "Партнер Нефть" [12:59:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:59:44]line СНО: Общий режим [12:59:44]line Чек 91 23.06.2024 13:00 [12:59:44]line Смена: 392 ФФД: 1.0 [12:59:44]line ЗНМ: 0300000198 [12:59:44]line РНМ: 0000000000092771 [12:59:44]line Версия ККМ: 001 [12:59:44]line ФМ: 0000000000875083 [12:59:44]line ФД: 112490 [12:59:44]line ФПД: 156017236594045 [12:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112490&fm=156017236594045&tin=02508201610067®Number=0000000000092771&sum=80000 [12:59:45]OFD Sender: Processing packet 112490 [packets to send 38, broken 37] [12:59:45]ProducePacketName [12:59:45]name=ofd_packets/00112490 [12:59:45]OFD Sender: To server: pG, [12:59:45]CommunicateWithHost lk.salyk.kg:30040 [12:59:45]ConnectInit lk.salyk.kg [12:59:45]written 0, free lines is 4095 [12:59:45]Connected sock=10 [12:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 D5 07 01 42 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 5B 00 00 00 F4 03 04 00 78 1C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B7 01 00 35 04 06 00 8D E5 97 F7 4D 7D 84 97 88 F5 59 CE AF BA [12:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 58 E4 47 00 EB 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B7 01 00 F4 03 04 00 64 B3 77 66 B6 04 01 00 00 63 43 04 B4 83 66 D2 D0 [12:59:45]CommunicateWithHost err = 0 [12:59:45]CheckOFDResponse [12:59:45]1017 (14) - 77093643461234 [12:59:45]1041 (16) - 0000000000875083 [12:59:45]1040 (4) - 112490 [12:59:45]1012 (4) - 23.06.2024 05:32 [12:59:45]1206 (1) - 0 [12:59:45]OFD Sender: Remove packet 112490 [12:59:45]ProducePacketName [12:59:45]name=ofd_packets/00112490 [12:59:45]NVStorageDeleteData [12:59:45]Write to MH i2c: 01 00 00 BA 7F 39 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 07 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 07 00 BA 7F 00 00 00 00 00 CF 0C 1B [12:59:45]RasterBufferAndPrint [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]written 0, free lines is 3287 [12:59:45]MH_Cut [12:59:45]Write to MH i2c: D1 01 00 C1 7F 01 12 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 01 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 01 00 C1 7F 00 11 [12:59:45]Write to MH i2c: 01 00 00 C2 7F 41 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:46]OFD Sender: No OFD packet to send [12:59:46]*** Cut start [12:59:46]*** Partial cut [12:59:46]*** CUTSNS_PIN = 1 [12:59:46]*** CUTSNS_PIN = 0 [12:59:46]*** Brake cut motor [12:59:47]Read from MH i2c: 01 [12:59:47]MH_I2C_Read... [12:59:47]*** Stop cut motor [12:59:47]*** Cut end [12:59:47]Read from MH i2c: 01 07 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: 01 07 00 C2 7F 00 00 00 00 00 FF 0F 56 [12:59:47]process_action close_receipt done [12:59:47]requested_data is exist [12:59:47]produce_requested_data [12:59:47]requested_item fm.sn is exist - process it [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 11 00 00 [12:59:47]Write to MH i2c: E2 08 00 C3 7F 80 11 00 00 00 00 00 00 BC [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 17 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 17 00 C3 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0E [12:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:59:47]wFMCommunicate OK [12:59:47]requested_item fd.num is exist - process it [12:59:47]SAM_PROTO_GetFieldsCounters [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 13 00 00 [12:59:47]Write to MH i2c: E2 08 00 C4 7F 80 13 00 00 00 00 00 00 BF [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 62 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 62 00 C4 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B7 01 00 0E 04 04 00 88 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 9C [12:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B7 01 00 0E 04 04 00 88 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 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_GetFieldsCounters done [12:59:47]requested_item shift.num is exist - process it [12:59:47]requested_item shift.opened is exist - process it [12:59:47]req_shift_opened [12:59:47]FM_GetShiftState [12:59:47]SAM_PROTO_GetShiftState [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 13 01 00 [12:59:47]Write to MH i2c: E2 08 00 C5 7F 80 13 01 00 00 00 00 00 C1 [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0E 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0E 00 C5 7F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 DF [12:59:47]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_GetShiftState done [12:59:47]FM_GetShiftState done [12:59:47]req_shift_opened done [12:59:47]requested_item shift.open_date is exist - process it [12:59:47]req_shift_open_date [12:59:47]req_shift_open_date done [12:59:47]produce_requested_data done [12:59:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112490,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [12:59:47]process_action_free close_receipt [12:59:47]json_value_free [12:59:47]json_value_free done [12:59:47]process_json_proto returns [12:59:47]Send response to host [12:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112490,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [12:59:47]free response buf [12:59:47]execute_script done [12:59:47]execute_script returns [12:59:47]free content buf [12:59:47]Sock 9.Close socket [12:59:47]Sock 9.Thread stoped [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:26]accept exits with 7 [13:03:26]New connection [13:03:26]New thread 3066813796 created [13:03:26]Thread 3066957156 joined [13:03:26]Waiting for new connection... [13:03:26] Sock 7.Parse request [13:03:26]Sock 7.Check first char [13:03:26]Sock 7.First char is OK [13:03:26]request: POST /json_proto HTTP/1.0 [13:03:26]Method: POST [13:03:26]URL: /json_proto [13:03:26]Method is POST - this is cgi request [13:03:26]url: /json_proto [13:03:26]query_string will be loaded in cgi processing [13:03:26]execute_cgi json_proto POST (null) [13:03:26]execute_cgi path=json_proto method=POST [13:03:26]POST find Content-Length [13:03:26]Host: 172.17.59.68:8080 [13:03:26]Content-Length: 677 [13:03:26]Content-Type: application/json [13:03:26] [13:03:26]POST finish read [13:03:26]Found Content-Length = 677 [13:03:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:03:26]execute_script... [13:03: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)321170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:03:26]POST & json_proto [13:03:26]process_json_proto [13:03:26]json parsed OK: [13:03:26]protocol is kg_v1.0 [13:03:26]action value=close_receipt [13:03:26]process_action close_receipt [13:03:26]cmd_close_receipt [13:03:26]MH_GetDate [13:03:26]Write to MH i2c: F0 00 00 C6 7F 34 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: F0 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: F0 09 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: F0 09 00 C6 7F 00 57 1D 78 66 BC EC 60 65 FC [13:03:26]GetLastDocTimeStamp 1719147640 [13:03:26]current date 1719147863 [13:03:26]FM_GetShiftState [13:03:26]SAM_PROTO_GetShiftState [13:03:26]wFMCommunicate request_size=4 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 13 01 00 [13:03:26]Write to MH i2c: E2 08 00 C7 7F 80 13 01 00 00 00 00 00 C3 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 0E 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 0E 00 C7 7F 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E1 [13:03:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:03:26]wFMCommunicate OK [13:03:26]SAM_PROTO_GetShiftState done [13:03:26]FM_GetShiftState done [13:03:26]opened in 1719106490 [13:03:26]opened+sec_in_day 1719192890 [13:03:26]quantity*price = 30012 [13:03:26]sum+1 = 30014 [13:03:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 92 23.06.2024 13:04 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112491 ФПД: 56571855434655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130423&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112491&fm=56571855434655&tin=02508201610067®Number=0000000000092771&sum=30000 [13:03:27]StoreToDocumentArchive [13:03:27]shift 392 fd 112491 [13:03:27]save to /storage/0392/doc_00112491 [13:03:27]save last doc name /storage/0392/doc_00112491 to /storage/kkm_last_doc_name [13:03:27]save OK [13:03:27]Clear old archive folders... [13:03:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:27]tlvbuf is B6EDB610 [13:03:27]SAM_PROTO_ClearQueue [13:03:27]wFMCommunicate request_size=4 [13:03:27]MH_SAM_APDU [13:03:27]CAPDU: 80 09 00 00 [13:03:27]Write to MH i2c: E2 08 00 D4 7F 80 09 00 00 00 00 00 00 C5 [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: E2 [13:03:27]MH_I2C_Read... [13:03:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:27]Read from MH i2c: E2 03 00 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: E2 03 00 D4 7F 00 90 00 C7 [13:03:27]RAPDU: 90 00 [13:03:27]wFMCommunicate OK [13:03:27]SAM_PROTO_ClearQueue done [13:03:27]KKMCreateOFDPacket [13:03:27]OFDProtocolAddRootSTLVToBuf [13:03:27]FM_MakeSignedData [13:03:27]FM_MakeSignedData [13:03:27]SAM_PROTO_SignData [13:03:27]wFMCommunicate request_size=4 [13:03:27]MH_SAM_APDU [13:03:27]CAPDU: 80 0D 01 02 [13:03:27]Write to MH i2c: E2 08 00 D5 7F 80 0D 01 02 00 00 00 00 CD [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:27]Read from MH i2c: E2 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: E2 03 00 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: E2 03 00 D5 7F 00 90 00 C8 [13:03:27]RAPDU: 90 00 [13:03:27]wFMCommunicate OK [13:03:27]wFMCommunicate request_size=255 [13:03:27]MH_SAM_APDU [13:03:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 57 1D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B7 01 00 35 04 06 00 33 [13:03:27]Write to MH i2c: E2 02 01 D6 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 57 1D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B7 01 00 35 04 06 00 33 00 00 AC [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 03 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 03 00 D6 7F 00 90 00 C9 [13:03:28]RAPDU: 90 00 [13:03:28]wFMCommunicate OK [13:03:28]wFMCommunicate request_size=10 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 0D 02 02 05 73 A9 58 F3 9F [13:03:28]Write to MH i2c: E2 0D 00 D7 7F 80 0D 02 02 05 00 73 A9 58 F3 9F 00 00 E0 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 03 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 03 00 D7 7F 00 90 00 CA [13:03:28]RAPDU: 90 00 [13:03:28]wFMCommunicate OK [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 0D 03 02 [13:03:28]Write to MH i2c: E2 08 00 D8 7F 80 0D 03 02 00 00 00 00 D2 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0B 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0B 00 D8 7F 00 E9 2B 6D 88 CC 60 58 F4 90 00 54 [13:03:28]RAPDU: E9 2B 6D 88 CC 60 58 F4 90 00 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_SignData done [13:03:28]FM_MakeSignedData done [13:03:28]CreateOFDProtocolMessage [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 D9 7F 80 11 00 00 00 00 00 00 D2 [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 D9 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 24 [13:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:03:28]wFMCommunicate OK [13:03:28]CreateOFDProtocolMessage done [13:03:28]OFDSenderStorePacket 112491 [13:03:28]StoreOFDPacket docnum=112491 [13:03:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 49 2E 07 01 52 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 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 57 1D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B7 01 00 35 04 06 00 33 73 A9 58 F3 9F E9 2B 6D 88 CC 60 58 F4 [13:03:28]CheckFolder [13:03:28]dirname=/storage/ofd_packets [13:03:28]CheckFolder done [13:03:28]ProducePacketName [13:03:28]name=ofd_packets/00112491 [13:03:28]NVStorageSaveData ofd_packets/00112491 [13:03:28]File name is /storage/ofd_packets/00112491 [13:03:28]Write 301 bytes [13:03:28]NVStorageSaveData done [13:03:28]OFDSenderStorePacket done [13:03:28]KKMCreateOFDPacket done [13:03:28]NVStorageSaveData kkm_last_timestamp [13:03:28]File name is /storage/kkm_last_timestamp [13:03:28]Write 4 bytes [13:03:28]NVStorageSaveData done [13:03:28]ExternCall_PrintAddStr [13:03:28]wPrintStart [13:03:28]Write to MH i2c: 01 00 00 DA 7F 59 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: 01 [13:03:28]MH_I2C_Read... [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 DA 7F 00 00 00 00 00 FF 0F 6E [13:03:28]RasterBufferAndPrint [13:03:28]line Счет N : (1)321170 [13:03:28]line ИНН: 02508201610067 [13:03:28]line Контрольно-Кассовый Чек [13:03:28]line ПРОДАЖА [13:03:28]line ТРК (МРК, ГНК) : 11 [13:03:28]line Товар: 2710124130 [13:03:28]line Аи-92-К-5 [13:03:28]line 4.520 * 66.40 [13:03:28]line = 300.13 [13:03:28]line НДС 12% НСП 1% [13:03:28]line > о реализуемом товаре [13:03:28]line ОКРУГЛЕНИЕ: -0.13 [13:03:28]line ИТОГО: 300.00 [13:03:28]line Внесено: 300.00 [13:03:28]line СДАЧА: 0.00 [13:03:28]line НСП 1% : 2.66 [13:03:28]line НДС 12% : 31.87 [13:03:28]line Наличными: 300.00 [13:03:28]line Безнал.: 0.00 [13:03:28]line Место: АЗС № 65 "Партнер Нефть" [13:03:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:03:28]line СНО: Общий режим [13:03:28]line Чек 92 23.06.2024 13:04 [13:03:28]line Смена: 392 ФФД: 1.0 [13:03:28]line ЗНМ: 0300000198 [13:03:28]line РНМ: 0000000000092771 [13:03:28]line Версия ККМ: 001 [13:03:28]line ФМ: 0000000000875083 [13:03:28]line ФД: 112491 [13:03:28]line ФПД: 56571855434655 [13:03:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130423&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112491&fm=56571855434655&tin=02508201610067®Number=0000000000092771&sum=30000 [13:03:28]OFD Sender: Processing packet 112491 [packets to send 38, broken 37] [13:03:28]ProducePacketName [13:03:28]name=ofd_packets/00112491 [13:03:28]OFD Sender: To server: pG, [13:03:28]CommunicateWithHost lk.salyk.kg:30040 [13:03:28]ConnectInit lk.salyk.kg [13:03:28]written 0, free lines is 4095 [13:03:28]Connected sock=9 [13:03:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 49 2E 07 01 52 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 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 57 1D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B7 01 00 35 04 06 00 33 73 A9 58 F3 9F E9 2B 6D 88 CC 60 58 F4 [13:03:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5E B1 47 00 28 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B7 01 00 F4 03 04 00 44 B4 77 66 B6 04 01 00 00 06 34 20 E9 E5 FB CF 7E [13:03:28]CommunicateWithHost err = 0 [13:03:28]CheckOFDResponse [13:03:28]1017 (14) - 77093643461234 [13:03:28]1041 (16) - 0000000000875083 [13:03:28]1040 (4) - 112491 [13:03:28]1012 (4) - 23.06.2024 05:36 [13:03:28]1206 (1) - 0 [13:03:28]OFD Sender: Remove packet 112491 [13:03:28]ProducePacketName [13:03:28]name=ofd_packets/00112491 [13:03:28]NVStorageDeleteData [13:03:29]Write to MH i2c: 01 00 00 05 80 85 [13:03:29]Write i2c OK [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: 01 [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: 01 07 00 [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: 01 07 00 05 80 00 00 00 00 00 E4 0C 7C [13:03:29]RasterBufferAndPrint [13:03:29]line [13:03:29]line [13:03:29]line [13:03:29]line [13:03:29]line [13:03:29]written 0, free lines is 3309 [13:03:29]MH_Cut [13:03:29]Write to MH i2c: D1 01 00 0C 80 01 5E [13:03:29]Write i2c OK [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: D1 [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: D1 01 00 [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: D1 01 00 0C 80 00 5D [13:03:29]Write to MH i2c: 01 00 00 0D 80 8D [13:03:29]Write i2c OK [13:03:29]MH_I2C_Read... [13:03:29]OFD Sender: No OFD packet to send [13:03:29]*** Cut start [13:03:29]*** Partial cut [13:03:29]*** CUTSNS_PIN = 1 [13:03:29]*** CUTSNS_PIN = 0 [13:03:30]*** Brake cut motor [13:03:30]Read from MH i2c: 01 [13:03:30]MH_I2C_Read... [13:03:30]*** Stop cut motor [13:03:30]*** Cut end [13:03:30]Read from MH i2c: 01 07 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: 01 07 00 0D 80 00 00 00 00 00 FF 0F A2 [13:03:30]process_action close_receipt done [13:03:30]requested_data is exist [13:03:30]produce_requested_data [13:03:30]requested_item fm.sn is exist - process it [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 11 00 00 [13:03:30]Write to MH i2c: E2 08 00 0E 80 80 11 00 00 00 00 00 00 08 [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 17 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 17 00 0E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5A [13:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:03:30]wFMCommunicate OK [13:03:30]requested_item fd.num is exist - process it [13:03:30]SAM_PROTO_GetFieldsCounters [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 13 00 00 [13:03:30]Write to MH i2c: E2 08 00 0F 80 80 13 00 00 00 00 00 00 0B [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 62 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 62 00 0F 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B7 01 00 0E 04 04 00 88 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 EC [13:03:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B7 01 00 0E 04 04 00 88 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 [13:03:30]wFMCommunicate OK [13:03:30]SAM_PROTO_GetFieldsCounters done [13:03:30]requested_item shift.num is exist - process it [13:03:30]requested_item shift.opened is exist - process it [13:03:30]req_shift_opened [13:03:30]FM_GetShiftState [13:03:30]SAM_PROTO_GetShiftState [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 13 01 00 [13:03:30]Write to MH i2c: E2 08 00 10 80 80 13 01 00 00 00 00 00 0D [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 0E 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 0E 00 10 80 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2B [13:03:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:03:30]wFMCommunicate OK [13:03:30]SAM_PROTO_GetShiftState done [13:03:30]FM_GetShiftState done [13:03:30]req_shift_opened done [13:03:30]requested_item shift.open_date is exist - process it [13:03:30]req_shift_open_date [13:03:30]req_shift_open_date done [13:03:30]produce_requested_data done [13:03:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112491,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:03:30]process_action_free close_receipt [13:03:30]json_value_free [13:03:30]json_value_free done [13:03:30]process_json_proto returns [13:03:30]Send response to host [13:03:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112491,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:03:30]free response buf [13:03:30]execute_script done [13:03:30]execute_script returns [13:03:30]free content buf [13:03:30]Sock 7.Close socket [13:03:30]Sock 7.Thread stoped [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:10]accept exits with 10 [13:06:10]New connection [13:06:10]New thread 3066957156 created [13:06:10]Thread 3066813796 joined [13:06:10]Waiting for new connection... [13:06:10] Sock 10.Parse request [13:06:10]Sock 10.Check first char [13:06:10]Sock 10.First char is OK [13:06:10]request: POST /json_proto HTTP/1.0 [13:06:10]Method: POST [13:06:10]URL: /json_proto [13:06:10]Method is POST - this is cgi request [13:06:10]url: /json_proto [13:06:10]query_string will be loaded in cgi processing [13:06:10]execute_cgi json_proto POST (null) [13:06:10]execute_cgi path=json_proto method=POST [13:06:10]POST find Content-Length [13:06:10]Host: 172.17.59.68:8080 [13:06:10]Content-Length: 808 [13:06:10]Content-Type: application/json [13:06:10] [13:06:10]POST finish read [13:06:10]Found Content-Length = 808 [13:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:10]execute_script... [13:06: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)321171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:10]POST & json_proto [13:06:10]process_json_proto [13:06:10]json parsed OK: [13:06:10]protocol is kg_v1.0 [13:06:10]action value=close_receipt [13:06:10]process_action close_receipt [13:06:10]cmd_close_receipt [13:06:10]MH_GetDate [13:06:10]Write to MH i2c: F0 00 00 11 80 80 [13:06:10]Write i2c OK [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: F0 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: F0 09 00 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: F0 09 00 11 80 00 FB 1D 78 66 BC EC 60 65 EC [13:06:10]GetLastDocTimeStamp 1719147863 [13:06:10]current date 1719148027 [13:06:10]FM_GetShiftState [13:06:10]SAM_PROTO_GetShiftState [13:06:10]wFMCommunicate request_size=4 [13:06:10]MH_SAM_APDU [13:06:10]CAPDU: 80 13 01 00 [13:06:10]Write to MH i2c: E2 08 00 12 80 80 13 01 00 00 00 00 00 0F [13:06:10]Write i2c OK [13:06:10]MH_I2C_Read... [13:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:10]Read from MH i2c: E2 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: E2 0E 00 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: E2 0E 00 12 80 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2D [13:06:10]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:06:10]wFMCommunicate OK [13:06:10]SAM_PROTO_GetShiftState done [13:06:10]FM_GetShiftState done [13:06:10]opened in 1719106490 [13:06:10]opened+sec_in_day 1719192890 [13:06:10]quantity*price = 100064 [13:06:10]sum+1 = 100066 [13:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 93 23.06.2024 13:07 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112492 ФПД: 141880778368793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130707&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112492&fm=141880778368793&tin=02508201610067®Number=0000000000092771&sum=100065 [13:06:11]StoreToDocumentArchive [13:06:11]shift 392 fd 112492 [13:06:11]save to /storage/0392/doc_00112492 [13:06:11]save last doc name /storage/0392/doc_00112492 to /storage/kkm_last_doc_name [13:06:11]save OK [13:06:11]Clear old archive folders... [13:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:11]tlvbuf is 01333620 [13:06:11]SAM_PROTO_ClearQueue [13:06:11]wFMCommunicate request_size=4 [13:06:11]MH_SAM_APDU [13:06:11]CAPDU: 80 09 00 00 [13:06:11]Write to MH i2c: E2 08 00 1F 80 80 09 00 00 00 00 00 00 11 [13:06:11]Write i2c OK [13:06:11]MH_I2C_Read... [13:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:11]Read from MH i2c: E2 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 03 00 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 03 00 1F 80 00 90 00 13 [13:06:11]RAPDU: 90 00 [13:06:11]wFMCommunicate OK [13:06:11]SAM_PROTO_ClearQueue done [13:06:11]KKMCreateOFDPacket [13:06:11]OFDProtocolAddRootSTLVToBuf [13:06:11]FM_MakeSignedData [13:06:11]FM_MakeSignedData [13:06:11]SAM_PROTO_SignData [13:06:11]wFMCommunicate request_size=4 [13:06:11]MH_SAM_APDU [13:06:11]CAPDU: 80 0D 01 02 [13:06:11]Write to MH i2c: E2 08 00 20 80 80 0D 01 02 00 00 00 00 19 [13:06:11]Write i2c OK [13:06:11]MH_I2C_Read... [13:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:11]Read from MH i2c: E2 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 03 00 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 03 00 20 80 00 90 00 14 [13:06:11]RAPDU: 90 00 [13:06:11]wFMCommunicate OK [13:06:11]wFMCommunicate request_size=255 [13:06:11]MH_SAM_APDU [13:06:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 FB 1D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B7 01 00 35 04 06 00 81 [13:06:11]Write to MH i2c: E2 02 01 21 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 FB 1D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B7 01 00 35 04 06 00 81 00 00 20 [13:06:11]Write i2c OK [13:06:11]MH_I2C_Read... [13:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:12]Read from MH i2c: E2 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: E2 03 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: E2 03 00 21 80 00 90 00 15 [13:06:12]RAPDU: 90 00 [13:06:12]wFMCommunicate OK [13:06:12]wFMCommunicate request_size=10 [13:06:12]MH_SAM_APDU [13:06:12]CAPDU: 80 0D 02 02 05 0A 31 65 27 19 [13:06:12]Write to MH i2c: E2 0D 00 22 80 80 0D 02 02 05 00 0A 31 65 27 19 00 00 06 [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:12]Read from MH i2c: E2 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: E2 03 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: E2 03 00 22 80 00 90 00 16 [13:06:12]RAPDU: 90 00 [13:06:12]wFMCommunicate OK [13:06:12]wFMCommunicate request_size=4 [13:06:12]MH_SAM_APDU [13:06:12]CAPDU: 80 0D 03 02 [13:06:12]Write to MH i2c: E2 08 00 23 80 80 0D 03 02 00 00 00 00 1E [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:12]Read from MH i2c: E2 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: E2 0B 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: E2 0B 00 23 80 00 3F 1C B6 32 F1 20 AA E2 90 00 FF [13:06:12]RAPDU: 3F 1C B6 32 F1 20 AA E2 90 00 [13:06:12]wFMCommunicate OK [13:06:12]SAM_PROTO_SignData done [13:06:12]FM_MakeSignedData done [13:06:12]CreateOFDProtocolMessage [13:06:12]wFMCommunicate request_size=4 [13:06:12]MH_SAM_APDU [13:06:12]CAPDU: 80 11 00 00 [13:06:12]Write to MH i2c: E2 08 00 24 80 80 11 00 00 00 00 00 00 1E [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:12]Read from MH i2c: E2 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: E2 17 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: E2 17 00 24 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 70 [13:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:06:12]wFMCommunicate OK [13:06:12]CreateOFDProtocolMessage done [13:06:12]OFDSenderStorePacket 112492 [13:06:12]StoreOFDPacket docnum=112492 [13:06:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 3E 07 01 0A FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 FB 1D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B7 01 00 35 04 06 00 81 0A 31 65 27 19 3F 1C B6 32 F1 20 AA E2 [13:06:12]CheckFolder [13:06:12]dirname=/storage/ofd_packets [13:06:12]CheckFolder done [13:06:12]ProducePacketName [13:06:12]name=ofd_packets/00112492 [13:06:12]NVStorageSaveData ofd_packets/00112492 [13:06:12]File name is /storage/ofd_packets/00112492 [13:06:12]Write 301 bytes [13:06:12]NVStorageSaveData done [13:06:12]OFDSenderStorePacket done [13:06:12]KKMCreateOFDPacket done [13:06:12]NVStorageSaveData kkm_last_timestamp [13:06:12]File name is /storage/kkm_last_timestamp [13:06:12]Write 4 bytes [13:06:12]NVStorageSaveData done [13:06:12]ExternCall_PrintAddStr [13:06:12]wPrintStart [13:06:12]Write to MH i2c: 01 00 00 25 80 A5 [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 25 80 00 00 00 00 00 FF 0F BA [13:06:12]RasterBufferAndPrint [13:06:12]line Счет N : (1)321171 [13:06:12]line ИНН: 02508201610067 [13:06:12]line Контрольно-Кассовый Чек [13:06:12]line ПРОДАЖА [13:06:12]line ТРК (МРК, ГНК) : 11 [13:06:12]line Товар: 2710124130 [13:06:12]line Аи-92-К-5 [13:06:12]line 15.070 * 66.40 [13:06:12]line = 1000.65 [13:06:12]line НДС 12% НСП 1% [13:06:12]line > о реализуемом товаре [13:06:12]line ИТОГО: 1000.65 [13:06:12]line НСП 1% : 8.85 [13:06:12]line НДС 12% : 106.26 [13:06:12]line Наличными: 0.00 [13:06:12]line Безнал.: 1000.65 [13:06:12]line Место: АЗС № 65 "Партнер Нефть" [13:06:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:06:12]line СНО: Общий режим [13:06:12]line Чек 93 23.06.2024 13:07 [13:06:12]line Смена: 392 ФФД: 1.0 [13:06:12]line ЗНМ: 0300000198 [13:06:12]line РНМ: 0000000000092771 [13:06:12]line Версия ККМ: 001 [13:06:12]line Платежная система: О! деньги [13:06:12]line ФМ: 0000000000875083 [13:06:12]line ФД: 112492 [13:06:12]line ФПД: 141880778368793 [13:06:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130707&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112492&fm=141880778368793&tin=02508201610067®Number=0000000000092771&sum=100065 [13:06:12]written 0, free lines is 4095 [13:06:12]OFD Sender: Processing packet 112492 [packets to send 38, broken 37] [13:06:12]ProducePacketName [13:06:12]name=ofd_packets/00112492 [13:06:12]OFD Sender: To server: pG, [13:06:12]CommunicateWithHost lk.salyk.kg:30040 [13:06:12]ConnectInit lk.salyk.kg [13:06:12]Connected sock=9 [13:06:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 3E 07 01 0A FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 FB 1D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B7 01 00 35 04 06 00 81 0A 31 65 27 19 3F 1C B6 32 F1 20 AA E2 [13:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D5 B1 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 38 37 35 30 38 33 10 04 04 00 6C B7 01 00 F4 03 04 00 E8 B4 77 66 B6 04 01 00 00 C6 20 D4 4D FD 50 CC B1 [13:06:12]CommunicateWithHost err = 0 [13:06:12]CheckOFDResponse [13:06:12]1017 (14) - 77093643461234 [13:06:12]1041 (16) - 0000000000875083 [13:06:12]1040 (4) - 112492 [13:06:12]1012 (4) - 23.06.2024 05:38 [13:06:12]1206 (1) - 0 [13:06:12]OFD Sender: Remove packet 112492 [13:06:12]ProducePacketName [13:06:12]name=ofd_packets/00112492 [13:06:12]NVStorageDeleteData [13:06:13]Write to MH i2c: 01 00 00 4F 80 CF [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: 01 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: 01 07 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: 01 07 00 4F 80 00 00 00 00 00 F3 0C D5 [13:06:13]RasterBufferAndPrint [13:06:13]line [13:06:13]line [13:06:13]line [13:06:13]line [13:06:13]line [13:06:13]written 0, free lines is 3322 [13:06:13]MH_Cut [13:06:13]Write to MH i2c: D1 01 00 56 80 01 A8 [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: D1 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: D1 01 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: D1 01 00 56 80 00 A7 [13:06:13]Write to MH i2c: 01 00 00 57 80 D7 [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]OFD Sender: No OFD packet to send [13:06:13]*** Cut start [13:06:13]*** Partial cut [13:06:13]*** CUTSNS_PIN = 1 [13:06:13]*** CUTSNS_PIN = 0 [13:06:14]*** Brake cut motor [13:06:14]Read from MH i2c: 01 [13:06:14]MH_I2C_Read... [13:06:14]*** Stop cut motor [13:06:14]*** Cut end [13:06:14]Read from MH i2c: 01 07 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: 01 07 00 57 80 00 00 00 00 00 FF 0F EC [13:06:14]process_action close_receipt done [13:06:14]requested_data is exist [13:06:14]produce_requested_data [13:06:14]requested_item fm.sn is exist - process it [13:06:14]wFMCommunicate request_size=4 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 11 00 00 [13:06:14]Write to MH i2c: E2 08 00 58 80 80 11 00 00 00 00 00 00 52 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 17 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 17 00 58 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [13:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:06:14]wFMCommunicate OK [13:06:14]requested_item fd.num is exist - process it [13:06:14]SAM_PROTO_GetFieldsCounters [13:06:14]wFMCommunicate request_size=4 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 13 00 00 [13:06:14]Write to MH i2c: E2 08 00 59 80 80 13 00 00 00 00 00 00 55 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 62 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 62 00 59 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B7 01 00 0E 04 04 00 88 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 3A [13:06:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B7 01 00 0E 04 04 00 88 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 [13:06:14]wFMCommunicate OK [13:06:14]SAM_PROTO_GetFieldsCounters done [13:06:14]requested_item shift.num is exist - process it [13:06:14]requested_item shift.opened is exist - process it [13:06:14]req_shift_opened [13:06:14]FM_GetShiftState [13:06:14]SAM_PROTO_GetShiftState [13:06:14]wFMCommunicate request_size=4 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 13 01 00 [13:06:14]Write to MH i2c: E2 08 00 5A 80 80 13 01 00 00 00 00 00 57 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 0E 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 0E 00 5A 80 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 75 [13:06:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:06:14]wFMCommunicate OK [13:06:14]SAM_PROTO_GetShiftState done [13:06:14]FM_GetShiftState done [13:06:14]req_shift_opened done [13:06:14]requested_item shift.open_date is exist - process it [13:06:14]req_shift_open_date [13:06:14]req_shift_open_date done [13:06:14]produce_requested_data done [13:06:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112492,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:06:14]process_action_free close_receipt [13:06:14]json_value_free [13:06:14]json_value_free done [13:06:14]process_json_proto returns [13:06:14]Send response to host [13:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112492,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:06:14]free response buf [13:06:14]execute_script done [13:06:14]execute_script returns [13:06:14]free content buf [13:06:14]Sock 10.Close socket [13:06:14]Sock 10.Thread stoped [13:06:18]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:33]accept exits with 7 [13:07:33]New connection [13:07:33]New thread 3066813796 created [13:07:33]Thread 3066957156 joined [13:07:33]Waiting for new connection... [13:07:33] Sock 7.Parse request [13:07:33]Sock 7.Check first char [13:07:33]Sock 7.First char is OK [13:07:33]request: POST /json_proto HTTP/1.0 [13:07:33]Method: POST [13:07:33]URL: /json_proto [13:07:33]Method is POST - this is cgi request [13:07:33]url: /json_proto [13:07:33]query_string will be loaded in cgi processing [13:07:33]execute_cgi json_proto POST (null) [13:07:33]execute_cgi path=json_proto method=POST [13:07:33]POST find Content-Length [13:07:33]Host: 172.17.59.68:8080 [13:07:33]Content-Length: 682 [13:07:33]Content-Type: application/json [13:07:33] [13:07:33]POST finish read [13:07:33]Found Content-Length = 682 [13:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:07:33]execute_script... [13:07:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:07:33]POST & json_proto [13:07:33]process_json_proto [13:07:33]json parsed OK: [13:07:33]protocol is kg_v1.0 [13:07:33]action value=close_receipt [13:07:33]process_action close_receipt [13:07:33]cmd_close_receipt [13:07:33]MH_GetDate [13:07:33]Write to MH i2c: F0 00 00 5B 80 CA [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: F0 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: F0 09 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: F0 09 00 5B 80 00 4E 1E 78 66 BC EC 60 65 8A [13:07:33]GetLastDocTimeStamp 1719148027 [13:07:33]current date 1719148110 [13:07:33]FM_GetShiftState [13:07:33]SAM_PROTO_GetShiftState [13:07:33]wFMCommunicate request_size=4 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 13 01 00 [13:07:33]Write to MH i2c: E2 08 00 5C 80 80 13 01 00 00 00 00 00 59 [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 0E 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 0E 00 5C 80 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 77 [13:07:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:07:33]wFMCommunicate OK [13:07:33]SAM_PROTO_GetShiftState done [13:07:33]FM_GetShiftState done [13:07:33]opened in 1719106490 [13:07:33]opened+sec_in_day 1719192890 [13:07:33]quantity*price = 200063 [13:07:33]sum+1 = 200064 [13:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 94 23.06.2024 13:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112493 ФПД: 196435145527927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130831&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112493&fm=196435145527927&tin=02508201610067®Number=0000000000092771&sum=200000 [13:07:35]StoreToDocumentArchive [13:07:35]shift 392 fd 112493 [13:07:35]save to /storage/0392/doc_00112493 [13:07:35]save last doc name /storage/0392/doc_00112493 to /storage/kkm_last_doc_name [13:07:35]save OK [13:07:35]Clear old archive folders... [13:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:35]tlvbuf is 012BAF70 [13:07:35]SAM_PROTO_ClearQueue [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 09 00 00 [13:07:35]Write to MH i2c: E2 08 00 69 80 80 09 00 00 00 00 00 00 5B [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 03 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 03 00 69 80 00 90 00 5D [13:07:35]RAPDU: 90 00 [13:07:35]wFMCommunicate OK [13:07:35]SAM_PROTO_ClearQueue done [13:07:35]KKMCreateOFDPacket [13:07:35]OFDProtocolAddRootSTLVToBuf [13:07:35]FM_MakeSignedData [13:07:35]FM_MakeSignedData [13:07:35]SAM_PROTO_SignData [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 0D 01 02 [13:07:35]Write to MH i2c: E2 08 00 6A 80 80 0D 01 02 00 00 00 00 63 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 03 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 03 00 6A 80 00 90 00 5E [13:07:35]RAPDU: 90 00 [13:07:35]wFMCommunicate OK [13:07:35]wFMCommunicate request_size=255 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 5E 00 00 00 F4 03 04 00 4F 1E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B7 01 00 35 04 06 00 B2 [13:07:35]Write to MH i2c: E2 02 01 6B 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 5E 00 00 00 F4 03 04 00 4F 1E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B7 01 00 35 04 06 00 B2 00 00 15 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 03 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 03 00 6B 80 00 90 00 5F [13:07:35]RAPDU: 90 00 [13:07:35]wFMCommunicate OK [13:07:35]wFMCommunicate request_size=10 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 0D 02 02 05 A8 1F 12 12 77 [13:07:35]Write to MH i2c: E2 0D 00 6C 80 80 0D 02 02 05 00 A8 1F 12 12 77 00 00 D2 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 03 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 03 00 6C 80 00 90 00 60 [13:07:35]RAPDU: 90 00 [13:07:35]wFMCommunicate OK [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 0D 03 02 [13:07:35]Write to MH i2c: E2 08 00 6D 80 80 0D 03 02 00 00 00 00 68 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 0B 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 0B 00 6D 80 00 5F E2 DC A7 55 66 24 63 90 00 6F [13:07:35]RAPDU: 5F E2 DC A7 55 66 24 63 90 00 [13:07:35]wFMCommunicate OK [13:07:35]SAM_PROTO_SignData done [13:07:35]FM_MakeSignedData done [13:07:35]CreateOFDProtocolMessage [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 11 00 00 [13:07:35]Write to MH i2c: E2 08 00 6E 80 80 11 00 00 00 00 00 00 68 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 17 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 17 00 6E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [13:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:07:35]wFMCommunicate OK [13:07:35]CreateOFDProtocolMessage done [13:07:35]OFDSenderStorePacket 112493 [13:07:35]StoreOFDPacket docnum=112493 [13:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 6A 07 01 27 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 5E 00 00 00 F4 03 04 00 4F 1E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B7 01 00 35 04 06 00 B2 A8 1F 12 12 77 5F E2 DC A7 55 66 24 63 [13:07:35]CheckFolder [13:07:35]dirname=/storage/ofd_packets [13:07:35]CheckFolder done [13:07:35]ProducePacketName [13:07:35]name=ofd_packets/00112493 [13:07:35]NVStorageSaveData ofd_packets/00112493 [13:07:35]File name is /storage/ofd_packets/00112493 [13:07:35]Write 301 bytes [13:07:35]NVStorageSaveData done [13:07:35]OFDSenderStorePacket done [13:07:35]KKMCreateOFDPacket done [13:07:35]NVStorageSaveData kkm_last_timestamp [13:07:35]File name is /storage/kkm_last_timestamp [13:07:35]Write 4 bytes [13:07:35]NVStorageSaveData done [13:07:35]ExternCall_PrintAddStr [13:07:35]wPrintStart [13:07:35]Write to MH i2c: 01 00 00 6F 80 EF [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: 01 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: 01 07 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: 01 07 00 6F 80 00 00 00 00 00 FF 0F 04 [13:07:35]RasterBufferAndPrint [13:07:35]line Счет N : (1)321172 [13:07:35]line ИНН: 02508201610067 [13:07:35]line Контрольно-Кассовый Чек [13:07:35]line ПРОДАЖА [13:07:35]line ТРК (МРК, ГНК) : 11 [13:07:35]line Товар: 2710124130 [13:07:35]line Аи-92-К-5 [13:07:35]line 30.130 * 66.40 [13:07:35]line = 2000.63 [13:07:35]line НДС 12% НСП 1% [13:07:35]line > о реализуемом товаре [13:07:35]line ОКРУГЛЕНИЕ: -0.63 [13:07:35]line ИТОГО: 2000.00 [13:07:35]line Внесено: 2000.00 [13:07:35]line СДАЧА: 0.00 [13:07:35]line НСП 1% : 17.70 [13:07:35]line НДС 12% : 212.46 [13:07:35]line Наличными: 2000.00 [13:07:35]line Безнал.: 0.00 [13:07:35]line Место: АЗС № 65 "Партнер Нефть" [13:07:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:07:35]line СНО: Общий режим [13:07:35]line Чек 94 23.06.2024 13:08 [13:07:35]line Смена: 392 ФФД: 1.0 [13:07:35]line ЗНМ: 0300000198 [13:07:35]line РНМ: 0000000000092771 [13:07:35]line Версия ККМ: 001 [13:07:35]line ФМ: 0000000000875083 [13:07:35]line ФД: 112493 [13:07:35]line ФПД: 196435145527927 [13:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130831&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112493&fm=196435145527927&tin=02508201610067®Number=0000000000092771&sum=200000 [13:07:35]OFD Sender: Processing packet 112493 [packets to send 38, broken 37] [13:07:35]ProducePacketName [13:07:35]name=ofd_packets/00112493 [13:07:35]OFD Sender: To server: pG, [13:07:35]CommunicateWithHost lk.salyk.kg:30040 [13:07:35]ConnectInit lk.salyk.kg [13:07:35]written 0, free lines is 4095 [13:07:35]Connected sock=10 [13:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 6A 07 01 27 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 5E 00 00 00 F4 03 04 00 4F 1E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B7 01 00 35 04 06 00 B2 A8 1F 12 12 77 5F E2 DC A7 55 66 24 63 [13:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AF 38 47 00 6A ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B7 01 00 F4 03 04 00 3B B5 77 66 B6 04 01 00 00 DB 7A 91 B0 BE 98 29 DE [13:07:35]CommunicateWithHost err = 0 [13:07:35]CheckOFDResponse [13:07:35]1017 (14) - 77093643461234 [13:07:35]1041 (16) - 0000000000875083 [13:07:35]1040 (4) - 112493 [13:07:35]1012 (4) - 23.06.2024 05:40 [13:07:35]1206 (1) - 0 [13:07:35]OFD Sender: Remove packet 112493 [13:07:35]ProducePacketName [13:07:35]name=ofd_packets/00112493 [13:07:35]NVStorageDeleteData [13:07:36]Write to MH i2c: 01 00 00 9A 80 1A [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 07 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 07 00 9A 80 00 00 00 00 00 E6 0C 13 [13:07:36]RasterBufferAndPrint [13:07:36]line [13:07:36]line [13:07:36]line [13:07:36]line [13:07:36]line [13:07:36]written 0, free lines is 3311 [13:07:36]MH_Cut [13:07:36]Write to MH i2c: D1 01 00 A1 80 01 F3 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: D1 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: D1 01 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: D1 01 00 A1 80 00 F2 [13:07:36]Write to MH i2c: 01 00 00 A2 80 22 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]OFD Sender: No OFD packet to send [13:07:36]*** Cut start [13:07:36]*** Partial cut [13:07:36]*** CUTSNS_PIN = 1 [13:07:36]*** CUTSNS_PIN = 0 [13:07:37]*** Brake cut motor [13:07:37]Read from MH i2c: 01 [13:07:37]MH_I2C_Read... [13:07:37]*** Stop cut motor [13:07:37]*** Cut end [13:07:37]Read from MH i2c: 01 07 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 A2 80 00 00 00 00 00 FF 0F 37 [13:07:37]process_action close_receipt done [13:07:37]requested_data is exist [13:07:37]produce_requested_data [13:07:37]requested_item fm.sn is exist - process it [13:07:37]wFMCommunicate request_size=4 [13:07:37]MH_SAM_APDU [13:07:37]CAPDU: 80 11 00 00 [13:07:37]Write to MH i2c: E2 08 00 A3 80 80 11 00 00 00 00 00 00 9D [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 17 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 17 00 A3 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [13:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:07:37]wFMCommunicate OK [13:07:37]requested_item fd.num is exist - process it [13:07:37]SAM_PROTO_GetFieldsCounters [13:07:37]wFMCommunicate request_size=4 [13:07:37]MH_SAM_APDU [13:07:37]CAPDU: 80 13 00 00 [13:07:37]Write to MH i2c: E2 08 00 A4 80 80 13 00 00 00 00 00 00 A0 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 62 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 62 00 A4 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B7 01 00 0E 04 04 00 88 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 89 [13:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B7 01 00 0E 04 04 00 88 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 [13:07:37]wFMCommunicate OK [13:07:37]SAM_PROTO_GetFieldsCounters done [13:07:37]requested_item shift.num is exist - process it [13:07:37]requested_item shift.opened is exist - process it [13:07:37]req_shift_opened [13:07:37]FM_GetShiftState [13:07:37]SAM_PROTO_GetShiftState [13:07:37]wFMCommunicate request_size=4 [13:07:37]MH_SAM_APDU [13:07:37]CAPDU: 80 13 01 00 [13:07:37]Write to MH i2c: E2 08 00 A5 80 80 13 01 00 00 00 00 00 A2 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 0E 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 0E 00 A5 80 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C0 [13:07:37]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:07:37]wFMCommunicate OK [13:07:37]SAM_PROTO_GetShiftState done [13:07:37]FM_GetShiftState done [13:07:37]req_shift_opened done [13:07:37]requested_item shift.open_date is exist - process it [13:07:37]req_shift_open_date [13:07:37]req_shift_open_date done [13:07:37]produce_requested_data done [13:07:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112493,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:07:37]process_action_free close_receipt [13:07:37]json_value_free [13:07:37]json_value_free done [13:07:37]process_json_proto returns [13:07:37]Send response to host [13:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112493,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:07:37]free response buf [13:07:37]execute_script done [13:07:37]execute_script returns [13:07:37]free content buf [13:07:37]Sock 7.Close socket [13:07:37]Sock 7.Thread stoped [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:07:59]accept exits with 9 [13:07:59]New connection [13:07:59]New thread 3066957156 created [13:07:59]Thread 3066813796 joined [13:07:59]Waiting for new connection... [13:07:59] Sock 9.Parse request [13:07:59]Sock 9.Check first char [13:07:59]Sock 9.First char is OK [13:07:59]request: POST /json_proto HTTP/1.0 [13:07:59]Method: POST [13:07:59]URL: /json_proto [13:07:59]Method is POST - this is cgi request [13:07:59]url: /json_proto [13:07:59]query_string will be loaded in cgi processing [13:07:59]execute_cgi json_proto POST (null) [13:07:59]execute_cgi path=json_proto method=POST [13:07:59]POST find Content-Length [13:07:59]Host: 172.17.59.68:8080 [13:07:59]Content-Length: 675 [13:07:59]Content-Type: application/json [13:07:59] [13:07:59]POST finish read [13:07:59]Found Content-Length = 675 [13:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.350, "sum" : 900.32, "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" ] } } [13:07:59]execute_script... [13:07: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)321173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.350, "sum" : 900.32, "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" ] } } [13:07:59]POST & json_proto [13:07:59]process_json_proto [13:07:59]json parsed OK: [13:07:59]protocol is kg_v1.0 [13:07:59]action value=close_receipt [13:07:59]process_action close_receipt [13:07:59]cmd_close_receipt [13:07:59]MH_GetDate [13:07:59]Write to MH i2c: F0 00 00 A6 80 15 [13:07:59]Write i2c OK [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: F0 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: F0 09 00 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: F0 09 00 A6 80 00 68 1E 78 66 BC EC 60 65 EF [13:07:59]GetLastDocTimeStamp 1719148111 [13:07:59]current date 1719148136 [13:07:59]FM_GetShiftState [13:07:59]SAM_PROTO_GetShiftState [13:07:59]wFMCommunicate request_size=4 [13:07:59]MH_SAM_APDU [13:07:59]CAPDU: 80 13 01 00 [13:07:59]Write to MH i2c: E2 08 00 A7 80 80 13 01 00 00 00 00 00 A4 [13:07:59]Write i2c OK [13:07:59]MH_I2C_Read... [13:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:59]Read from MH i2c: E2 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: E2 0E 00 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: E2 0E 00 A7 80 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C2 [13:07:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:07:59]wFMCommunicate OK [13:07:59]SAM_PROTO_GetShiftState done [13:07:59]FM_GetShiftState done [13:07:59]opened in 1719106490 [13:07:59]opened+sec_in_day 1719192890 [13:07:59]quantity*price = 90031 [13:07:59]sum+1 = 90033 [13:07:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.61 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 95 23.06.2024 13:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112494 ФПД: 223005084480393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130856&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112494&fm=223005084480393&tin=02508201610067®Number=0000000000092771&sum=90000 [13:08:00]StoreToDocumentArchive [13:08:00]shift 392 fd 112494 [13:08:00]save to /storage/0392/doc_00112494 [13:08:00]save last doc name /storage/0392/doc_00112494 to /storage/kkm_last_doc_name [13:08:00]save OK [13:08:00]Clear old archive folders... [13:08:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:00]tlvbuf is 01322C80 [13:08:00]SAM_PROTO_ClearQueue [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 09 00 00 [13:08:00]Write to MH i2c: E2 08 00 B4 80 80 09 00 00 00 00 00 00 A6 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:00]Read from MH i2c: E2 03 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 03 00 B4 80 00 90 00 A8 [13:08:00]RAPDU: 90 00 [13:08:00]wFMCommunicate OK [13:08:00]SAM_PROTO_ClearQueue done [13:08:00]KKMCreateOFDPacket [13:08:00]OFDProtocolAddRootSTLVToBuf [13:08:00]FM_MakeSignedData [13:08:00]FM_MakeSignedData [13:08:00]SAM_PROTO_SignData [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 0D 01 02 [13:08:00]Write to MH i2c: E2 08 00 B5 80 80 0D 01 02 00 00 00 00 AE [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 B5 80 00 90 00 A9 [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=255 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 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 59 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 5F 00 00 00 F4 03 04 00 68 1E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B7 01 00 35 04 06 00 CA D2 6A D7 [13:08:01]Write to MH i2c: E2 02 01 B6 80 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 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 59 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 5F 00 00 00 F4 03 04 00 68 1E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B7 01 00 35 04 06 00 CA D2 6A D7 00 00 EC [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 B6 80 00 90 00 AA [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=7 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 02 02 02 F3 89 [13:08:01]Write to MH i2c: E2 0A 00 B7 80 80 0D 02 02 02 00 F3 89 00 00 31 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 B7 80 00 90 00 AB [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 03 02 [13:08:01]Write to MH i2c: E2 08 00 B8 80 80 0D 03 02 00 00 00 00 B3 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 0B 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 0B 00 B8 80 00 6D 58 8C 05 04 6B 7E 4E 90 00 45 [13:08:01]RAPDU: 6D 58 8C 05 04 6B 7E 4E 90 00 [13:08:01]wFMCommunicate OK [13:08:01]SAM_PROTO_SignData done [13:08:01]FM_MakeSignedData done [13:08:01]CreateOFDProtocolMessage [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 11 00 00 [13:08:01]Write to MH i2c: E2 08 00 B9 80 80 11 00 00 00 00 00 00 B3 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 17 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 17 00 B9 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [13:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:08:01]wFMCommunicate OK [13:08:01]CreateOFDProtocolMessage done [13:08:01]OFDSenderStorePacket 112494 [13:08:01]StoreOFDPacket docnum=112494 [13:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9D 12 04 01 E8 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 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 59 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 5F 00 00 00 F4 03 04 00 68 1E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B7 01 00 35 04 06 00 CA D2 6A D7 F3 89 6D 58 8C 05 04 6B 7E 4E [13:08:01]CheckFolder [13:08:01]dirname=/storage/ofd_packets [13:08:01]CheckFolder done [13:08:01]ProducePacketName [13:08:01]name=ofd_packets/00112494 [13:08:01]NVStorageSaveData ofd_packets/00112494 [13:08:01]File name is /storage/ofd_packets/00112494 [13:08:01]Write 298 bytes [13:08:01]NVStorageSaveData done [13:08:01]OFDSenderStorePacket done [13:08:01]KKMCreateOFDPacket done [13:08:01]NVStorageSaveData kkm_last_timestamp [13:08:01]File name is /storage/kkm_last_timestamp [13:08:01]Write 4 bytes [13:08:01]NVStorageSaveData done [13:08:01]ExternCall_PrintAddStr [13:08:01]wPrintStart [13:08:01]Write to MH i2c: 01 00 00 BA 80 3A [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 07 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 07 00 BA 80 00 00 00 00 00 FF 0F 4F [13:08:01]RasterBufferAndPrint [13:08:01]line Счет N : (1)321173 [13:08:01]line ИНН: 02508201610067 [13:08:01]line Контрольно-Кассовый Чек [13:08:01]line ПРОДАЖА [13:08:01]line ТРК (МРК, ГНК) : 22 [13:08:01]line Товар: 2710194210 [13:08:01]line ДТ-К-5 [13:08:01]line 12.350 * 72.90 [13:08:01]line = 900.32 [13:08:01]line НДС 12% НСП 1% [13:08:01]line > о реализуемом товаре [13:08:01]line ОКРУГЛЕНИЕ: -0.32 [13:08:01]line ИТОГО: 900.00 [13:08:01]line Внесено: 900.00 [13:08:01]line СДАЧА: 0.00 [13:08:01]line НСП 1% : 7.97 [13:08:01]line НДС 12% : 95.61 [13:08:01]line Наличными: 900.00 [13:08:01]line Безнал.: 0.00 [13:08:01]line Место: АЗС № 65 "Партнер Нефть" [13:08:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:08:01]line СНО: Общий режим [13:08:01]line Чек 95 23.06.2024 13:08 [13:08:01]line Смена: 392 ФФД: 1.0 [13:08:01]line ЗНМ: 0300000198 [13:08:01]line РНМ: 0000000000092771 [13:08:01]line Версия ККМ: 001 [13:08:01]line ФМ: 0000000000875083 [13:08:01]line ФД: 112494 [13:08:01]line ФПД: 223005084480393 [13:08:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T130856&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112494&fm=223005084480393&tin=02508201610067®Number=0000000000092771&sum=90000 [13:08:01]OFD Sender: Processing packet 112494 [packets to send 38, broken 37] [13:08:01]ProducePacketName [13:08:01]name=ofd_packets/00112494 [13:08:01]OFD Sender: To server: pG, [13:08:01]CommunicateWithHost lk.salyk.kg:30040 [13:08:01]ConnectInit lk.salyk.kg [13:08:01]written 0, free lines is 4095 [13:08:01]Connected sock=10 [13:08:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9D 12 04 01 E8 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 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 59 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 5F 00 00 00 F4 03 04 00 68 1E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B7 01 00 35 04 06 00 CA D2 6A D7 F3 89 6D 58 8C 05 04 6B 7E 4E [13:08:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 EB 47 00 8D 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B7 01 00 F4 03 04 00 55 B5 77 66 B6 04 01 00 00 F5 D1 5C C9 4E E4 EF 51 [13:08:02]CommunicateWithHost err = 0 [13:08:02]CheckOFDResponse [13:08:02]1017 (14) - 77093643461234 [13:08:02]1041 (16) - 0000000000875083 [13:08:02]1040 (4) - 112494 [13:08:02]1012 (4) - 23.06.2024 05:40 [13:08:02]1206 (1) - 0 [13:08:02]OFD Sender: Remove packet 112494 [13:08:02]ProducePacketName [13:08:02]name=ofd_packets/00112494 [13:08:02]NVStorageDeleteData [13:08:02]Write to MH i2c: 01 00 00 E5 80 65 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 E5 80 00 00 00 00 00 F0 0C 68 [13:08:02]RasterBufferAndPrint [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]written 0, free lines is 3319 [13:08:02]MH_Cut [13:08:02]Write to MH i2c: D1 01 00 EC 80 01 3E [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 01 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 01 00 EC 80 00 3D [13:08:02]Write to MH i2c: 01 00 00 ED 80 6D [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]OFD Sender: No OFD packet to send [13:08:03]*** Cut start [13:08:03]*** Partial cut [13:08:03]*** CUTSNS_PIN = 1 [13:08:03]*** CUTSNS_PIN = 0 [13:08:03]*** Brake cut motor [13:08:03]Read from MH i2c: 01 [13:08:03]MH_I2C_Read... [13:08:03]*** Stop cut motor [13:08:03]*** Cut end [13:08:03]Read from MH i2c: 01 07 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: 01 07 00 ED 80 00 00 00 00 00 FF 0F 82 [13:08:03]process_action close_receipt done [13:08:03]requested_data is exist [13:08:03]produce_requested_data [13:08:03]requested_item fm.sn is exist - process it [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 11 00 00 [13:08:03]Write to MH i2c: E2 08 00 EE 80 80 11 00 00 00 00 00 00 E8 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 17 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 17 00 EE 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [13:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:08:03]wFMCommunicate OK [13:08:03]requested_item fd.num is exist - process it [13:08:03]SAM_PROTO_GetFieldsCounters [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 13 00 00 [13:08:03]Write to MH i2c: E2 08 00 EF 80 80 13 00 00 00 00 00 00 EB [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 62 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 62 00 EF 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B7 01 00 0E 04 04 00 88 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 D8 [13:08:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B7 01 00 0E 04 04 00 88 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 [13:08:03]wFMCommunicate OK [13:08:03]SAM_PROTO_GetFieldsCounters done [13:08:03]requested_item shift.num is exist - process it [13:08:03]requested_item shift.opened is exist - process it [13:08:03]req_shift_opened [13:08:03]FM_GetShiftState [13:08:03]SAM_PROTO_GetShiftState [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 13 01 00 [13:08:03]Write to MH i2c: E2 08 00 F0 80 80 13 01 00 00 00 00 00 ED [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 0E 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 0E 00 F0 80 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0B [13:08:03]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:08:03]wFMCommunicate OK [13:08:03]SAM_PROTO_GetShiftState done [13:08:03]FM_GetShiftState done [13:08:03]req_shift_opened done [13:08:03]requested_item shift.open_date is exist - process it [13:08:03]req_shift_open_date [13:08:03]req_shift_open_date done [13:08:03]produce_requested_data done [13:08:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112494,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:08:03]process_action_free close_receipt [13:08:03]json_value_free [13:08:03]json_value_free done [13:08:03]process_json_proto returns [13:08:03]Send response to host [13:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112494,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:08:03]free response buf [13:08:03]execute_script done [13:08:03]execute_script returns [13:08:03]free content buf [13:08:03]Sock 9.Close socket [13:08:03]Sock 9.Thread stoped [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]accept exits with 7 [13:11:02]New connection [13:11:02]New thread 3066813796 created [13:11:02]Thread 3066957156 joined [13:11:02]Waiting for new connection... [13:11:02] Sock 7.Parse request [13:11:02]Sock 7.Check first char [13:11:02]Sock 7.First char is OK [13:11:02]request: POST /json_proto HTTP/1.0 [13:11:02]Method: POST [13:11:02]URL: /json_proto [13:11:02]Method is POST - this is cgi request [13:11:02]url: /json_proto [13:11:02]query_string will be loaded in cgi processing [13:11:02]execute_cgi json_proto POST (null) [13:11:02]execute_cgi path=json_proto method=POST [13:11:02]POST find Content-Length [13:11:02]Host: 172.17.59.68:8080 [13:11:02]Content-Length: 682 [13:11:02]Content-Type: application/json [13:11:02] [13:11:02]POST finish read [13:11:02]Found Content-Length = 682 [13:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 28.620, "sum" : 1900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:02]execute_script... [13:11: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)321175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 28.620, "sum" : 1900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:02]POST & json_proto [13:11:02]process_json_proto [13:11:02]json parsed OK: [13:11:02]protocol is kg_v1.0 [13:11:02]action value=close_receipt [13:11:02]process_action close_receipt [13:11:02]cmd_close_receipt [13:11:02]MH_GetDate [13:11:02]Write to MH i2c: F0 00 00 F1 80 60 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: F0 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: F0 09 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: F0 09 00 F1 80 00 1F 1F 78 66 BC EC 60 65 F2 [13:11:02]GetLastDocTimeStamp 1719148136 [13:11:02]current date 1719148319 [13:11:02]FM_GetShiftState [13:11:02]SAM_PROTO_GetShiftState [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 13 01 00 [13:11:02]Write to MH i2c: E2 08 00 F2 80 80 13 01 00 00 00 00 00 EF [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 0E 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 0E 00 F2 80 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0D [13:11:02]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:11:02]wFMCommunicate OK [13:11:02]SAM_PROTO_GetShiftState done [13:11:02]FM_GetShiftState done [13:11:02]opened in 1719106490 [13:11:02]opened+sec_in_day 1719192890 [13:11:02]quantity*price = 190036 [13:11:02]sum+1 = 190038 [13:11:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.81 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 96 23.06.2024 13:11 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112495 ФПД: 130757573189942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131159&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112495&fm=130757573189942&tin=02508201610067®Number=0000000000092771&sum=190000 [13:11:03]StoreToDocumentArchive [13:11:03]shift 392 fd 112495 [13:11:03]save to /storage/0392/doc_00112495 [13:11:03]save last doc name /storage/0392/doc_00112495 to /storage/kkm_last_doc_name [13:11:03]save OK [13:11:03]Clear old archive folders... [13:11:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:03]tlvbuf is 01211000 [13:11:03]SAM_PROTO_ClearQueue [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 09 00 00 [13:11:03]Write to MH i2c: E2 08 00 FF 80 80 09 00 00 00 00 00 00 F1 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 FF 80 00 90 00 F3 [13:11:03]RAPDU: 90 00 [13:11:03]wFMCommunicate OK [13:11:03]SAM_PROTO_ClearQueue done [13:11:03]KKMCreateOFDPacket [13:11:03]OFDProtocolAddRootSTLVToBuf [13:11:03]FM_MakeSignedData [13:11:03]FM_MakeSignedData [13:11:03]SAM_PROTO_SignData [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 0D 01 02 [13:11:03]Write to MH i2c: E2 08 00 00 81 80 0D 01 02 00 00 00 00 FA [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 00 81 00 90 00 F5 [13:11:03]RAPDU: 90 00 [13:11:03]wFMCommunicate OK [13:11:03]wFMCommunicate request_size=255 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1F 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B7 01 00 35 04 06 00 76 [13:11:03]Write to MH i2c: E2 02 01 01 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1F 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B7 01 00 35 04 06 00 76 00 00 12 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 03 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 03 00 01 81 00 90 00 F6 [13:11:04]RAPDU: 90 00 [13:11:04]wFMCommunicate OK [13:11:04]wFMCommunicate request_size=10 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 0D 02 02 05 EC 5E B3 A1 36 [13:11:04]Write to MH i2c: E2 0D 00 02 81 80 0D 02 02 05 00 EC 5E B3 A1 36 00 00 DB [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 03 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 03 00 02 81 00 90 00 F7 [13:11:04]RAPDU: 90 00 [13:11:04]wFMCommunicate OK [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 0D 03 02 [13:11:04]Write to MH i2c: E2 08 00 03 81 80 0D 03 02 00 00 00 00 FF [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0B 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0B 00 03 81 00 EB D5 A7 9B 37 6D 8E C3 90 00 F7 [13:11:04]RAPDU: EB D5 A7 9B 37 6D 8E C3 90 00 [13:11:04]wFMCommunicate OK [13:11:04]SAM_PROTO_SignData done [13:11:04]FM_MakeSignedData done [13:11:04]CreateOFDProtocolMessage [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 11 00 00 [13:11:04]Write to MH i2c: E2 08 00 04 81 80 11 00 00 00 00 00 00 FF [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 17 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 17 00 04 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 51 [13:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:11:04]wFMCommunicate OK [13:11:04]CreateOFDProtocolMessage done [13:11:04]OFDSenderStorePacket 112495 [13:11:04]StoreOFDPacket docnum=112495 [13:11:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 64 FA 07 01 2B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1F 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B7 01 00 35 04 06 00 76 EC 5E B3 A1 36 EB D5 A7 9B 37 6D 8E C3 [13:11:04]CheckFolder [13:11:04]dirname=/storage/ofd_packets [13:11:04]CheckFolder done [13:11:04]ProducePacketName [13:11:04]name=ofd_packets/00112495 [13:11:04]NVStorageSaveData ofd_packets/00112495 [13:11:04]File name is /storage/ofd_packets/00112495 [13:11:04]Write 301 bytes [13:11:04]NVStorageSaveData done [13:11:04]OFDSenderStorePacket done [13:11:04]KKMCreateOFDPacket done [13:11:04]NVStorageSaveData kkm_last_timestamp [13:11:04]File name is /storage/kkm_last_timestamp [13:11:04]Write 4 bytes [13:11:04]NVStorageSaveData done [13:11:04]ExternCall_PrintAddStr [13:11:04]wPrintStart [13:11:04]Write to MH i2c: 01 00 00 05 81 86 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 07 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 07 00 05 81 00 00 00 00 00 FF 0F 9B [13:11:04]RasterBufferAndPrint [13:11:04]line Счет N : (1)321175 [13:11:04]line ИНН: 02508201610067 [13:11:04]line Контрольно-Кассовый Чек [13:11:04]line ПРОДАЖА [13:11:04]line ТРК (МРК, ГНК) : 11 [13:11:04]line Товар: 2710124130 [13:11:04]line Аи-92-К-5 [13:11:04]line 28.620 * 66.40 [13:11:04]line = 1900.37 [13:11:04]line НДС 12% НСП 1% [13:11:04]line > о реализуемом товаре [13:11:04]line ОКРУГЛЕНИЕ: -0.37 [13:11:04]line ИТОГО: 1900.00 [13:11:04]line Внесено: 1900.00 [13:11:04]line СДАЧА: 0.00 [13:11:04]line НСП 1% : 16.82 [13:11:04]line НДС 12% : 201.81 [13:11:04]line Наличными: 1900.00 [13:11:04]line Безнал.: 0.00 [13:11:04]line Место: АЗС № 65 "Партнер Нефть" [13:11:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:11:04]line СНО: Общий режим [13:11:04]line Чек 96 23.06.2024 13:11 [13:11:04]line Смена: 392 ФФД: 1.0 [13:11:04]line ЗНМ: 0300000198 [13:11:04]line РНМ: 0000000000092771 [13:11:04]line Версия ККМ: 001 [13:11:04]line ФМ: 0000000000875083 [13:11:04]line ФД: 112495 [13:11:04]line ФПД: 130757573189942 [13:11:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131159&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112495&fm=130757573189942&tin=02508201610067®Number=0000000000092771&sum=190000 [13:11:04]OFD Sender: Processing packet 112495 [packets to send 38, broken 37] [13:11:04]ProducePacketName [13:11:04]name=ofd_packets/00112495 [13:11:04]OFD Sender: To server: pG, [13:11:04]CommunicateWithHost lk.salyk.kg:30040 [13:11:04]ConnectInit lk.salyk.kg [13:11:04]written 0, free lines is 4095 [13:11:04]Connected sock=10 [13:11:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 64 FA 07 01 2B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1F 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B7 01 00 35 04 06 00 76 EC 5E B3 A1 36 EB D5 A7 9B 37 6D 8E C3 [13:11:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B9 6C 47 00 0D 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B7 01 00 F4 03 04 00 0C B6 77 66 B6 04 01 00 00 B2 E7 42 F7 36 38 FA 5B [13:11:04]CommunicateWithHost err = 0 [13:11:04]CheckOFDResponse [13:11:04]1017 (14) - 77093643461234 [13:11:04]1041 (16) - 0000000000875083 [13:11:04]1040 (4) - 112495 [13:11:04]1012 (4) - 23.06.2024 05:43 [13:11:04]1206 (1) - 0 [13:11:04]OFD Sender: Remove packet 112495 [13:11:04]ProducePacketName [13:11:04]name=ofd_packets/00112495 [13:11:04]NVStorageDeleteData [13:11:05]Write to MH i2c: 01 00 00 30 81 B1 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: 01 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: 01 07 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: 01 07 00 30 81 00 00 00 00 00 DC 0C A0 [13:11:05]RasterBufferAndPrint [13:11:05]line [13:11:05]line [13:11:05]line [13:11:05]line [13:11:05]line [13:11:05]written 0, free lines is 3298 [13:11:05]MH_Cut [13:11:05]Write to MH i2c: D1 01 00 37 81 01 8A [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: D1 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: D1 01 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: D1 01 00 37 81 00 89 [13:11:05]Write to MH i2c: 01 00 00 38 81 B9 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]OFD Sender: No OFD packet to send [13:11:05]*** Cut start [13:11:05]*** Partial cut [13:11:05]*** CUTSNS_PIN = 1 [13:11:05]*** CUTSNS_PIN = 0 [13:11:06]*** Brake cut motor [13:11:06]Read from MH i2c: 01 [13:11:06]MH_I2C_Read... [13:11:06]*** Stop cut motor [13:11:06]*** Cut end [13:11:06]Read from MH i2c: 01 07 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: 01 07 00 38 81 00 00 00 00 00 FF 0F CE [13:11:06]process_action close_receipt done [13:11:06]requested_data is exist [13:11:06]produce_requested_data [13:11:06]requested_item fm.sn is exist - process it [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 11 00 00 [13:11:06]Write to MH i2c: E2 08 00 39 81 80 11 00 00 00 00 00 00 34 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 17 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 17 00 39 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 86 [13:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:11:06]wFMCommunicate OK [13:11:06]requested_item fd.num is exist - process it [13:11:06]SAM_PROTO_GetFieldsCounters [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 13 00 00 [13:11:06]Write to MH i2c: E2 08 00 3A 81 80 13 00 00 00 00 00 00 37 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 62 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 62 00 3A 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B7 01 00 0E 04 04 00 88 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 28 [13:11:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B7 01 00 0E 04 04 00 88 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 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_GetFieldsCounters done [13:11:06]requested_item shift.num is exist - process it [13:11:06]requested_item shift.opened is exist - process it [13:11:06]req_shift_opened [13:11:06]FM_GetShiftState [13:11:06]SAM_PROTO_GetShiftState [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 13 01 00 [13:11:06]Write to MH i2c: E2 08 00 3B 81 80 13 01 00 00 00 00 00 39 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 0E 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 0E 00 3B 81 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 57 [13:11:06]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_GetShiftState done [13:11:06]FM_GetShiftState done [13:11:06]req_shift_opened done [13:11:06]requested_item shift.open_date is exist - process it [13:11:06]req_shift_open_date [13:11:06]req_shift_open_date done [13:11:06]produce_requested_data done [13:11:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112495,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:11:06]process_action_free close_receipt [13:11:06]json_value_free [13:11:06]json_value_free done [13:11:06]process_json_proto returns [13:11:06]Send response to host [13:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112495,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:11:06]free response buf [13:11:06]execute_script done [13:11:06]execute_script returns [13:11:06]free content buf [13:11:06]Sock 7.Close socket [13:11:06]Sock 7.Thread stoped [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:11:58]accept exits with 9 [13:11:58]New connection [13:11:58]New thread 3066957156 created [13:11:58]Thread 3066813796 joined [13:11:58]Waiting for new connection... [13:11:58] Sock 9.Parse request [13:11:58]Sock 9.Check first char [13:11:58]Sock 9.First char is OK [13:11:58]request: POST /json_proto HTTP/1.0 [13:11:58]Method: POST [13:11:58]URL: /json_proto [13:11:58]Method is POST - this is cgi request [13:11:58]url: /json_proto [13:11:58]query_string will be loaded in cgi processing [13:11:58]execute_cgi json_proto POST (null) [13:11:58]execute_cgi path=json_proto method=POST [13:11:58]POST find Content-Length [13:11:58]Host: 172.17.59.68:8080 [13:11:58]Content-Length: 682 [13:11:58]Content-Type: application/json [13:11:58] [13:11:58]POST finish read [13:11:58]Found Content-Length = 682 [13:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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" ] } } [13:11:58]execute_script... [13:11: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)321176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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" ] } } [13:11:58]POST & json_proto [13:11:58]process_json_proto [13:11:58]json parsed OK: [13:11:58]protocol is kg_v1.0 [13:11:58]action value=close_receipt [13:11:58]process_action close_receipt [13:11:58]cmd_close_receipt [13:11:58]MH_GetDate [13:11:58]Write to MH i2c: F0 00 00 3C 81 AC [13:11:58]Write i2c OK [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: F0 [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: F0 09 00 [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: F0 09 00 3C 81 00 57 1F 78 66 BC EC 60 65 76 [13:11:58]GetLastDocTimeStamp 1719148319 [13:11:58]current date 1719148375 [13:11:58]FM_GetShiftState [13:11:58]SAM_PROTO_GetShiftState [13:11:58]wFMCommunicate request_size=4 [13:11:58]MH_SAM_APDU [13:11:58]CAPDU: 80 13 01 00 [13:11:58]Write to MH i2c: E2 08 00 3D 81 80 13 01 00 00 00 00 00 3B [13:11:58]Write i2c OK [13:11:58]MH_I2C_Read... [13:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:58]Read from MH i2c: E2 [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: E2 0E 00 [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: E2 0E 00 3D 81 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 59 [13:11:58]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:11:58]wFMCommunicate OK [13:11:58]SAM_PROTO_GetShiftState done [13:11:58]FM_GetShiftState done [13:11:58]opened in 1719106490 [13:11:58]opened+sec_in_day 1719192890 [13:11:58]quantity*price = 110024 [13:11:58]sum+1 = 110026 [13:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.84 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 97 23.06.2024 13:12 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112496 ФПД: 85193257870040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131255&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112496&fm=85193257870040&tin=02508201610067®Number=0000000000092771&sum=110000 [13:11:59]StoreToDocumentArchive [13:11:59]shift 392 fd 112496 [13:11:59]save to /storage/0392/doc_00112496 [13:11:59]save last doc name /storage/0392/doc_00112496 to /storage/kkm_last_doc_name [13:11:59]save OK [13:11:59]Clear old archive folders... [13:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:59]tlvbuf is 01323460 [13:11:59]SAM_PROTO_ClearQueue [13:11:59]wFMCommunicate request_size=4 [13:11:59]MH_SAM_APDU [13:11:59]CAPDU: 80 09 00 00 [13:11:59]Write to MH i2c: E2 08 00 4A 81 80 09 00 00 00 00 00 00 3D [13:11:59]Write i2c OK [13:11:59]MH_I2C_Read... [13:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:59]Read from MH i2c: E2 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 03 00 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 03 00 4A 81 00 90 00 3F [13:11:59]RAPDU: 90 00 [13:11:59]wFMCommunicate OK [13:11:59]SAM_PROTO_ClearQueue done [13:11:59]KKMCreateOFDPacket [13:11:59]OFDProtocolAddRootSTLVToBuf [13:11:59]FM_MakeSignedData [13:11:59]FM_MakeSignedData [13:11:59]SAM_PROTO_SignData [13:11:59]wFMCommunicate request_size=4 [13:11:59]MH_SAM_APDU [13:11:59]CAPDU: 80 0D 01 02 [13:11:59]Write to MH i2c: E2 08 00 4B 81 80 0D 01 02 00 00 00 00 45 [13:11:59]Write i2c OK [13:11:59]MH_I2C_Read... [13:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:59]Read from MH i2c: E2 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 03 00 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 03 00 4B 81 00 90 00 40 [13:11:59]RAPDU: 90 00 [13:11:59]wFMCommunicate OK [13:11:59]wFMCommunicate request_size=255 [13:11:59]MH_SAM_APDU [13:11:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 61 00 00 00 F4 03 04 00 57 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B7 01 00 35 04 06 00 4D [13:11:59]Write to MH i2c: E2 02 01 4C 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 61 00 00 00 F4 03 04 00 57 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B7 01 00 35 04 06 00 4D 00 00 DA [13:11:59]Write i2c OK [13:11:59]MH_I2C_Read... [13:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:59]Read from MH i2c: E2 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 03 00 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 03 00 4C 81 00 90 00 41 [13:11:59]RAPDU: 90 00 [13:11:59]wFMCommunicate OK [13:11:59]wFMCommunicate request_size=10 [13:11:59]MH_SAM_APDU [13:11:59]CAPDU: 80 0D 02 02 05 7B 99 DF 62 D8 [13:11:59]Write to MH i2c: E2 0D 00 4D 81 80 0D 02 02 05 00 7B 99 DF 62 D8 00 00 7F [13:11:59]Write i2c OK [13:11:59]MH_I2C_Read... [13:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:59]Read from MH i2c: E2 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 03 00 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 03 00 4D 81 00 90 00 42 [13:11:59]RAPDU: 90 00 [13:11:59]wFMCommunicate OK [13:11:59]wFMCommunicate request_size=4 [13:11:59]MH_SAM_APDU [13:11:59]CAPDU: 80 0D 03 02 [13:11:59]Write to MH i2c: E2 08 00 4E 81 80 0D 03 02 00 00 00 00 4A [13:11:59]Write i2c OK [13:11:59]MH_I2C_Read... [13:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:59]Read from MH i2c: E2 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 0B 00 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 0B 00 4E 81 00 AF F0 C9 5A CC 62 6B AD 90 00 53 [13:11:59]RAPDU: AF F0 C9 5A CC 62 6B AD 90 00 [13:11:59]wFMCommunicate OK [13:11:59]SAM_PROTO_SignData done [13:11:59]FM_MakeSignedData done [13:11:59]CreateOFDProtocolMessage [13:11:59]wFMCommunicate request_size=4 [13:11:59]MH_SAM_APDU [13:11:59]CAPDU: 80 11 00 00 [13:11:59]Write to MH i2c: E2 08 00 4F 81 80 11 00 00 00 00 00 00 4A [13:11:59]Write i2c OK [13:11:59]MH_I2C_Read... [13:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:59]Read from MH i2c: E2 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 17 00 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: E2 17 00 4F 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9C [13:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:11:59]wFMCommunicate OK [13:11:59]CreateOFDProtocolMessage done [13:11:59]OFDSenderStorePacket 112496 [13:11:59]StoreOFDPacket docnum=112496 [13:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8E 10 07 01 7D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 61 00 00 00 F4 03 04 00 57 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B7 01 00 35 04 06 00 4D 7B 99 DF 62 D8 AF F0 C9 5A CC 62 6B AD [13:11:59]CheckFolder [13:11:59]dirname=/storage/ofd_packets [13:11:59]CheckFolder done [13:11:59]ProducePacketName [13:11:59]name=ofd_packets/00112496 [13:11:59]NVStorageSaveData ofd_packets/00112496 [13:11:59]File name is /storage/ofd_packets/00112496 [13:11:59]Write 301 bytes [13:11:59]NVStorageSaveData done [13:11:59]OFDSenderStorePacket done [13:11:59]KKMCreateOFDPacket done [13:11:59]NVStorageSaveData kkm_last_timestamp [13:11:59]File name is /storage/kkm_last_timestamp [13:11:59]Write 4 bytes [13:11:59]NVStorageSaveData done [13:11:59]ExternCall_PrintAddStr [13:11:59]wPrintStart [13:11:59]Write to MH i2c: 01 00 00 50 81 D1 [13:11:59]Write i2c OK [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: 01 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: 01 07 00 [13:11:59]MH_I2C_Read... [13:11:59]Read from MH i2c: 01 07 00 50 81 00 00 00 00 00 FF 0F E6 [13:11:59]RasterBufferAndPrint [13:11:59]line Счет N : (1)321176 [13:11:59]line ИНН: 02508201610067 [13:11:59]line Контрольно-Кассовый Чек [13:11:59]line ПРОДАЖА [13:11:59]line ТРК (МРК, ГНК) : 11 [13:11:59]line Товар: 2710124130 [13:11:59]line Аи-92-К-5 [13:11:59]line 16.570 * 66.40 [13:11:59]line = 1100.25 [13:11:59]line НДС 12% НСП 1% [13:11:59]line > о реализуемом товаре [13:11:59]line ОКРУГЛЕНИЕ: -0.25 [13:11:59]line ИТОГО: 1100.00 [13:11:59]line Внесено: 1100.00 [13:11:59]line СДАЧА: 0.00 [13:11:59]line НСП 1% : 9.74 [13:11:59]line НДС 12% : 116.84 [13:11:59]line Наличными: 1100.00 [13:11:59]line Безнал.: 0.00 [13:11:59]line Место: АЗС № 65 "Партнер Нефть" [13:11:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:11:59]line СНО: Общий режим [13:11:59]line Чек 97 23.06.2024 13:12 [13:11:59]line Смена: 392 ФФД: 1.0 [13:11:59]line ЗНМ: 0300000198 [13:11:59]line РНМ: 0000000000092771 [13:11:59]line Версия ККМ: 001 [13:11:59]line ФМ: 0000000000875083 [13:11:59]line ФД: 112496 [13:11:59]line ФПД: 85193257870040 [13:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131255&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112496&fm=85193257870040&tin=02508201610067®Number=0000000000092771&sum=110000 [13:12:00]OFD Sender: Processing packet 112496 [packets to send 38, broken 37] [13:12:00]ProducePacketName [13:12:00]name=ofd_packets/00112496 [13:12:00]OFD Sender: To server: pG, [13:12:00]CommunicateWithHost lk.salyk.kg:30040 [13:12:00]ConnectInit lk.salyk.kg [13:12:00]written 0, free lines is 4095 [13:12:00]Connected sock=10 [13:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8E 10 07 01 7D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 61 00 00 00 F4 03 04 00 57 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B7 01 00 35 04 06 00 4D 7B 99 DF 62 D8 AF F0 C9 5A CC 62 6B AD [13:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D1 10 47 00 6A D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B7 01 00 F4 03 04 00 43 B6 77 66 B6 04 01 00 00 23 99 4F BB 5A 2A AA 7C [13:12:00]CommunicateWithHost err = 0 [13:12:00]CheckOFDResponse [13:12:00]1017 (14) - 77093643461234 [13:12:00]1041 (16) - 0000000000875083 [13:12:00]1040 (4) - 112496 [13:12:00]1012 (4) - 23.06.2024 05:44 [13:12:00]1206 (1) - 0 [13:12:00]OFD Sender: Remove packet 112496 [13:12:00]ProducePacketName [13:12:00]name=ofd_packets/00112496 [13:12:00]NVStorageDeleteData [13:12:00]Write to MH i2c: 01 00 00 7B 81 FC [13:12:00]Write i2c OK [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: 01 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: 01 07 00 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: 01 07 00 7B 81 00 00 00 00 00 E5 0C F4 [13:12:00]RasterBufferAndPrint [13:12:00]line [13:12:00]line [13:12:00]line [13:12:00]line [13:12:00]line [13:12:00]written 0, free lines is 3307 [13:12:00]MH_Cut [13:12:00]Write to MH i2c: D1 01 00 82 81 01 D5 [13:12:00]Write i2c OK [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: D1 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: D1 01 00 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: D1 01 00 82 81 00 D4 [13:12:00]Write to MH i2c: 01 00 00 83 81 04 [13:12:00]Write i2c OK [13:12:00]MH_I2C_Read... [13:12:00]OFD Sender: No OFD packet to send [13:12:01]*** Cut start [13:12:01]*** Partial cut [13:12:01]*** CUTSNS_PIN = 1 [13:12:01]*** CUTSNS_PIN = 0 [13:12:01]*** Brake cut motor [13:12:01]Read from MH i2c: 01 [13:12:01]MH_I2C_Read... [13:12:01]*** Stop cut motor [13:12:01]*** Cut end [13:12:01]Read from MH i2c: 01 07 00 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: 01 07 00 83 81 00 00 00 00 00 FF 0F 19 [13:12:01]process_action close_receipt done [13:12:01]requested_data is exist [13:12:01]produce_requested_data [13:12:01]requested_item fm.sn is exist - process it [13:12:01]wFMCommunicate request_size=4 [13:12:01]MH_SAM_APDU [13:12:01]CAPDU: 80 11 00 00 [13:12:01]Write to MH i2c: E2 08 00 84 81 80 11 00 00 00 00 00 00 7F [13:12:01]Write i2c OK [13:12:01]MH_I2C_Read... [13:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:01]Read from MH i2c: E2 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: E2 17 00 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: E2 17 00 84 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D1 [13:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:12:01]wFMCommunicate OK [13:12:01]requested_item fd.num is exist - process it [13:12:01]SAM_PROTO_GetFieldsCounters [13:12:01]wFMCommunicate request_size=4 [13:12:01]MH_SAM_APDU [13:12:01]CAPDU: 80 13 00 00 [13:12:01]Write to MH i2c: E2 08 00 85 81 80 13 00 00 00 00 00 00 82 [13:12:01]Write i2c OK [13:12:01]MH_I2C_Read... [13:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:02]Read from MH i2c: E2 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 62 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 62 00 85 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B7 01 00 0E 04 04 00 88 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 77 [13:12:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B7 01 00 0E 04 04 00 88 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 [13:12:02]wFMCommunicate OK [13:12:02]SAM_PROTO_GetFieldsCounters done [13:12:02]requested_item shift.num is exist - process it [13:12:02]requested_item shift.opened is exist - process it [13:12:02]req_shift_opened [13:12:02]FM_GetShiftState [13:12:02]SAM_PROTO_GetShiftState [13:12:02]wFMCommunicate request_size=4 [13:12:02]MH_SAM_APDU [13:12:02]CAPDU: 80 13 01 00 [13:12:02]Write to MH i2c: E2 08 00 86 81 80 13 01 00 00 00 00 00 84 [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:02]Read from MH i2c: E2 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 0E 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 0E 00 86 81 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A2 [13:12:02]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:12:02]wFMCommunicate OK [13:12:02]SAM_PROTO_GetShiftState done [13:12:02]FM_GetShiftState done [13:12:02]req_shift_opened done [13:12:02]requested_item shift.open_date is exist - process it [13:12:02]req_shift_open_date [13:12:02]req_shift_open_date done [13:12:02]produce_requested_data done [13:12:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112496,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:12:02]process_action_free close_receipt [13:12:02]json_value_free [13:12:02]json_value_free done [13:12:02]process_json_proto returns [13:12:02]Send response to host [13:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112496,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:12:02]free response buf [13:12:02]execute_script done [13:12:02]execute_script returns [13:12:02]free content buf [13:12:02]Sock 9.Close socket [13:12:02]Sock 9.Thread stoped [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:27]accept exits with 7 [13:12:27]New connection [13:12:27]New thread 3066813796 created [13:12:27]Thread 3066957156 joined [13:12:27]Waiting for new connection... [13:12:27] Sock 7.Parse request [13:12:27]Sock 7.Check first char [13:12:27]Sock 7.First char is OK [13:12:27]request: POST /json_proto HTTP/1.0 [13:12:27]Method: POST [13:12:27]URL: /json_proto [13:12:27]Method is POST - this is cgi request [13:12:27]url: /json_proto [13:12:27]query_string will be loaded in cgi processing [13:12:27]execute_cgi json_proto POST (null) [13:12:27]execute_cgi path=json_proto method=POST [13:12:27]POST find Content-Length [13:12:27]Host: 172.17.59.68:8080 [13:12:27]Content-Length: 677 [13:12:27]Content-Type: application/json [13:12:27] [13:12:27]POST finish read [13:12:27]Found Content-Length = 677 [13:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:12:27]execute_script... [13:12: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)321177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:12:27]POST & json_proto [13:12:27]process_json_proto [13:12:27]json parsed OK: [13:12:27]protocol is kg_v1.0 [13:12:27]action value=close_receipt [13:12:27]process_action close_receipt [13:12:27]cmd_close_receipt [13:12:27]MH_GetDate [13:12:27]Write to MH i2c: F0 00 00 87 81 F7 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 09 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 09 00 87 81 00 74 1F 78 66 BC EC 60 65 DE [13:12:27]GetLastDocTimeStamp 1719148375 [13:12:27]current date 1719148404 [13:12:27]FM_GetShiftState [13:12:27]SAM_PROTO_GetShiftState [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 13 01 00 [13:12:27]Write to MH i2c: E2 08 00 88 81 80 13 01 00 00 00 00 00 86 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 0E 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 0E 00 88 81 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A4 [13:12:27]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_GetShiftState done [13:12:27]FM_GetShiftState done [13:12:27]opened in 1719106490 [13:12:27]opened+sec_in_day 1719192890 [13:12:27]quantity*price = 50065 [13:12:27]sum+1 = 50067 [13:12:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 98 23.06.2024 13:13 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112497 ФПД: 143276754454919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131324&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112497&fm=143276754454919&tin=02508201610067®Number=0000000000092771&sum=50000 [13:12:28]StoreToDocumentArchive [13:12:28]shift 392 fd 112497 [13:12:28]save to /storage/0392/doc_00112497 [13:12:28]save last doc name /storage/0392/doc_00112497 to /storage/kkm_last_doc_name [13:12:28]save OK [13:12:28]Clear old archive folders... [13:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:28]tlvbuf is 01124240 [13:12:28]SAM_PROTO_ClearQueue [13:12:28]wFMCommunicate request_size=4 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 09 00 00 [13:12:28]Write to MH i2c: E2 08 00 95 81 80 09 00 00 00 00 00 00 88 [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 95 81 00 90 00 8A [13:12:28]RAPDU: 90 00 [13:12:28]wFMCommunicate OK [13:12:28]SAM_PROTO_ClearQueue done [13:12:28]KKMCreateOFDPacket [13:12:28]OFDProtocolAddRootSTLVToBuf [13:12:28]FM_MakeSignedData [13:12:28]FM_MakeSignedData [13:12:28]SAM_PROTO_SignData [13:12:28]wFMCommunicate request_size=4 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 0D 01 02 [13:12:28]Write to MH i2c: E2 08 00 96 81 80 0D 01 02 00 00 00 00 90 [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 96 81 00 90 00 8B [13:12:28]RAPDU: 90 00 [13:12:28]wFMCommunicate OK [13:12:28]wFMCommunicate request_size=255 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 74 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B7 01 00 35 04 06 00 82 [13:12:28]Write to MH i2c: E2 02 01 97 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 74 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B7 01 00 35 04 06 00 82 00 00 4B [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 03 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 03 00 97 81 00 90 00 8C [13:12:29]RAPDU: 90 00 [13:12:29]wFMCommunicate OK [13:12:29]wFMCommunicate request_size=10 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 0D 02 02 05 4F 38 0D C9 87 [13:12:29]Write to MH i2c: E2 0D 00 98 81 80 0D 02 02 05 00 4F 38 0D C9 87 00 00 81 [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 03 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 03 00 98 81 00 90 00 8D [13:12:29]RAPDU: 90 00 [13:12:29]wFMCommunicate OK [13:12:29]wFMCommunicate request_size=4 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 0D 03 02 [13:12:29]Write to MH i2c: E2 08 00 99 81 80 0D 03 02 00 00 00 00 95 [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 0B 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 0B 00 99 81 00 07 6E A7 A0 8A 9A 3D B8 90 00 6B [13:12:29]RAPDU: 07 6E A7 A0 8A 9A 3D B8 90 00 [13:12:29]wFMCommunicate OK [13:12:29]SAM_PROTO_SignData done [13:12:29]FM_MakeSignedData done [13:12:29]CreateOFDProtocolMessage [13:12:29]wFMCommunicate request_size=4 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 11 00 00 [13:12:29]Write to MH i2c: E2 08 00 9A 81 80 11 00 00 00 00 00 00 95 [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 17 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 17 00 9A 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E7 [13:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:12:29]wFMCommunicate OK [13:12:29]CreateOFDProtocolMessage done [13:12:29]OFDSenderStorePacket 112497 [13:12:29]StoreOFDPacket docnum=112497 [13:12:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 F4 07 01 3B D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 74 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B7 01 00 35 04 06 00 82 4F 38 0D C9 87 07 6E A7 A0 8A 9A 3D B8 [13:12:29]CheckFolder [13:12:29]dirname=/storage/ofd_packets [13:12:29]CheckFolder done [13:12:29]ProducePacketName [13:12:29]name=ofd_packets/00112497 [13:12:29]NVStorageSaveData ofd_packets/00112497 [13:12:29]File name is /storage/ofd_packets/00112497 [13:12:29]Write 301 bytes [13:12:29]NVStorageSaveData done [13:12:29]OFDSenderStorePacket done [13:12:29]KKMCreateOFDPacket done [13:12:29]NVStorageSaveData kkm_last_timestamp [13:12:29]File name is /storage/kkm_last_timestamp [13:12:29]Write 4 bytes [13:12:29]NVStorageSaveData done [13:12:29]ExternCall_PrintAddStr [13:12:29]wPrintStart [13:12:29]Write to MH i2c: 01 00 00 9B 81 1C [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 07 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 07 00 9B 81 00 00 00 00 00 FF 0F 31 [13:12:29]RasterBufferAndPrint [13:12:29]line Счет N : (1)321177 [13:12:29]line ИНН: 02508201610067 [13:12:29]line Контрольно-Кассовый Чек [13:12:29]line ПРОДАЖА [13:12:29]line ТРК (МРК, ГНК) : 11 [13:12:29]line Товар: 2710124130 [13:12:29]line Аи-92-К-5 [13:12:29]line 7.540 * 66.40 [13:12:29]line = 500.66 [13:12:29]line НДС 12% НСП 1% [13:12:29]line > о реализуемом товаре [13:12:29]line ОКРУГЛЕНИЕ: -0.66 [13:12:29]line ИТОГО: 500.00 [13:12:29]line Внесено: 500.00 [13:12:29]line СДАЧА: 0.00 [13:12:29]line НСП 1% : 4.43 [13:12:29]line НДС 12% : 53.17 [13:12:29]line Наличными: 500.00 [13:12:29]line Безнал.: 0.00 [13:12:29]line Место: АЗС № 65 "Партнер Нефть" [13:12:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:12:29]line СНО: Общий режим [13:12:29]line Чек 98 23.06.2024 13:13 [13:12:29]line Смена: 392 ФФД: 1.0 [13:12:29]line ЗНМ: 0300000198 [13:12:29]line РНМ: 0000000000092771 [13:12:29]line Версия ККМ: 001 [13:12:29]line ФМ: 0000000000875083 [13:12:29]line ФД: 112497 [13:12:29]line ФПД: 143276754454919 [13:12:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131324&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112497&fm=143276754454919&tin=02508201610067®Number=0000000000092771&sum=50000 [13:12:29]OFD Sender: Processing packet 112497 [packets to send 38, broken 37] [13:12:29]ProducePacketName [13:12:29]name=ofd_packets/00112497 [13:12:29]OFD Sender: To server: pG, [13:12:29]CommunicateWithHost lk.salyk.kg:30040 [13:12:29]ConnectInit lk.salyk.kg [13:12:29]written 0, free lines is 4095 [13:12:29]Connected sock=10 [13:12:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 F4 07 01 3B D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 74 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B7 01 00 35 04 06 00 82 4F 38 0D C9 87 07 6E A7 A0 8A 9A 3D B8 [13:12:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A7 FF 47 00 1A 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B7 01 00 F4 03 04 00 61 B6 77 66 B6 04 01 00 00 17 10 5B 58 5D 1E 1C 27 [13:12:30]CommunicateWithHost err = 0 [13:12:30]CheckOFDResponse [13:12:30]1017 (14) - 77093643461234 [13:12:30]1041 (16) - 0000000000875083 [13:12:30]1040 (4) - 112497 [13:12:30]1012 (4) - 23.06.2024 05:45 [13:12:30]1206 (1) - 0 [13:12:30]OFD Sender: Remove packet 112497 [13:12:30]ProducePacketName [13:12:30]name=ofd_packets/00112497 [13:12:30]NVStorageDeleteData [13:12:30]Write to MH i2c: 01 00 00 C6 81 47 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: 01 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: 01 07 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: 01 07 00 C6 81 00 00 00 00 00 D7 0C 31 [13:12:30]RasterBufferAndPrint [13:12:30]line [13:12:30]line [13:12:30]line [13:12:30]line [13:12:30]line [13:12:30]written 0, free lines is 3294 [13:12:30]MH_Cut [13:12:30]Write to MH i2c: D1 01 00 CD 81 01 20 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: D1 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: D1 01 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: D1 01 00 CD 81 00 1F [13:12:30]Write to MH i2c: 01 00 00 CE 81 4F [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]OFD Sender: No OFD packet to send [13:12:30]*** Cut start [13:12:30]*** Partial cut [13:12:30]*** CUTSNS_PIN = 1 [13:12:30]*** CUTSNS_PIN = 0 [13:12:31]*** Brake cut motor [13:12:31]Read from MH i2c: 01 [13:12:31]MH_I2C_Read... [13:12:31]*** Stop cut motor [13:12:31]*** Cut end [13:12:31]Read from MH i2c: 01 07 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: 01 07 00 CE 81 00 00 00 00 00 FF 0F 64 [13:12:31]process_action close_receipt done [13:12:31]requested_data is exist [13:12:31]produce_requested_data [13:12:31]requested_item fm.sn is exist - process it [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 11 00 00 [13:12:31]Write to MH i2c: E2 08 00 CF 81 80 11 00 00 00 00 00 00 CA [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 17 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 17 00 CF 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [13:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:12:31]wFMCommunicate OK [13:12:31]requested_item fd.num is exist - process it [13:12:31]SAM_PROTO_GetFieldsCounters [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 13 00 00 [13:12:31]Write to MH i2c: E2 08 00 D0 81 80 13 00 00 00 00 00 00 CD [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 62 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 62 00 D0 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B7 01 00 0E 04 04 00 88 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 C6 [13:12:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B7 01 00 0E 04 04 00 88 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 [13:12:31]wFMCommunicate OK [13:12:31]SAM_PROTO_GetFieldsCounters done [13:12:31]requested_item shift.num is exist - process it [13:12:31]requested_item shift.opened is exist - process it [13:12:31]req_shift_opened [13:12:31]FM_GetShiftState [13:12:31]SAM_PROTO_GetShiftState [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 13 01 00 [13:12:31]Write to MH i2c: E2 08 00 D1 81 80 13 01 00 00 00 00 00 CF [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 0E 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 0E 00 D1 81 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 ED [13:12:31]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:12:31]wFMCommunicate OK [13:12:31]SAM_PROTO_GetShiftState done [13:12:31]FM_GetShiftState done [13:12:31]req_shift_opened done [13:12:31]requested_item shift.open_date is exist - process it [13:12:31]req_shift_open_date [13:12:31]req_shift_open_date done [13:12:31]produce_requested_data done [13:12:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112497,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:12:31]process_action_free close_receipt [13:12:31]json_value_free [13:12:31]json_value_free done [13:12:31]process_json_proto returns [13:12:31]Send response to host [13:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112497,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:12:31]free response buf [13:12:31]execute_script done [13:12:31]execute_script returns [13:12:31]free content buf [13:12:31]Sock 7.Close socket [13:12:31]Sock 7.Thread stoped [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:22]accept exits with 9 [13:13:22]New connection [13:13:22]New thread 3066957156 created [13:13:22]Thread 3066813796 joined [13:13:22]Waiting for new connection... [13:13:22] Sock 9.Parse request [13:13:22]Sock 9.Check first char [13:13:22]Sock 9.First char is OK [13:13:22]request: POST /json_proto HTTP/1.0 [13:13:22]Method: POST [13:13:22]URL: /json_proto [13:13:22]Method is POST - this is cgi request [13:13:22]url: /json_proto [13:13:22]query_string will be loaded in cgi processing [13:13:22]execute_cgi json_proto POST (null) [13:13:22]execute_cgi path=json_proto method=POST [13:13:22]POST find Content-Length [13:13:22]Host: 172.17.59.68:8080 [13:13:22]Content-Length: 672 [13:13:22]Content-Type: application/json [13:13:22] [13:13:22]POST finish read [13:13:22]Found Content-Length = 672 [13:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.030, "sum" : 1.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:22]execute_script... [13:13: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)321178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.030, "sum" : 1.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:22]POST & json_proto [13:13:22]process_json_proto [13:13:22]json parsed OK: [13:13:22]protocol is kg_v1.0 [13:13:22]action value=close_receipt [13:13:22]process_action close_receipt [13:13:22]cmd_close_receipt [13:13:22]MH_GetDate [13:13:22]Write to MH i2c: F0 00 00 D2 81 42 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: F0 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: F0 09 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: F0 09 00 D2 81 00 AB 1F 78 66 BC EC 60 65 60 [13:13:22]GetLastDocTimeStamp 1719148404 [13:13:22]current date 1719148459 [13:13:22]FM_GetShiftState [13:13:22]SAM_PROTO_GetShiftState [13:13:22]wFMCommunicate request_size=4 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 13 01 00 [13:13:22]Write to MH i2c: E2 08 00 D3 81 80 13 01 00 00 00 00 00 D1 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 0E 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 0E 00 D3 81 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EF [13:13:22]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:13:22]wFMCommunicate OK [13:13:22]SAM_PROTO_GetShiftState done [13:13:22]FM_GetShiftState done [13:13:22]opened in 1719106490 [13:13:22]opened+sec_in_day 1719192890 [13:13:22]quantity*price = 199 [13:13:22]sum+1 = 200 [13:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 1.00 Внесено: 1000.00 СДАЧА: 999.00 НСП 1% : 0.02 НДС 12% : 0.21 Наличными: 1.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 99 23.06.2024 13:14 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112498 ФПД: 244581794110665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131419&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112498&fm=244581794110665&tin=02508201610067®Number=0000000000092771&sum=100 [13:13:23]StoreToDocumentArchive [13:13:23]shift 392 fd 112498 [13:13:23]save to /storage/0392/doc_00112498 [13:13:23]save last doc name /storage/0392/doc_00112498 to /storage/kkm_last_doc_name [13:13:23]save OK [13:13:23]Clear old archive folders... [13:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:23]tlvbuf is 0126FBD0 [13:13:23]SAM_PROTO_ClearQueue [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 09 00 00 [13:13:23]Write to MH i2c: E2 08 00 E0 81 80 09 00 00 00 00 00 00 D3 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 E0 81 00 90 00 D5 [13:13:23]RAPDU: 90 00 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_ClearQueue done [13:13:23]KKMCreateOFDPacket [13:13:23]OFDProtocolAddRootSTLVToBuf [13:13:23]FM_MakeSignedData [13:13:23]FM_MakeSignedData [13:13:23]SAM_PROTO_SignData [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 0D 01 02 [13:13:23]Write to MH i2c: E2 08 00 E1 81 80 0D 01 02 00 00 00 00 DB [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 E1 81 00 90 00 D6 [13:13:23]RAPDU: 90 00 [13:13:23]wFMCommunicate OK [13:13:23]wFMCommunicate request_size=255 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C7 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 AB 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B7 01 00 35 04 06 00 DE [13:13:23]Write to MH i2c: E2 02 01 E2 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C7 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 AB 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B7 01 00 35 04 06 00 DE 00 00 4E [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 E2 81 00 90 00 D7 [13:13:23]RAPDU: 90 00 [13:13:23]wFMCommunicate OK [13:13:23]wFMCommunicate request_size=10 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 0D 02 02 05 72 22 F4 DC C9 [13:13:23]Write to MH i2c: E2 0D 00 E3 81 80 0D 02 02 05 00 72 22 F4 DC C9 00 00 15 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 E3 81 00 90 00 D8 [13:13:23]RAPDU: 90 00 [13:13:23]wFMCommunicate OK [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 0D 03 02 [13:13:23]Write to MH i2c: E2 08 00 E4 81 80 0D 03 02 00 00 00 00 E0 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0B 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0B 00 E4 81 00 FB DB 3A E4 E1 C5 C2 D5 90 00 12 [13:13:23]RAPDU: FB DB 3A E4 E1 C5 C2 D5 90 00 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_SignData done [13:13:23]FM_MakeSignedData done [13:13:23]CreateOFDProtocolMessage [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 11 00 00 [13:13:23]Write to MH i2c: E2 08 00 E5 81 80 11 00 00 00 00 00 00 E0 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 17 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 17 00 E5 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [13:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:23]wFMCommunicate OK [13:13:23]CreateOFDProtocolMessage done [13:13:23]OFDSenderStorePacket 112498 [13:13:23]StoreOFDPacket docnum=112498 [13:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 48 DA 07 01 8A F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C7 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 AB 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B7 01 00 35 04 06 00 DE 72 22 F4 DC C9 FB DB 3A E4 E1 C5 C2 D5 [13:13:23]CheckFolder [13:13:23]dirname=/storage/ofd_packets [13:13:23]CheckFolder done [13:13:23]ProducePacketName [13:13:23]name=ofd_packets/00112498 [13:13:23]NVStorageSaveData ofd_packets/00112498 [13:13:23]File name is /storage/ofd_packets/00112498 [13:13:23]Write 301 bytes [13:13:23]NVStorageSaveData done [13:13:23]OFDSenderStorePacket done [13:13:23]KKMCreateOFDPacket done [13:13:23]NVStorageSaveData kkm_last_timestamp [13:13:23]File name is /storage/kkm_last_timestamp [13:13:23]Write 4 bytes [13:13:23]NVStorageSaveData done [13:13:24]ExternCall_PrintAddStr [13:13:24]wPrintStart [13:13:24]Write to MH i2c: 01 00 00 E6 81 67 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 E6 81 00 00 00 00 00 FF 0F 7C [13:13:24]RasterBufferAndPrint [13:13:24]line Счет N : (1)321178 [13:13:24]line ИНН: 02508201610067 [13:13:24]line Контрольно-Кассовый Чек [13:13:24]line ПРОДАЖА [13:13:24]line ТРК (МРК, ГНК) : 11 [13:13:24]line Товар: 2710124130 [13:13:24]line Аи-92-К-5 [13:13:24]line 0.030 * 66.40 [13:13:24]line = 1.99 [13:13:24]line НДС 12% НСП 1% [13:13:24]line > о реализуемом товаре [13:13:24]line ОКРУГЛЕНИЕ: -0.99 [13:13:24]line ИТОГО: 1.00 [13:13:24]line Внесено: 1000.00 [13:13:24]line СДАЧА: 999.00 [13:13:24]line НСП 1% : 0.02 [13:13:24]line НДС 12% : 0.21 [13:13:24]line Наличными: 1.00 [13:13:24]line Безнал.: 0.00 [13:13:24]line Место: АЗС № 65 "Партнер Нефть" [13:13:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:13:24]line СНО: Общий режим [13:13:24]line Чек 99 23.06.2024 13:14 [13:13:24]line Смена: 392 ФФД: 1.0 [13:13:24]line ЗНМ: 0300000198 [13:13:24]line РНМ: 0000000000092771 [13:13:24]line Версия ККМ: 001 [13:13:24]line ФМ: 0000000000875083 [13:13:24]line ФД: 112498 [13:13:24]line ФПД: 244581794110665 [13:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131419&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112498&fm=244581794110665&tin=02508201610067®Number=0000000000092771&sum=100 [13:13:24]written 0, free lines is 4095 [13:13:24]OFD Sender: Processing packet 112498 [packets to send 38, broken 37] [13:13:24]ProducePacketName [13:13:24]name=ofd_packets/00112498 [13:13:24]OFD Sender: To server: pG, [13:13:24]CommunicateWithHost lk.salyk.kg:30040 [13:13:24]ConnectInit lk.salyk.kg [13:13:24]Connected sock=10 [13:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 48 DA 07 01 8A F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C7 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 AB 1F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B7 01 00 35 04 06 00 DE 72 22 F4 DC C9 FB DB 3A E4 E1 C5 C2 D5 [13:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 31 50 47 00 4D 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 38 37 35 30 38 33 10 04 04 00 72 B7 01 00 F4 03 04 00 97 B6 77 66 B6 04 01 00 00 07 68 F5 46 78 20 BF 0E [13:13:24]CommunicateWithHost err = 0 [13:13:24]CheckOFDResponse [13:13:24]1017 (14) - 77093643461234 [13:13:24]1041 (16) - 0000000000875083 [13:13:24]1040 (4) - 112498 [13:13:24]1012 (4) - 23.06.2024 05:45 [13:13:24]1206 (1) - 0 [13:13:24]OFD Sender: Remove packet 112498 [13:13:24]ProducePacketName [13:13:24]name=ofd_packets/00112498 [13:13:24]NVStorageDeleteData [13:13:24]Write to MH i2c: 01 00 00 11 82 93 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 11 82 00 00 00 00 00 D5 0C 7B [13:13:24]RasterBufferAndPrint [13:13:24]line [13:13:24]line [13:13:24]line [13:13:24]line [13:13:24]line [13:13:24]written 0, free lines is 3292 [13:13:24]MH_Cut [13:13:24]Write to MH i2c: D1 01 00 18 82 01 6C [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: D1 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: D1 01 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: D1 01 00 18 82 00 6B [13:13:24]Write to MH i2c: 01 00 00 19 82 9B [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:25]OFD Sender: No OFD packet to send [13:13:25]*** Cut start [13:13:25]*** Partial cut [13:13:25]*** CUTSNS_PIN = 1 [13:13:25]*** CUTSNS_PIN = 0 [13:13:25]*** Brake cut motor [13:13:26]Read from MH i2c: 01 [13:13:26]MH_I2C_Read... [13:13:26]*** Stop cut motor [13:13:26]*** Cut end [13:13:26]Read from MH i2c: 01 07 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: 01 07 00 19 82 00 00 00 00 00 FF 0F B0 [13:13:26]process_action close_receipt done [13:13:26]requested_data is exist [13:13:26]produce_requested_data [13:13:26]requested_item fm.sn is exist - process it [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 11 00 00 [13:13:26]Write to MH i2c: E2 08 00 1A 82 80 11 00 00 00 00 00 00 16 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 17 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 17 00 1A 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 68 [13:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:26]wFMCommunicate OK [13:13:26]requested_item fd.num is exist - process it [13:13:26]SAM_PROTO_GetFieldsCounters [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 13 00 00 [13:13:26]Write to MH i2c: E2 08 00 1B 82 80 13 00 00 00 00 00 00 19 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 62 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 62 00 1B 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [13:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B7 01 00 0E 04 04 00 88 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 [13:13:26]wFMCommunicate OK [13:13:26]SAM_PROTO_GetFieldsCounters done [13:13:26]requested_item shift.num is exist - process it [13:13:26]requested_item shift.opened is exist - process it [13:13:26]req_shift_opened [13:13:26]FM_GetShiftState [13:13:26]SAM_PROTO_GetShiftState [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 13 01 00 [13:13:26]Write to MH i2c: E2 08 00 1C 82 80 13 01 00 00 00 00 00 1B [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 0E 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 0E 00 1C 82 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 39 [13:13:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:13:26]wFMCommunicate OK [13:13:26]SAM_PROTO_GetShiftState done [13:13:26]FM_GetShiftState done [13:13:26]req_shift_opened done [13:13:26]requested_item shift.open_date is exist - process it [13:13:26]req_shift_open_date [13:13:26]req_shift_open_date done [13:13:26]produce_requested_data done [13:13:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112498,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:13:26]process_action_free close_receipt [13:13:26]json_value_free [13:13:26]json_value_free done [13:13:26]process_json_proto returns [13:13:26]Send response to host [13:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112498,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:13:26]free response buf [13:13:26]execute_script done [13:13:26]execute_script returns [13:13:26]free content buf [13:13:26]Sock 9.Close socket [13:13:26]Sock 9.Thread stoped [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:13]accept exits with 7 [13:15:13]New connection [13:15:13]New thread 3066813796 created [13:15:13]Thread 3066957156 joined [13:15:13]Waiting for new connection... [13:15:13] Sock 7.Parse request [13:15:13]Sock 7.Check first char [13:15:13]Sock 7.First char is OK [13:15:13]request: POST /json_proto HTTP/1.0 [13:15:13]Method: POST [13:15:13]URL: /json_proto [13:15:13]Method is POST - this is cgi request [13:15:13]url: /json_proto [13:15:13]query_string will be loaded in cgi processing [13:15:13]execute_cgi json_proto POST (null) [13:15:13]execute_cgi path=json_proto method=POST [13:15:13]POST find Content-Length [13:15:13]Host: 172.17.59.68:8080 [13:15:13]Content-Length: 682 [13:15:13]Content-Type: application/json [13:15:13] [13:15:13]POST finish read [13:15:13]Found Content-Length = 682 [13:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:13]execute_script... [13:15: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)321179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:13]POST & json_proto [13:15:13]process_json_proto [13:15:13]json parsed OK: [13:15:13]protocol is kg_v1.0 [13:15:13]action value=close_receipt [13:15:13]process_action close_receipt [13:15:13]cmd_close_receipt [13:15:13]MH_GetDate [13:15:13]Write to MH i2c: F0 00 00 1D 82 8E [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 09 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 09 00 1D 82 00 1A 20 78 66 BC EC 60 65 1C [13:15:13]GetLastDocTimeStamp 1719148459 [13:15:13]current date 1719148570 [13:15:13]FM_GetShiftState [13:15:13]SAM_PROTO_GetShiftState [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 13 01 00 [13:15:13]Write to MH i2c: E2 08 00 1E 82 80 13 01 00 00 00 00 00 1D [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0E 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0E 00 1E 82 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3B [13:15:13]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:15:13]wFMCommunicate OK [13:15:13]SAM_PROTO_GetShiftState done [13:15:13]FM_GetShiftState done [13:15:13]opened in 1719106490 [13:15:13]opened+sec_in_day 1719192890 [13:15:13]quantity*price = 100064 [13:15:13]sum+1 = 100066 [13:15:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 100 23.06.2024 13:16 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112499 ФПД: 115798116790240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131610&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112499&fm=115798116790240&tin=02508201610067®Number=0000000000092771&sum=100000 [13:15:14]StoreToDocumentArchive [13:15:14]shift 392 fd 112499 [13:15:14]save to /storage/0392/doc_00112499 [13:15:14]save last doc name /storage/0392/doc_00112499 to /storage/kkm_last_doc_name [13:15:14]save OK [13:15:14]Clear old archive folders... [13:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:14]tlvbuf is 011C7BB0 [13:15:14]SAM_PROTO_ClearQueue [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 09 00 00 [13:15:14]Write to MH i2c: E2 08 00 2B 82 80 09 00 00 00 00 00 00 1F [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 2B 82 00 90 00 21 [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]SAM_PROTO_ClearQueue done [13:15:14]KKMCreateOFDPacket [13:15:14]OFDProtocolAddRootSTLVToBuf [13:15:14]FM_MakeSignedData [13:15:14]FM_MakeSignedData [13:15:14]SAM_PROTO_SignData [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 01 02 [13:15:14]Write to MH i2c: E2 08 00 2C 82 80 0D 01 02 00 00 00 00 27 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 2C 82 00 90 00 22 [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=255 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1A 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B7 01 00 35 04 06 00 69 [13:15:14]Write to MH i2c: E2 02 01 2D 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1A 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B7 01 00 35 04 06 00 69 00 00 C4 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 2D 82 00 90 00 23 [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=10 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 02 02 05 51 59 9D EF E0 [13:15:14]Write to MH i2c: E2 0D 00 2E 82 80 0D 02 02 05 00 51 59 9D EF E0 00 00 4A [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 2E 82 00 90 00 24 [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 03 02 [13:15:14]Write to MH i2c: E2 08 00 2F 82 80 0D 03 02 00 00 00 00 2C [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 0B 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 0B 00 2F 82 00 96 CF 76 09 A2 8C 7A A3 90 00 5C [13:15:15]RAPDU: 96 CF 76 09 A2 8C 7A A3 90 00 [13:15:15]wFMCommunicate OK [13:15:15]SAM_PROTO_SignData done [13:15:15]FM_MakeSignedData done [13:15:15]CreateOFDProtocolMessage [13:15:15]wFMCommunicate request_size=4 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 11 00 00 [13:15:15]Write to MH i2c: E2 08 00 30 82 80 11 00 00 00 00 00 00 2C [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 17 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 17 00 30 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7E [13:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:15:15]wFMCommunicate OK [13:15:15]CreateOFDProtocolMessage done [13:15:15]OFDSenderStorePacket 112499 [13:15:15]StoreOFDPacket docnum=112499 [13:15:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 6C 07 01 F5 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1A 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B7 01 00 35 04 06 00 69 51 59 9D EF E0 96 CF 76 09 A2 8C 7A A3 [13:15:15]CheckFolder [13:15:15]dirname=/storage/ofd_packets [13:15:15]CheckFolder done [13:15:15]ProducePacketName [13:15:15]name=ofd_packets/00112499 [13:15:15]NVStorageSaveData ofd_packets/00112499 [13:15:15]File name is /storage/ofd_packets/00112499 [13:15:15]Write 301 bytes [13:15:15]NVStorageSaveData done [13:15:15]OFDSenderStorePacket done [13:15:15]KKMCreateOFDPacket done [13:15:15]NVStorageSaveData kkm_last_timestamp [13:15:15]File name is /storage/kkm_last_timestamp [13:15:15]Write 4 bytes [13:15:15]NVStorageSaveData done [13:15:15]ExternCall_PrintAddStr [13:15:15]wPrintStart [13:15:15]Write to MH i2c: 01 00 00 31 82 B3 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 31 82 00 00 00 00 00 FF 0F C8 [13:15:15]RasterBufferAndPrint [13:15:15]line Счет N : (1)321179 [13:15:15]line ИНН: 02508201610067 [13:15:15]line Контрольно-Кассовый Чек [13:15:15]line ПРОДАЖА [13:15:15]line ТРК (МРК, ГНК) : 11 [13:15:15]line Товар: 2710124130 [13:15:15]line Аи-92-К-5 [13:15:15]line 15.070 * 66.40 [13:15:15]line = 1000.65 [13:15:15]line НДС 12% НСП 1% [13:15:15]line > о реализуемом товаре [13:15:15]line ОКРУГЛЕНИЕ: -0.65 [13:15:15]line ИТОГО: 1000.00 [13:15:15]line Внесено: 1000.00 [13:15:15]line СДАЧА: 0.00 [13:15:15]line НСП 1% : 8.85 [13:15:15]line НДС 12% : 106.26 [13:15:15]line Наличными: 1000.00 [13:15:15]line Безнал.: 0.00 [13:15:15]line Место: АЗС № 65 "Партнер Нефть" [13:15:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:15:15]line СНО: Общий режим [13:15:15]line Чек 100 23.06.2024 13:16 [13:15:15]line Смена: 392 ФФД: 1.0 [13:15:15]line ЗНМ: 0300000198 [13:15:15]line РНМ: 0000000000092771 [13:15:15]line Версия ККМ: 001 [13:15:15]line ФМ: 0000000000875083 [13:15:15]line ФД: 112499 [13:15:15]line ФПД: 115798116790240 [13:15:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131610&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112499&fm=115798116790240&tin=02508201610067®Number=0000000000092771&sum=100000 [13:15:15]OFD Sender: Processing packet 112499 [packets to send 38, broken 37] [13:15:15]ProducePacketName [13:15:15]name=ofd_packets/00112499 [13:15:15]OFD Sender: To server: pG, [13:15:15]CommunicateWithHost lk.salyk.kg:30040 [13:15:15]ConnectInit lk.salyk.kg [13:15:15]written 0, free lines is 4095 [13:15:15]Connected sock=10 [13:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 6C 07 01 F5 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1A 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B7 01 00 35 04 06 00 69 51 59 9D EF E0 96 CF 76 09 A2 8C 7A A3 [13:15:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 55 9B 47 00 0A 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B7 01 00 F4 03 04 00 07 B7 77 66 B6 04 01 00 00 24 E7 27 45 09 BD 8C D9 [13:15:15]CommunicateWithHost err = 0 [13:15:15]CheckOFDResponse [13:15:15]1017 (14) - 77093643461234 [13:15:15]1041 (16) - 0000000000875083 [13:15:15]1040 (4) - 112499 [13:15:15]1012 (4) - 23.06.2024 05:47 [13:15:15]1206 (1) - 0 [13:15:15]OFD Sender: Remove packet 112499 [13:15:15]ProducePacketName [13:15:15]name=ofd_packets/00112499 [13:15:15]NVStorageDeleteData [13:15:15]Write to MH i2c: 01 00 00 5C 82 DE [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 5C 82 00 00 00 00 00 E7 0C D8 [13:15:15]RasterBufferAndPrint [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]written 0, free lines is 3313 [13:15:15]MH_Cut [13:15:15]Write to MH i2c: D1 01 00 63 82 01 B7 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 01 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 01 00 63 82 00 B6 [13:15:15]Write to MH i2c: 01 00 00 64 82 E6 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:16]OFD Sender: No OFD packet to send [13:15:16]*** Cut start [13:15:16]*** Partial cut [13:15:16]*** CUTSNS_PIN = 1 [13:15:16]*** CUTSNS_PIN = 0 [13:15:16]*** Brake cut motor [13:15:17]Read from MH i2c: 01 [13:15:17]MH_I2C_Read... [13:15:17]*** Stop cut motor [13:15:17]*** Cut end [13:15:17]Read from MH i2c: 01 07 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: 01 07 00 64 82 00 00 00 00 00 FF 0F FB [13:15:17]process_action close_receipt done [13:15:17]requested_data is exist [13:15:17]produce_requested_data [13:15:17]requested_item fm.sn is exist - process it [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 11 00 00 [13:15:17]Write to MH i2c: E2 08 00 65 82 80 11 00 00 00 00 00 00 61 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 65 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [13:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:15:17]wFMCommunicate OK [13:15:17]requested_item fd.num is exist - process it [13:15:17]SAM_PROTO_GetFieldsCounters [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 13 00 00 [13:15:17]Write to MH i2c: E2 08 00 66 82 80 13 00 00 00 00 00 00 64 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 62 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 62 00 66 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B7 01 00 0E 04 04 00 88 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 65 [13:15:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B7 01 00 0E 04 04 00 88 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 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_GetFieldsCounters done [13:15:17]requested_item shift.num is exist - process it [13:15:17]requested_item shift.opened is exist - process it [13:15:17]req_shift_opened [13:15:17]FM_GetShiftState [13:15:17]SAM_PROTO_GetShiftState [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 13 01 00 [13:15:17]Write to MH i2c: E2 08 00 67 82 80 13 01 00 00 00 00 00 66 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0E 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0E 00 67 82 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 84 [13:15:17]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_GetShiftState done [13:15:17]FM_GetShiftState done [13:15:17]req_shift_opened done [13:15:17]requested_item shift.open_date is exist - process it [13:15:17]req_shift_open_date [13:15:17]req_shift_open_date done [13:15:17]produce_requested_data done [13:15:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112499,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:15:17]process_action_free close_receipt [13:15:17]json_value_free [13:15:17]json_value_free done [13:15:17]process_json_proto returns [13:15:17]Send response to host [13:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112499,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:15:17]free response buf [13:15:17]execute_script done [13:15:17]execute_script returns [13:15:17]free content buf [13:15:17]Sock 7.Close socket [13:15:17]Sock 7.Thread stoped [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:16]accept exits with 9 [13:17:16]New connection [13:17:16]New thread 3066957156 created [13:17:16]Thread 3066813796 joined [13:17:16]Waiting for new connection... [13:17:16] Sock 9.Parse request [13:17:16]Sock 9.Check first char [13:17:16]Sock 9.First char is OK [13:17:16]request: POST /json_proto HTTP/1.0 [13:17:16]Method: POST [13:17:16]URL: /json_proto [13:17:16]Method is POST - this is cgi request [13:17:16]url: /json_proto [13:17:16]query_string will be loaded in cgi processing [13:17:16]execute_cgi json_proto POST (null) [13:17:16]execute_cgi path=json_proto method=POST [13:17:16]POST find Content-Length [13:17:16]Host: 172.17.59.68:8080 [13:17:16]Content-Length: 682 [13:17:16]Content-Type: application/json [13:17:16] [13:17:16]POST finish read [13:17:16]Found Content-Length = 682 [13:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:16]execute_script... [13:17: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)321180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:16]POST & json_proto [13:17:16]process_json_proto [13:17:16]json parsed OK: [13:17:16]protocol is kg_v1.0 [13:17:16]action value=close_receipt [13:17:16]process_action close_receipt [13:17:16]cmd_close_receipt [13:17:16]MH_GetDate [13:17:16]Write to MH i2c: F0 00 00 68 82 D9 [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: F0 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: F0 09 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: F0 09 00 68 82 00 96 20 78 66 BC EC 60 65 E3 [13:17:16]GetLastDocTimeStamp 1719148570 [13:17:16]current date 1719148694 [13:17:16]FM_GetShiftState [13:17:16]SAM_PROTO_GetShiftState [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 13 01 00 [13:17:16]Write to MH i2c: E2 08 00 69 82 80 13 01 00 00 00 00 00 68 [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 0E 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 0E 00 69 82 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 86 [13:17:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:17:16]wFMCommunicate OK [13:17:16]SAM_PROTO_GetShiftState done [13:17:16]FM_GetShiftState done [13:17:16]opened in 1719106490 [13:17:16]opened+sec_in_day 1719192890 [13:17:16]quantity*price = 100064 [13:17:16]sum+1 = 100066 [13:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 101 23.06.2024 13:18 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112500 ФПД: 248861032288351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131814&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112500&fm=248861032288351&tin=02508201610067®Number=0000000000092771&sum=100000 [13:17:17]StoreToDocumentArchive [13:17:17]shift 392 fd 112500 [13:17:17]save to /storage/0392/doc_00112500 [13:17:17]save last doc name /storage/0392/doc_00112500 to /storage/kkm_last_doc_name [13:17:18]save OK [13:17:18]Clear old archive folders... [13:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:18]tlvbuf is 01196860 [13:17:18]SAM_PROTO_ClearQueue [13:17:18]wFMCommunicate request_size=4 [13:17:18]MH_SAM_APDU [13:17:18]CAPDU: 80 09 00 00 [13:17:18]Write to MH i2c: E2 08 00 76 82 80 09 00 00 00 00 00 00 6A [13:17:18]Write i2c OK [13:17:18]MH_I2C_Read... [13:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:18]Read from MH i2c: E2 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 03 00 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 03 00 76 82 00 90 00 6C [13:17:18]RAPDU: 90 00 [13:17:18]wFMCommunicate OK [13:17:18]SAM_PROTO_ClearQueue done [13:17:18]KKMCreateOFDPacket [13:17:18]OFDProtocolAddRootSTLVToBuf [13:17:18]FM_MakeSignedData [13:17:18]FM_MakeSignedData [13:17:18]SAM_PROTO_SignData [13:17:18]wFMCommunicate request_size=4 [13:17:18]MH_SAM_APDU [13:17:18]CAPDU: 80 0D 01 02 [13:17:18]Write to MH i2c: E2 08 00 77 82 80 0D 01 02 00 00 00 00 72 [13:17:18]Write i2c OK [13:17:18]MH_I2C_Read... [13:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:18]Read from MH i2c: E2 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 03 00 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 03 00 77 82 00 90 00 6D [13:17:18]RAPDU: 90 00 [13:17:18]wFMCommunicate OK [13:17:18]wFMCommunicate request_size=255 [13:17:18]MH_SAM_APDU [13:17: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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 96 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B7 01 00 35 04 06 00 E2 [13:17:18]Write to MH i2c: E2 02 01 78 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 96 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B7 01 00 35 04 06 00 E2 00 00 06 [13:17:18]Write i2c OK [13:17:18]MH_I2C_Read... [13:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:18]Read from MH i2c: E2 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 03 00 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 03 00 78 82 00 90 00 6E [13:17:18]RAPDU: 90 00 [13:17:18]wFMCommunicate OK [13:17:18]wFMCommunicate request_size=10 [13:17:18]MH_SAM_APDU [13:17:18]CAPDU: 80 0D 02 02 05 56 79 6D 90 5F [13:17:18]Write to MH i2c: E2 0D 00 79 82 80 0D 02 02 05 00 56 79 6D 90 5F 00 00 AA [13:17:18]Write i2c OK [13:17:18]MH_I2C_Read... [13:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:18]Read from MH i2c: E2 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 03 00 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 03 00 79 82 00 90 00 6F [13:17:18]RAPDU: 90 00 [13:17:18]wFMCommunicate OK [13:17:18]wFMCommunicate request_size=4 [13:17:18]MH_SAM_APDU [13:17:18]CAPDU: 80 0D 03 02 [13:17:18]Write to MH i2c: E2 08 00 7A 82 80 0D 03 02 00 00 00 00 77 [13:17:18]Write i2c OK [13:17:18]MH_I2C_Read... [13:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:18]Read from MH i2c: E2 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 0B 00 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 0B 00 7A 82 00 69 B1 5E 58 65 F6 CB 38 90 00 A6 [13:17:18]RAPDU: 69 B1 5E 58 65 F6 CB 38 90 00 [13:17:18]wFMCommunicate OK [13:17:18]SAM_PROTO_SignData done [13:17:18]FM_MakeSignedData done [13:17:18]CreateOFDProtocolMessage [13:17:18]wFMCommunicate request_size=4 [13:17:18]MH_SAM_APDU [13:17:18]CAPDU: 80 11 00 00 [13:17:18]Write to MH i2c: E2 08 00 7B 82 80 11 00 00 00 00 00 00 77 [13:17:18]Write i2c OK [13:17:18]MH_I2C_Read... [13:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:18]Read from MH i2c: E2 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 17 00 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: E2 17 00 7B 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C9 [13:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:17:18]wFMCommunicate OK [13:17:18]CreateOFDProtocolMessage done [13:17:18]OFDSenderStorePacket 112500 [13:17:18]StoreOFDPacket docnum=112500 [13:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 55 07 01 DD 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 96 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B7 01 00 35 04 06 00 E2 56 79 6D 90 5F 69 B1 5E 58 65 F6 CB 38 [13:17:18]CheckFolder [13:17:18]dirname=/storage/ofd_packets [13:17:18]CheckFolder done [13:17:18]ProducePacketName [13:17:18]name=ofd_packets/00112500 [13:17:18]NVStorageSaveData ofd_packets/00112500 [13:17:18]File name is /storage/ofd_packets/00112500 [13:17:18]Write 301 bytes [13:17:18]NVStorageSaveData done [13:17:18]OFDSenderStorePacket done [13:17:18]KKMCreateOFDPacket done [13:17:18]NVStorageSaveData kkm_last_timestamp [13:17:18]File name is /storage/kkm_last_timestamp [13:17:18]Write 4 bytes [13:17:18]NVStorageSaveData done [13:17:18]ExternCall_PrintAddStr [13:17:18]wPrintStart [13:17:18]Write to MH i2c: 01 00 00 7C 82 FE [13:17:18]Write i2c OK [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: 01 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: 01 07 00 [13:17:18]MH_I2C_Read... [13:17:18]Read from MH i2c: 01 07 00 7C 82 00 00 00 00 00 FF 0F 13 [13:17:18]RasterBufferAndPrint [13:17:18]line Счет N : (1)321180 [13:17:18]line ИНН: 02508201610067 [13:17:18]line Контрольно-Кассовый Чек [13:17:18]line ПРОДАЖА [13:17:18]line ТРК (МРК, ГНК) : 11 [13:17:18]line Товар: 2710124130 [13:17:18]line Аи-92-К-5 [13:17:18]line 15.070 * 66.40 [13:17:18]line = 1000.65 [13:17:18]line НДС 12% НСП 1% [13:17:18]line > о реализуемом товаре [13:17:18]line ОКРУГЛЕНИЕ: -0.65 [13:17:18]line ИТОГО: 1000.00 [13:17:18]line Внесено: 1000.00 [13:17:18]line СДАЧА: 0.00 [13:17:18]line НСП 1% : 8.85 [13:17:18]line НДС 12% : 106.26 [13:17:18]line Наличными: 1000.00 [13:17:18]line Безнал.: 0.00 [13:17:18]line Место: АЗС № 65 "Партнер Нефть" [13:17:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:17:18]line СНО: Общий режим [13:17:18]line Чек 101 23.06.2024 13:18 [13:17:18]line Смена: 392 ФФД: 1.0 [13:17:18]line ЗНМ: 0300000198 [13:17:18]line РНМ: 0000000000092771 [13:17:18]line Версия ККМ: 001 [13:17:18]line ФМ: 0000000000875083 [13:17:18]line ФД: 112500 [13:17:18]line ФПД: 248861032288351 [13:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131814&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112500&fm=248861032288351&tin=02508201610067®Number=0000000000092771&sum=100000 [13:17:18]OFD Sender: Processing packet 112500 [packets to send 38, broken 37] [13:17:18]ProducePacketName [13:17:18]name=ofd_packets/00112500 [13:17:18]OFD Sender: To server: pG, [13:17:18]CommunicateWithHost lk.salyk.kg:30040 [13:17:18]ConnectInit lk.salyk.kg [13:17:18]written 0, free lines is 4095 [13:17:18]Connected sock=10 [13:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 55 07 01 DD 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 96 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B7 01 00 35 04 06 00 E2 56 79 6D 90 5F 69 B1 5E 58 65 F6 CB 38 [13:17:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D0 06 47 00 C5 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B7 01 00 F4 03 04 00 82 B7 77 66 B6 04 01 00 00 78 B2 76 74 19 C7 A4 3E [13:17:19]CommunicateWithHost err = 0 [13:17:19]CheckOFDResponse [13:17:19]1017 (14) - 77093643461234 [13:17:19]1041 (16) - 0000000000875083 [13:17:19]1040 (4) - 112500 [13:17:19]1012 (4) - 23.06.2024 05:49 [13:17:19]1206 (1) - 0 [13:17:19]OFD Sender: Remove packet 112500 [13:17:19]ProducePacketName [13:17:19]name=ofd_packets/00112500 [13:17:19]NVStorageDeleteData [13:17:19]Write to MH i2c: 01 00 00 A7 82 29 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: 01 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: 01 07 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: 01 07 00 A7 82 00 00 00 00 00 DD 0C 19 [13:17:19]RasterBufferAndPrint [13:17:19]line [13:17:19]line [13:17:19]line [13:17:19]line [13:17:19]line [13:17:19]written 0, free lines is 3299 [13:17:19]MH_Cut [13:17:19]Write to MH i2c: D1 01 00 AE 82 01 02 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: D1 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: D1 01 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: D1 01 00 AE 82 00 01 [13:17:19]Write to MH i2c: 01 00 00 AF 82 31 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]OFD Sender: No OFD packet to send [13:17:20]*** Cut start [13:17:20]*** Partial cut [13:17:20]*** CUTSNS_PIN = 1 [13:17:20]*** CUTSNS_PIN = 0 [13:17:20]*** Brake cut motor [13:17:20]Read from MH i2c: 01 [13:17:20]MH_I2C_Read... [13:17:20]*** Stop cut motor [13:17:20]*** Cut end [13:17:20]Read from MH i2c: 01 07 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: 01 07 00 AF 82 00 00 00 00 00 FF 0F 46 [13:17:20]process_action close_receipt done [13:17:20]requested_data is exist [13:17:20]produce_requested_data [13:17:20]requested_item fm.sn is exist - process it [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 11 00 00 [13:17:20]Write to MH i2c: E2 08 00 B0 82 80 11 00 00 00 00 00 00 AC [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 17 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 17 00 B0 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [13:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:17:20]wFMCommunicate OK [13:17:20]requested_item fd.num is exist - process it [13:17:20]SAM_PROTO_GetFieldsCounters [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 13 00 00 [13:17:20]Write to MH i2c: E2 08 00 B1 82 80 13 00 00 00 00 00 00 AF [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 62 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 62 00 B1 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B7 01 00 0E 04 04 00 88 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 B4 [13:17:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B7 01 00 0E 04 04 00 88 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 [13:17:20]wFMCommunicate OK [13:17:20]SAM_PROTO_GetFieldsCounters done [13:17:20]requested_item shift.num is exist - process it [13:17:20]requested_item shift.opened is exist - process it [13:17:20]req_shift_opened [13:17:20]FM_GetShiftState [13:17:20]SAM_PROTO_GetShiftState [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 13 01 00 [13:17:20]Write to MH i2c: E2 08 00 B2 82 80 13 01 00 00 00 00 00 B1 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 0E 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 0E 00 B2 82 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CF [13:17:20]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:17:20]wFMCommunicate OK [13:17:20]SAM_PROTO_GetShiftState done [13:17:20]FM_GetShiftState done [13:17:20]req_shift_opened done [13:17:20]requested_item shift.open_date is exist - process it [13:17:20]req_shift_open_date [13:17:20]req_shift_open_date done [13:17:20]produce_requested_data done [13:17:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112500,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:17:20]process_action_free close_receipt [13:17:20]json_value_free [13:17:20]json_value_free done [13:17:20]process_json_proto returns [13:17:20]Send response to host [13:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112500,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:17:20]free response buf [13:17:20]execute_script done [13:17:20]execute_script returns [13:17:20]free content buf [13:17:20]Sock 9.Close socket [13:17:20]Sock 9.Thread stoped [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:33]accept exits with 7 [13:18:33]New connection [13:18:33]New thread 3066813796 created [13:18:33]Thread 3066957156 joined [13:18:33]Waiting for new connection... [13:18:33] Sock 7.Parse request [13:18:33]Sock 7.Check first char [13:18:33]Sock 7.First char is OK [13:18:33]request: POST /json_proto HTTP/1.0 [13:18:33]Method: POST [13:18:33]URL: /json_proto [13:18:33]Method is POST - this is cgi request [13:18:33]url: /json_proto [13:18:33]query_string will be loaded in cgi processing [13:18:33]execute_cgi json_proto POST (null) [13:18:33]execute_cgi path=json_proto method=POST [13:18:33]POST find Content-Length [13:18:33]Host: 172.17.59.68:8080 [13:18:33]Content-Length: 808 [13:18:33]Content-Type: application/json [13:18:33] [13:18:33]POST finish read [13:18:33]Found Content-Length = 808 [13:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:33]execute_script... [13:18: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)321181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:33]POST & json_proto [13:18:33]process_json_proto [13:18:33]json parsed OK: [13:18:33]protocol is kg_v1.0 [13:18:33]action value=close_receipt [13:18:33]process_action close_receipt [13:18:33]cmd_close_receipt [13:18:33]MH_GetDate [13:18:33]Write to MH i2c: F0 00 00 B3 82 24 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: F0 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: F0 09 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: F0 09 00 B3 82 00 E2 20 78 66 BC EC 60 65 7A [13:18:33]GetLastDocTimeStamp 1719148694 [13:18:33]current date 1719148770 [13:18:33]FM_GetShiftState [13:18:33]SAM_PROTO_GetShiftState [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 13 01 00 [13:18:33]Write to MH i2c: E2 08 00 B4 82 80 13 01 00 00 00 00 00 B3 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0E 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0E 00 B4 82 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D1 [13:18:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:18:33]wFMCommunicate OK [13:18:33]SAM_PROTO_GetShiftState done [13:18:33]FM_GetShiftState done [13:18:33]opened in 1719106490 [13:18:33]opened+sec_in_day 1719192890 [13:18:33]quantity*price = 150064 [13:18:33]sum+1 = 150065 [13:18:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 102 23.06.2024 13:19 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112501 ФПД: 29371714364199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112501&fm=29371714364199&tin=02508201610067®Number=0000000000092771&sum=150064 [13:18:34]StoreToDocumentArchive [13:18:34]shift 392 fd 112501 [13:18:34]save to /storage/0392/doc_00112501 [13:18:34]save last doc name /storage/0392/doc_00112501 to /storage/kkm_last_doc_name [13:18:34]save OK [13:18:34]Clear old archive folders... [13:18:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:34]tlvbuf is 0131B880 [13:18:34]SAM_PROTO_ClearQueue [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 09 00 00 [13:18:34]Write to MH i2c: E2 08 00 C1 82 80 09 00 00 00 00 00 00 B5 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 C1 82 00 90 00 B7 [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]SAM_PROTO_ClearQueue done [13:18:34]KKMCreateOFDPacket [13:18:34]OFDProtocolAddRootSTLVToBuf [13:18:34]FM_MakeSignedData [13:18:34]FM_MakeSignedData [13:18:34]SAM_PROTO_SignData [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 0D 01 02 [13:18:34]Write to MH i2c: E2 08 00 C2 82 80 0D 01 02 00 00 00 00 BD [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:34]OFD Sender: No OFD packet to send [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 C2 82 00 90 00 B8 [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]wFMCommunicate request_size=255 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E2 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B7 01 00 35 04 06 00 1A [13:18:34]Write to MH i2c: E2 02 01 C3 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E2 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B7 01 00 35 04 06 00 1A 00 00 AD [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:35]Read from MH i2c: E2 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 03 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 03 00 C3 82 00 90 00 B9 [13:18:35]RAPDU: 90 00 [13:18:35]wFMCommunicate OK [13:18:35]wFMCommunicate request_size=10 [13:18:35]MH_SAM_APDU [13:18:35]CAPDU: 80 0D 02 02 05 B6 A2 99 E3 27 [13:18:35]Write to MH i2c: E2 0D 00 C4 82 80 0D 02 02 05 00 B6 A2 99 E3 27 00 00 C5 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:35]Read from MH i2c: E2 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 03 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 03 00 C4 82 00 90 00 BA [13:18:35]RAPDU: 90 00 [13:18:35]wFMCommunicate OK [13:18:35]wFMCommunicate request_size=4 [13:18:35]MH_SAM_APDU [13:18:35]CAPDU: 80 0D 03 02 [13:18:35]Write to MH i2c: E2 08 00 C5 82 80 0D 03 02 00 00 00 00 C2 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:35]Read from MH i2c: E2 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 0B 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 0B 00 C5 82 00 0F F4 AF C5 E3 BA BE 7A 90 00 0F [13:18:35]RAPDU: 0F F4 AF C5 E3 BA BE 7A 90 00 [13:18:35]wFMCommunicate OK [13:18:35]SAM_PROTO_SignData done [13:18:35]FM_MakeSignedData done [13:18:35]CreateOFDProtocolMessage [13:18:35]wFMCommunicate request_size=4 [13:18:35]MH_SAM_APDU [13:18:35]CAPDU: 80 11 00 00 [13:18:35]Write to MH i2c: E2 08 00 C6 82 80 11 00 00 00 00 00 00 C2 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 [13:18:35]MH_I2C_Read... [13:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:35]Read from MH i2c: E2 17 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 17 00 C6 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 14 [13:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:18:35]wFMCommunicate OK [13:18:35]CreateOFDProtocolMessage done [13:18:35]OFDSenderStorePacket 112501 [13:18:35]StoreOFDPacket docnum=112501 [13:18:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C BD 07 01 2F C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E2 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B7 01 00 35 04 06 00 1A B6 A2 99 E3 27 0F F4 AF C5 E3 BA BE 7A [13:18:35]CheckFolder [13:18:35]dirname=/storage/ofd_packets [13:18:35]CheckFolder done [13:18:35]ProducePacketName [13:18:35]name=ofd_packets/00112501 [13:18:35]NVStorageSaveData ofd_packets/00112501 [13:18:35]File name is /storage/ofd_packets/00112501 [13:18:35]Write 301 bytes [13:18:35]NVStorageSaveData done [13:18:35]OFDSenderStorePacket done [13:18:35]KKMCreateOFDPacket done [13:18:35]NVStorageSaveData kkm_last_timestamp [13:18:35]File name is /storage/kkm_last_timestamp [13:18:35]Write 4 bytes [13:18:35]NVStorageSaveData done [13:18:35]ExternCall_PrintAddStr [13:18:35]wPrintStart [13:18:35]Write to MH i2c: 01 00 00 C7 82 49 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 C7 82 00 00 00 00 00 FF 0F 5E [13:18:35]RasterBufferAndPrint [13:18:35]line Счет N : (1)321181 [13:18:35]line ИНН: 02508201610067 [13:18:35]line Контрольно-Кассовый Чек [13:18:35]line ПРОДАЖА [13:18:35]line ТРК (МРК, ГНК) : 11 [13:18:35]line Товар: 2710124130 [13:18:35]line Аи-92-К-5 [13:18:35]line 22.600 * 66.40 [13:18:35]line = 1500.64 [13:18:35]line НДС 12% НСП 1% [13:18:35]line > о реализуемом товаре [13:18:35]line ИТОГО: 1500.64 [13:18:35]line НСП 1% : 13.28 [13:18:35]line НДС 12% : 159.36 [13:18:35]line Наличными: 0.00 [13:18:35]line Безнал.: 1500.64 [13:18:35]line Место: АЗС № 65 "Партнер Нефть" [13:18:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:18:35]line СНО: Общий режим [13:18:35]line Чек 102 23.06.2024 13:19 [13:18:35]line Смена: 392 ФФД: 1.0 [13:18:35]line ЗНМ: 0300000198 [13:18:35]line РНМ: 0000000000092771 [13:18:35]line Версия ККМ: 001 [13:18:35]line Платежная система: О! деньги [13:18:35]line ФМ: 0000000000875083 [13:18:35]line ФД: 112501 [13:18:35]line ФПД: 29371714364199 [13:18:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T131930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112501&fm=29371714364199&tin=02508201610067®Number=0000000000092771&sum=150064 [13:18:35]written 0, free lines is 4095 [13:18:35]OFD Sender: Processing packet 112501 [packets to send 38, broken 37] [13:18:35]ProducePacketName [13:18:35]name=ofd_packets/00112501 [13:18:35]OFD Sender: To server: pG, [13:18:35]CommunicateWithHost lk.salyk.kg:30040 [13:18:35]ConnectInit lk.salyk.kg [13:18:35]Connected sock=10 [13:18:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C BD 07 01 2F C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E2 20 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B7 01 00 35 04 06 00 1A B6 A2 99 E3 27 0F F4 AF C5 E3 BA BE 7A [13:18:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 8D 47 00 11 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B7 01 00 F4 03 04 00 CE B7 77 66 B6 04 01 00 00 DF 10 B0 1B D6 30 CE CD [13:18:35]CommunicateWithHost err = 0 [13:18:35]CheckOFDResponse [13:18:35]1017 (14) - 77093643461234 [13:18:35]1041 (16) - 0000000000875083 [13:18:35]1040 (4) - 112501 [13:18:35]1012 (4) - 23.06.2024 05:51 [13:18:35]1206 (1) - 0 [13:18:35]OFD Sender: Remove packet 112501 [13:18:35]ProducePacketName [13:18:35]name=ofd_packets/00112501 [13:18:35]NVStorageDeleteData [13:18:35]Write to MH i2c: 01 00 00 F1 82 73 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 F1 82 00 00 00 00 00 F2 0C 78 [13:18:35]RasterBufferAndPrint [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]written 0, free lines is 3324 [13:18:35]MH_Cut [13:18:35]Write to MH i2c: D1 01 00 F8 82 01 4C [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 01 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 01 00 F8 82 00 4B [13:18:35]Write to MH i2c: 01 00 00 F9 82 7B [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:36]OFD Sender: No OFD packet to send [13:18:36]*** Cut start [13:18:36]*** Partial cut [13:18:36]*** CUTSNS_PIN = 1 [13:18:36]*** CUTSNS_PIN = 0 [13:18:36]*** Brake cut motor [13:18:36]Read from MH i2c: 01 [13:18:36]MH_I2C_Read... [13:18:36]*** Stop cut motor [13:18:36]*** Cut end [13:18:36]Read from MH i2c: 01 07 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 07 00 F9 82 00 00 00 00 00 FF 0F 90 [13:18:36]process_action close_receipt done [13:18:36]requested_data is exist [13:18:36]produce_requested_data [13:18:36]requested_item fm.sn is exist - process it [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 11 00 00 [13:18:36]Write to MH i2c: E2 08 00 FA 82 80 11 00 00 00 00 00 00 F6 [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 17 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 17 00 FA 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 48 [13:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:18:37]wFMCommunicate OK [13:18:37]requested_item fd.num is exist - process it [13:18:37]SAM_PROTO_GetFieldsCounters [13:18:37]wFMCommunicate request_size=4 [13:18:37]MH_SAM_APDU [13:18:37]CAPDU: 80 13 00 00 [13:18:37]Write to MH i2c: E2 08 00 FB 82 80 13 00 00 00 00 00 00 F9 [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 62 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 62 00 FB 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B7 01 00 0E 04 04 00 88 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 02 [13:18:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B7 01 00 0E 04 04 00 88 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 [13:18:37]wFMCommunicate OK [13:18:37]SAM_PROTO_GetFieldsCounters done [13:18:37]requested_item shift.num is exist - process it [13:18:37]requested_item shift.opened is exist - process it [13:18:37]req_shift_opened [13:18:37]FM_GetShiftState [13:18:37]SAM_PROTO_GetShiftState [13:18:37]wFMCommunicate request_size=4 [13:18:37]MH_SAM_APDU [13:18:37]CAPDU: 80 13 01 00 [13:18:37]Write to MH i2c: E2 08 00 FC 82 80 13 01 00 00 00 00 00 FB [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0E 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0E 00 FC 82 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 19 [13:18:37]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:18:37]wFMCommunicate OK [13:18:37]SAM_PROTO_GetShiftState done [13:18:37]FM_GetShiftState done [13:18:37]req_shift_opened done [13:18:37]requested_item shift.open_date is exist - process it [13:18:37]req_shift_open_date [13:18:37]req_shift_open_date done [13:18:37]produce_requested_data done [13:18:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112501,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:18:37]process_action_free close_receipt [13:18:37]json_value_free [13:18:37]json_value_free done [13:18:37]process_json_proto returns [13:18:37]Send response to host [13:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112501,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:18:37]free response buf [13:18:37]execute_script done [13:18:37]execute_script returns [13:18:37]free content buf [13:18:37]Sock 7.Close socket [13:18:37]Sock 7.Thread stoped [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:29]accept exits with 9 [13:19:29]New connection [13:19:29]New thread 3066957156 created [13:19:29]Thread 3066813796 joined [13:19:29]Waiting for new connection... [13:19:29] Sock 9.Parse request [13:19:29]Sock 9.Check first char [13:19:29]Sock 9.First char is OK [13:19:29]request: POST /json_proto HTTP/1.0 [13:19:29]Method: POST [13:19:29]URL: /json_proto [13:19:29]Method is POST - this is cgi request [13:19:29]url: /json_proto [13:19:29]query_string will be loaded in cgi processing [13:19:29]execute_cgi json_proto POST (null) [13:19:29]execute_cgi path=json_proto method=POST [13:19:29]POST find Content-Length [13:19:29]Host: 172.17.59.68:8080 [13:19:29]Content-Length: 677 [13:19:29]Content-Type: application/json [13:19:29] [13:19:29]POST finish read [13:19:29]Found Content-Length = 677 [13:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.630, "sum" : 440.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:29]execute_script... [13:19:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.630, "sum" : 440.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:29]POST & json_proto [13:19:29]process_json_proto [13:19:29]json parsed OK: [13:19:29]protocol is kg_v1.0 [13:19:29]action value=close_receipt [13:19:29]process_action close_receipt [13:19:29]cmd_close_receipt [13:19:29]MH_GetDate [13:19:29]Write to MH i2c: F0 00 00 FD 82 6E [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: F0 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: F0 09 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: F0 09 00 FD 82 00 1A 21 78 66 BC EC 60 65 FD [13:19:29]GetLastDocTimeStamp 1719148770 [13:19:29]current date 1719148826 [13:19:29]FM_GetShiftState [13:19:29]SAM_PROTO_GetShiftState [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 13 01 00 [13:19:29]Write to MH i2c: E2 08 00 FE 82 80 13 01 00 00 00 00 00 FD [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:29]Read from MH i2c: E2 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 0E 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 0E 00 FE 82 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 1B [13:19:29]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:19:29]wFMCommunicate OK [13:19:29]SAM_PROTO_GetShiftState done [13:19:29]FM_GetShiftState done [13:19:29]opened in 1719106490 [13:19:29]opened+sec_in_day 1719192890 [13:19:29]quantity*price = 44023 [13:19:29]sum+1 = 44024 [13:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 103 23.06.2024 13:20 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112502 ФПД: 178854206364049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132026&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112502&fm=178854206364049&tin=02508201610067®Number=0000000000092771&sum=44000 [13:19:30]StoreToDocumentArchive [13:19:30]shift 392 fd 112502 [13:19:30]save to /storage/0392/doc_00112502 [13:19:30]save last doc name /storage/0392/doc_00112502 to /storage/kkm_last_doc_name [13:19:30]save OK [13:19:30]Clear old archive folders... [13:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:30]tlvbuf is B6F56510 [13:19:30]SAM_PROTO_ClearQueue [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 09 00 00 [13:19:30]Write to MH i2c: E2 08 00 0B 83 80 09 00 00 00 00 00 00 00 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 03 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 03 00 0B 83 00 90 00 02 [13:19:30]RAPDU: 90 00 [13:19:30]wFMCommunicate OK [13:19:30]SAM_PROTO_ClearQueue done [13:19:30]KKMCreateOFDPacket [13:19:30]OFDProtocolAddRootSTLVToBuf [13:19:30]FM_MakeSignedData [13:19:30]FM_MakeSignedData [13:19:30]SAM_PROTO_SignData [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 0D 01 02 [13:19:30]Write to MH i2c: E2 08 00 0C 83 80 0D 01 02 00 00 00 00 08 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 03 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 03 00 0C 83 00 90 00 03 [13:19:30]RAPDU: 90 00 [13:19:30]wFMCommunicate OK [13:19:30]wFMCommunicate request_size=255 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F7 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 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 1A 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B7 01 00 35 04 06 00 A2 [13:19:30]Write to MH i2c: E2 02 01 0D 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F7 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 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 1A 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B7 01 00 35 04 06 00 A2 00 00 87 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 03 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 03 00 0D 83 00 90 00 04 [13:19:30]RAPDU: 90 00 [13:19:30]wFMCommunicate OK [13:19:30]wFMCommunicate request_size=10 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 0D 02 02 05 AA BD 6F D9 91 [13:19:30]Write to MH i2c: E2 0D 00 0E 83 80 0D 02 02 05 00 AA BD 6F D9 91 00 00 55 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 03 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 03 00 0E 83 00 90 00 05 [13:19:30]RAPDU: 90 00 [13:19:30]wFMCommunicate OK [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 0D 03 02 [13:19:30]Write to MH i2c: E2 08 00 0F 83 80 0D 03 02 00 00 00 00 0D [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 0B 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 0B 00 0F 83 00 F7 4E F5 C6 69 4B 21 C6 90 00 A9 [13:19:30]RAPDU: F7 4E F5 C6 69 4B 21 C6 90 00 [13:19:30]wFMCommunicate OK [13:19:30]SAM_PROTO_SignData done [13:19:30]FM_MakeSignedData done [13:19:30]CreateOFDProtocolMessage [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 11 00 00 [13:19:30]Write to MH i2c: E2 08 00 10 83 80 11 00 00 00 00 00 00 0D [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 17 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 17 00 10 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [13:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:19:30]wFMCommunicate OK [13:19:30]CreateOFDProtocolMessage done [13:19:30]OFDSenderStorePacket 112502 [13:19:30]StoreOFDPacket docnum=112502 [13:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 90 07 01 85 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 35 FF 03 08 00 03 E6 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F7 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 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 1A 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B7 01 00 35 04 06 00 A2 AA BD 6F D9 91 F7 4E F5 C6 69 4B 21 C6 [13:19:30]CheckFolder [13:19:30]dirname=/storage/ofd_packets [13:19:30]CheckFolder done [13:19:30]ProducePacketName [13:19:30]name=ofd_packets/00112502 [13:19:30]NVStorageSaveData ofd_packets/00112502 [13:19:30]File name is /storage/ofd_packets/00112502 [13:19:30]Write 301 bytes [13:19:30]NVStorageSaveData done [13:19:30]OFDSenderStorePacket done [13:19:30]KKMCreateOFDPacket done [13:19:30]NVStorageSaveData kkm_last_timestamp [13:19:30]File name is /storage/kkm_last_timestamp [13:19:30]Write 4 bytes [13:19:30]NVStorageSaveData done [13:19:30]ExternCall_PrintAddStr [13:19:30]wPrintStart [13:19:30]Write to MH i2c: 01 00 00 11 83 94 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: 01 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: 01 07 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: 01 07 00 11 83 00 00 00 00 00 FF 0F A9 [13:19:30]RasterBufferAndPrint [13:19:30]line Счет N : (1)321182 [13:19:30]line ИНН: 02508201610067 [13:19:30]line Контрольно-Кассовый Чек [13:19:30]line ПРОДАЖА [13:19:30]line ТРК (МРК, ГНК) : 11 [13:19:30]line Товар: 2710124130 [13:19:30]line Аи-92-К-5 [13:19:30]line 6.630 * 66.40 [13:19:30]line = 440.23 [13:19:30]line НДС 12% НСП 1% [13:19:30]line > о реализуемом товаре [13:19:30]line ОКРУГЛЕНИЕ: -0.23 [13:19:30]line ИТОГО: 440.00 [13:19:30]line Внесено: 440.00 [13:19:30]line СДАЧА: 0.00 [13:19:30]line НСП 1% : 3.90 [13:19:30]line НДС 12% : 46.75 [13:19:30]line Наличными: 440.00 [13:19:30]line Безнал.: 0.00 [13:19:30]line Место: АЗС № 65 "Партнер Нефть" [13:19:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:19:30]line СНО: Общий режим [13:19:30]line Чек 103 23.06.2024 13:20 [13:19:30]line Смена: 392 ФФД: 1.0 [13:19:30]line ЗНМ: 0300000198 [13:19:30]line РНМ: 0000000000092771 [13:19:30]line Версия ККМ: 001 [13:19:30]line ФМ: 0000000000875083 [13:19:30]line ФД: 112502 [13:19:30]line ФПД: 178854206364049 [13:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132026&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112502&fm=178854206364049&tin=02508201610067®Number=0000000000092771&sum=44000 [13:19:31]OFD Sender: Processing packet 112502 [packets to send 38, broken 37] [13:19:31]ProducePacketName [13:19:31]name=ofd_packets/00112502 [13:19:31]OFD Sender: To server: pG, [13:19:31]CommunicateWithHost lk.salyk.kg:30040 [13:19:31]ConnectInit lk.salyk.kg [13:19:31]written 0, free lines is 4095 [13:19:31]Connected sock=7 [13:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 90 07 01 85 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 35 FF 03 08 00 03 E6 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F7 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 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 1A 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B7 01 00 35 04 06 00 A2 AA BD 6F D9 91 F7 4E F5 C6 69 4B 21 C6 [13:19:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 38 4B 47 00 D1 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 38 37 35 30 38 33 10 04 04 00 76 B7 01 00 F4 03 04 00 06 B8 77 66 B6 04 01 00 00 3B F1 C0 02 B0 40 CC 71 [13:19:31]CommunicateWithHost err = 0 [13:19:31]CheckOFDResponse [13:19:31]1017 (14) - 77093643461234 [13:19:31]1041 (16) - 0000000000875083 [13:19:31]1040 (4) - 112502 [13:19:31]1012 (4) - 23.06.2024 05:52 [13:19:31]1206 (1) - 0 [13:19:31]OFD Sender: Remove packet 112502 [13:19:31]ProducePacketName [13:19:31]name=ofd_packets/00112502 [13:19:31]NVStorageDeleteData [13:19:31]Write to MH i2c: 01 00 00 3C 83 BF [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: 01 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: 01 07 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: 01 07 00 3C 83 00 00 00 00 00 E4 0C B6 [13:19:31]RasterBufferAndPrint [13:19:31]line [13:19:31]line [13:19:31]line [13:19:31]line [13:19:31]line [13:19:31]written 0, free lines is 3306 [13:19:31]MH_Cut [13:19:31]Write to MH i2c: D1 01 00 43 83 01 98 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: D1 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: D1 01 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: D1 01 00 43 83 00 97 [13:19:31]Write to MH i2c: 01 00 00 44 83 C7 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]OFD Sender: No OFD packet to send [13:19:32]*** Cut start [13:19:32]*** Partial cut [13:19:32]*** CUTSNS_PIN = 1 [13:19:32]*** CUTSNS_PIN = 0 [13:19:32]*** Brake cut motor [13:19:32]Read from MH i2c: 01 [13:19:32]MH_I2C_Read... [13:19:32]*** Stop cut motor [13:19:32]*** Cut end [13:19:32]Read from MH i2c: 01 07 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 07 00 44 83 00 00 00 00 00 FF 0F DC [13:19:32]process_action close_receipt done [13:19:32]requested_data is exist [13:19:32]produce_requested_data [13:19:32]requested_item fm.sn is exist - process it [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 11 00 00 [13:19:32]Write to MH i2c: E2 08 00 45 83 80 11 00 00 00 00 00 00 42 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 17 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 17 00 45 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 94 [13:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:19:32]wFMCommunicate OK [13:19:32]requested_item fd.num is exist - process it [13:19:32]SAM_PROTO_GetFieldsCounters [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 13 00 00 [13:19:32]Write to MH i2c: E2 08 00 46 83 80 13 00 00 00 00 00 00 45 [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:33]Read from MH i2c: E2 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: E2 62 00 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: E2 62 00 46 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B7 01 00 0E 04 04 00 88 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 52 [13:19:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B7 01 00 0E 04 04 00 88 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 [13:19:33]wFMCommunicate OK [13:19:33]SAM_PROTO_GetFieldsCounters done [13:19:33]requested_item shift.num is exist - process it [13:19:33]requested_item shift.opened is exist - process it [13:19:33]req_shift_opened [13:19:33]FM_GetShiftState [13:19:33]SAM_PROTO_GetShiftState [13:19:33]wFMCommunicate request_size=4 [13:19:33]MH_SAM_APDU [13:19:33]CAPDU: 80 13 01 00 [13:19:33]Write to MH i2c: E2 08 00 47 83 80 13 01 00 00 00 00 00 47 [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:33]Read from MH i2c: E2 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: E2 0E 00 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: E2 0E 00 47 83 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 65 [13:19:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:19:33]wFMCommunicate OK [13:19:33]SAM_PROTO_GetShiftState done [13:19:33]FM_GetShiftState done [13:19:33]req_shift_opened done [13:19:33]requested_item shift.open_date is exist - process it [13:19:33]req_shift_open_date [13:19:33]req_shift_open_date done [13:19:33]produce_requested_data done [13:19:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112502,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:19:33]process_action_free close_receipt [13:19:33]json_value_free [13:19:33]json_value_free done [13:19:33]process_json_proto returns [13:19:33]Send response to host [13:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112502,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:19:33]free response buf [13:19:33]execute_script done [13:19:33]execute_script returns [13:19:33]free content buf [13:19:33]Sock 9.Close socket [13:19:33]Sock 9.Thread stoped [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:38]accept exits with 10 [13:20:38]New connection [13:20:38]New thread 3066813796 created [13:20:38]Thread 3066957156 joined [13:20:38]Waiting for new connection... [13:20:38] Sock 10.Parse request [13:20:38]Sock 10.Check first char [13:20:38]Sock 10.First char is OK [13:20:38]request: POST /json_proto HTTP/1.0 [13:20:38]Method: POST [13:20:38]URL: /json_proto [13:20:38]Method is POST - this is cgi request [13:20:38]url: /json_proto [13:20:38]query_string will be loaded in cgi processing [13:20:38]execute_cgi json_proto POST (null) [13:20:38]execute_cgi path=json_proto method=POST [13:20:38]POST find Content-Length [13:20:38]Host: 172.17.59.68:8080 [13:20:38]Content-Length: 677 [13:20:38]Content-Type: application/json [13:20:38] [13:20:38]POST finish read [13:20:38]Found Content-Length = 677 [13:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.620, "sum" : 240.37, "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" ] } } [13:20:38]execute_script... [13:20: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)321183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.620, "sum" : 240.37, "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" ] } } [13:20:38]POST & json_proto [13:20:38]process_json_proto [13:20:38]json parsed OK: [13:20:38]protocol is kg_v1.0 [13:20:38]action value=close_receipt [13:20:38]process_action close_receipt [13:20:38]cmd_close_receipt [13:20:38]MH_GetDate [13:20:38]Write to MH i2c: F0 00 00 48 83 BA [13:20:38]Write i2c OK [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: F0 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: F0 09 00 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: F0 09 00 48 83 00 60 21 78 66 BC EC 60 65 8F [13:20:38]GetLastDocTimeStamp 1719148826 [13:20:38]current date 1719148896 [13:20:38]FM_GetShiftState [13:20:38]SAM_PROTO_GetShiftState [13:20:38]wFMCommunicate request_size=4 [13:20:38]MH_SAM_APDU [13:20:38]CAPDU: 80 13 01 00 [13:20:38]Write to MH i2c: E2 08 00 49 83 80 13 01 00 00 00 00 00 49 [13:20:38]Write i2c OK [13:20:38]MH_I2C_Read... [13:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:38]Read from MH i2c: E2 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: E2 0E 00 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: E2 0E 00 49 83 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 67 [13:20:38]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:20:38]wFMCommunicate OK [13:20:38]SAM_PROTO_GetShiftState done [13:20:38]FM_GetShiftState done [13:20:38]opened in 1719106490 [13:20:38]opened+sec_in_day 1719192890 [13:20:38]quantity*price = 24036 [13:20:38]sum+1 = 24038 [13:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.53 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 104 23.06.2024 13:21 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112503 ФПД: 102482351192769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132136&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112503&fm=102482351192769&tin=02508201610067®Number=0000000000092771&sum=24000 [13:20:39]StoreToDocumentArchive [13:20:39]shift 392 fd 112503 [13:20:39]save to /storage/0392/doc_00112503 [13:20:39]save last doc name /storage/0392/doc_00112503 to /storage/kkm_last_doc_name [13:20:39]save OK [13:20:39]Clear old archive folders... [13:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:39]tlvbuf is 01201910 [13:20:39]SAM_PROTO_ClearQueue [13:20:39]wFMCommunicate request_size=4 [13:20:39]MH_SAM_APDU [13:20:39]CAPDU: 80 09 00 00 [13:20:39]Write to MH i2c: E2 08 00 56 83 80 09 00 00 00 00 00 00 4B [13:20:39]Write i2c OK [13:20:39]MH_I2C_Read... [13:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:40]Read from MH i2c: E2 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 03 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 03 00 56 83 00 90 00 4D [13:20:40]RAPDU: 90 00 [13:20:40]wFMCommunicate OK [13:20:40]SAM_PROTO_ClearQueue done [13:20:40]KKMCreateOFDPacket [13:20:40]OFDProtocolAddRootSTLVToBuf [13:20:40]FM_MakeSignedData [13:20:40]FM_MakeSignedData [13:20:40]SAM_PROTO_SignData [13:20:40]wFMCommunicate request_size=4 [13:20:40]MH_SAM_APDU [13:20:40]CAPDU: 80 0D 01 02 [13:20:40]Write to MH i2c: E2 08 00 57 83 80 0D 01 02 00 00 00 00 53 [13:20:40]Write i2c OK [13:20:40]MH_I2C_Read... [13:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:40]Read from MH i2c: E2 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 03 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 03 00 57 83 00 90 00 4E [13:20:40]RAPDU: 90 00 [13:20:40]wFMCommunicate OK [13:20:40]wFMCommunicate request_size=255 [13:20:40]MH_SAM_APDU [13:20:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 68 00 00 00 F4 03 04 00 60 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B7 01 00 35 04 06 00 5D [13:20:40]Write to MH i2c: E2 02 01 58 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 68 00 00 00 F4 03 04 00 60 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B7 01 00 35 04 06 00 5D 00 00 C7 [13:20:40]Write i2c OK [13:20:40]MH_I2C_Read... [13:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:40]Read from MH i2c: E2 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 03 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 03 00 58 83 00 90 00 4F [13:20:40]RAPDU: 90 00 [13:20:40]wFMCommunicate OK [13:20:40]wFMCommunicate request_size=10 [13:20:40]MH_SAM_APDU [13:20:40]CAPDU: 80 0D 02 02 05 35 08 23 7A C1 [13:20:40]Write to MH i2c: E2 0D 00 59 83 80 0D 02 02 05 00 35 08 23 7A C1 00 00 FB [13:20:40]Write i2c OK [13:20:40]MH_I2C_Read... [13:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:40]Read from MH i2c: E2 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 03 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 03 00 59 83 00 90 00 50 [13:20:40]RAPDU: 90 00 [13:20:40]wFMCommunicate OK [13:20:40]wFMCommunicate request_size=4 [13:20:40]MH_SAM_APDU [13:20:40]CAPDU: 80 0D 03 02 [13:20:40]Write to MH i2c: E2 08 00 5A 83 80 0D 03 02 00 00 00 00 58 [13:20:40]Write i2c OK [13:20:40]MH_I2C_Read... [13:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:40]Read from MH i2c: E2 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 0B 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 0B 00 5A 83 00 1D BC 4C D1 D6 D8 D3 0A 90 00 DA [13:20:40]RAPDU: 1D BC 4C D1 D6 D8 D3 0A 90 00 [13:20:40]wFMCommunicate OK [13:20:40]SAM_PROTO_SignData done [13:20:40]FM_MakeSignedData done [13:20:40]CreateOFDProtocolMessage [13:20:40]wFMCommunicate request_size=4 [13:20:40]MH_SAM_APDU [13:20:40]CAPDU: 80 11 00 00 [13:20:40]Write to MH i2c: E2 08 00 5B 83 80 11 00 00 00 00 00 00 58 [13:20:40]Write i2c OK [13:20:40]MH_I2C_Read... [13:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:40]Read from MH i2c: E2 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 17 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 17 00 5B 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AA [13:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:20:40]wFMCommunicate OK [13:20:40]CreateOFDProtocolMessage done [13:20:40]OFDSenderStorePacket 112503 [13:20:40]StoreOFDPacket docnum=112503 [13:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB F5 07 01 1F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 68 00 00 00 F4 03 04 00 60 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B7 01 00 35 04 06 00 5D 35 08 23 7A C1 1D BC 4C D1 D6 D8 D3 0A [13:20:40]CheckFolder [13:20:40]dirname=/storage/ofd_packets [13:20:40]CheckFolder done [13:20:40]ProducePacketName [13:20:40]name=ofd_packets/00112503 [13:20:40]NVStorageSaveData ofd_packets/00112503 [13:20:40]File name is /storage/ofd_packets/00112503 [13:20:40]Write 301 bytes [13:20:40]NVStorageSaveData done [13:20:40]OFDSenderStorePacket done [13:20:40]KKMCreateOFDPacket done [13:20:40]NVStorageSaveData kkm_last_timestamp [13:20:40]File name is /storage/kkm_last_timestamp [13:20:40]Write 4 bytes [13:20:40]NVStorageSaveData done [13:20:40]ExternCall_PrintAddStr [13:20:40]wPrintStart [13:20:40]Write to MH i2c: 01 00 00 5C 83 DF [13:20:40]Write i2c OK [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: 01 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: 01 07 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: 01 07 00 5C 83 00 00 00 00 00 FF 0F F4 [13:20:40]RasterBufferAndPrint [13:20:40]line Счет N : (1)321183 [13:20:40]line ИНН: 02508201610067 [13:20:40]line Контрольно-Кассовый Чек [13:20:40]line ПРОДАЖА [13:20:40]line ТРК (МРК, ГНК) : 11 [13:20:40]line Товар: 2710124130 [13:20:40]line Аи-92-К-5 [13:20:40]line 3.620 * 66.40 [13:20:40]line = 240.37 [13:20:40]line НДС 12% НСП 1% [13:20:40]line > о реализуемом товаре [13:20:40]line ОКРУГЛЕНИЕ: -0.37 [13:20:40]line ИТОГО: 240.00 [13:20:40]line Внесено: 240.00 [13:20:40]line СДАЧА: 0.00 [13:20:40]line НСП 1% : 2.13 [13:20:40]line НДС 12% : 25.53 [13:20:40]line Наличными: 240.00 [13:20:40]line Безнал.: 0.00 [13:20:40]line Место: АЗС № 65 "Партнер Нефть" [13:20:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:20:40]line СНО: Общий режим [13:20:40]line Чек 104 23.06.2024 13:21 [13:20:40]line Смена: 392 ФФД: 1.0 [13:20:40]line ЗНМ: 0300000198 [13:20:40]line РНМ: 0000000000092771 [13:20:40]line Версия ККМ: 001 [13:20:40]line ФМ: 0000000000875083 [13:20:40]line ФД: 112503 [13:20:40]line ФПД: 102482351192769 [13:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132136&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112503&fm=102482351192769&tin=02508201610067®Number=0000000000092771&sum=24000 [13:20:40]OFD Sender: Processing packet 112503 [packets to send 38, broken 37] [13:20:40]ProducePacketName [13:20:40]name=ofd_packets/00112503 [13:20:40]OFD Sender: To server: pG, [13:20:40]CommunicateWithHost lk.salyk.kg:30040 [13:20:40]ConnectInit lk.salyk.kg [13:20:40]written 0, free lines is 4095 [13:20:40]Connected sock=9 [13:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB F5 07 01 1F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 68 00 00 00 F4 03 04 00 60 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B7 01 00 35 04 06 00 5D 35 08 23 7A C1 1D BC 4C D1 D6 D8 D3 0A [13:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 12 D9 47 00 21 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B7 01 00 F4 03 04 00 4C B8 77 66 B6 04 01 00 00 E8 C5 2C C3 A6 FF D5 DD [13:20:41]CommunicateWithHost err = 0 [13:20:41]CheckOFDResponse [13:20:41]1017 (14) - 77093643461234 [13:20:41]1041 (16) - 0000000000875083 [13:20:41]1040 (4) - 112503 [13:20:41]1012 (4) - 23.06.2024 05:53 [13:20:41]1206 (1) - 0 [13:20:41]OFD Sender: Remove packet 112503 [13:20:41]ProducePacketName [13:20:41]name=ofd_packets/00112503 [13:20:41]NVStorageDeleteData [13:20:41]Write to MH i2c: 01 00 00 87 83 0A [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: 01 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: 01 07 00 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: 01 07 00 87 83 00 00 00 00 00 E0 0C FD [13:20:41]RasterBufferAndPrint [13:20:41]line [13:20:41]line [13:20:41]line [13:20:41]line [13:20:41]line [13:20:41]written 0, free lines is 3305 [13:20:41]MH_Cut [13:20:41]Write to MH i2c: D1 01 00 8E 83 01 E3 [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: D1 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: D1 01 00 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: D1 01 00 8E 83 00 E2 [13:20:41]Write to MH i2c: 01 00 00 8F 83 12 [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]OFD Sender: No OFD packet to send [13:20:42]*** Cut start [13:20:42]*** Partial cut [13:20:42]*** CUTSNS_PIN = 1 [13:20:42]*** CUTSNS_PIN = 0 [13:20:42]*** Brake cut motor [13:20:42]Read from MH i2c: 01 [13:20:42]MH_I2C_Read... [13:20:42]*** Stop cut motor [13:20:42]*** Cut end [13:20:42]Read from MH i2c: 01 07 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: 01 07 00 8F 83 00 00 00 00 00 FF 0F 27 [13:20:42]process_action close_receipt done [13:20:42]requested_data is exist [13:20:42]produce_requested_data [13:20:42]requested_item fm.sn is exist - process it [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 11 00 00 [13:20:42]Write to MH i2c: E2 08 00 90 83 80 11 00 00 00 00 00 00 8D [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 17 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 17 00 90 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DF [13:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:20:42]wFMCommunicate OK [13:20:42]requested_item fd.num is exist - process it [13:20:42]SAM_PROTO_GetFieldsCounters [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 13 00 00 [13:20:42]Write to MH i2c: E2 08 00 91 83 80 13 00 00 00 00 00 00 90 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 62 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 62 00 91 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B7 01 00 0E 04 04 00 88 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 A1 [13:20:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B7 01 00 0E 04 04 00 88 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 [13:20:42]wFMCommunicate OK [13:20:42]SAM_PROTO_GetFieldsCounters done [13:20:42]requested_item shift.num is exist - process it [13:20:42]requested_item shift.opened is exist - process it [13:20:42]req_shift_opened [13:20:42]FM_GetShiftState [13:20:42]SAM_PROTO_GetShiftState [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 13 01 00 [13:20:42]Write to MH i2c: E2 08 00 92 83 80 13 01 00 00 00 00 00 92 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 0E 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 0E 00 92 83 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B0 [13:20:42]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:20:42]wFMCommunicate OK [13:20:42]SAM_PROTO_GetShiftState done [13:20:42]FM_GetShiftState done [13:20:42]req_shift_opened done [13:20:42]requested_item shift.open_date is exist - process it [13:20:42]req_shift_open_date [13:20:42]req_shift_open_date done [13:20:42]produce_requested_data done [13:20:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112503,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:20:42]process_action_free close_receipt [13:20:42]json_value_free [13:20:42]json_value_free done [13:20:42]process_json_proto returns [13:20:42]Send response to host [13:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112503,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:20:42]free response buf [13:20:42]execute_script done [13:20:42]execute_script returns [13:20:42]free content buf [13:20:42]Sock 10.Close socket [13:20:42]Sock 10.Thread stoped [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:17]accept exits with 7 [13:22:17]New connection [13:22:17]New thread 3066957156 created [13:22:17]Thread 3066813796 joined [13:22:17]Waiting for new connection... [13:22:17] Sock 7.Parse request [13:22:17]Sock 7.Check first char [13:22:17]Sock 7.First char is OK [13:22:17]request: POST /json_proto HTTP/1.0 [13:22:17]Method: POST [13:22:17]URL: /json_proto [13:22:17]Method is POST - this is cgi request [13:22:17]url: /json_proto [13:22:17]query_string will be loaded in cgi processing [13:22:17]execute_cgi json_proto POST (null) [13:22:17]execute_cgi path=json_proto method=POST [13:22:17]POST find Content-Length [13:22:17]Host: 172.17.59.68:8080 [13:22:17]Content-Length: 675 [13:22:17]Content-Type: application/json [13:22:17] [13:22:17]POST finish read [13:22:17]Found Content-Length = 675 [13:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:17]execute_script... [13:22: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)321184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:17]POST & json_proto [13:22:17]process_json_proto [13:22:17]json parsed OK: [13:22:17]protocol is kg_v1.0 [13:22:17]action value=close_receipt [13:22:17]process_action close_receipt [13:22:17]cmd_close_receipt [13:22:17]MH_GetDate [13:22:17]Write to MH i2c: F0 00 00 93 83 05 [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: F0 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: F0 09 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: F0 09 00 93 83 00 C3 21 78 66 BC EC 60 65 3D [13:22:17]GetLastDocTimeStamp 1719148896 [13:22:17]current date 1719148995 [13:22:17]FM_GetShiftState [13:22:17]SAM_PROTO_GetShiftState [13:22:17]wFMCommunicate request_size=4 [13:22:17]MH_SAM_APDU [13:22:17]CAPDU: 80 13 01 00 [13:22:17]Write to MH i2c: E2 08 00 94 83 80 13 01 00 00 00 00 00 94 [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:17]Read from MH i2c: E2 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: E2 0E 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: E2 0E 00 94 83 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B2 [13:22:17]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:22:17]wFMCommunicate OK [13:22:17]SAM_PROTO_GetShiftState done [13:22:17]FM_GetShiftState done [13:22:17]opened in 1719106490 [13:22:17]opened+sec_in_day 1719192890 [13:22:17]quantity*price = 73045 [13:22:17]sum+1 = 73047 [13:22:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 105 23.06.2024 13:23 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112504 ФПД: 158541560398408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132315&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112504&fm=158541560398408&tin=02508201610067®Number=0000000000092771&sum=73000 [13:22:18]StoreToDocumentArchive [13:22:18]shift 392 fd 112504 [13:22:18]save to /storage/0392/doc_00112504 [13:22:18]save last doc name /storage/0392/doc_00112504 to /storage/kkm_last_doc_name [13:22:18]save OK [13:22:18]Clear old archive folders... [13:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:22:18]tlvbuf is 012E2C90 [13:22:18]SAM_PROTO_ClearQueue [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 09 00 00 [13:22:18]Write to MH i2c: E2 08 00 A1 83 80 09 00 00 00 00 00 00 96 [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 A1 83 00 90 00 98 [13:22:18]RAPDU: 90 00 [13:22:18]wFMCommunicate OK [13:22:18]SAM_PROTO_ClearQueue done [13:22:18]KKMCreateOFDPacket [13:22:18]OFDProtocolAddRootSTLVToBuf [13:22:18]FM_MakeSignedData [13:22:18]FM_MakeSignedData [13:22:18]SAM_PROTO_SignData [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 0D 01 02 [13:22:18]Write to MH i2c: E2 08 00 A2 83 80 0D 01 02 00 00 00 00 9E [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 A2 83 00 90 00 99 [13:22:18]RAPDU: 90 00 [13:22:18]wFMCommunicate OK [13:22:18]wFMCommunicate request_size=255 [13:22:18]MH_SAM_APDU [13:22: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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 00 00 00 F4 03 04 00 C3 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B7 01 00 35 04 06 00 90 31 55 63 [13:22:18]Write to MH i2c: E2 02 01 A3 83 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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 00 00 00 F4 03 04 00 C3 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B7 01 00 35 04 06 00 90 31 55 63 00 00 2C [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 A3 83 00 90 00 9A [13:22:19]RAPDU: 90 00 [13:22:19]wFMCommunicate OK [13:22:19]wFMCommunicate request_size=7 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 0D 02 02 02 C2 48 [13:22:19]Write to MH i2c: E2 0A 00 A4 83 80 0D 02 02 02 00 C2 48 00 00 AF [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 A4 83 00 90 00 9B [13:22:19]RAPDU: 90 00 [13:22:19]wFMCommunicate OK [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 0D 03 02 [13:22:19]Write to MH i2c: E2 08 00 A5 83 80 0D 03 02 00 00 00 00 A3 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0B 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0B 00 A5 83 00 BD 5B B2 7C 61 F1 A3 E5 90 00 C4 [13:22:19]RAPDU: BD 5B B2 7C 61 F1 A3 E5 90 00 [13:22:19]wFMCommunicate OK [13:22:19]SAM_PROTO_SignData done [13:22:19]FM_MakeSignedData done [13:22:19]CreateOFDProtocolMessage [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 11 00 00 [13:22:19]Write to MH i2c: E2 08 00 A6 83 80 11 00 00 00 00 00 00 A3 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 17 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 17 00 A6 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [13:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:22:19]wFMCommunicate OK [13:22:19]CreateOFDProtocolMessage done [13:22:19]OFDSenderStorePacket 112504 [13:22:19]StoreOFDPacket docnum=112504 [13:22:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D6 D1 04 01 6D 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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 00 00 00 F4 03 04 00 C3 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B7 01 00 35 04 06 00 90 31 55 63 C2 48 BD 5B B2 7C 61 F1 A3 E5 [13:22:19]CheckFolder [13:22:19]dirname=/storage/ofd_packets [13:22:19]CheckFolder done [13:22:19]ProducePacketName [13:22:19]name=ofd_packets/00112504 [13:22:19]NVStorageSaveData ofd_packets/00112504 [13:22:19]File name is /storage/ofd_packets/00112504 [13:22:19]Write 298 bytes [13:22:19]NVStorageSaveData done [13:22:19]OFDSenderStorePacket done [13:22:19]KKMCreateOFDPacket done [13:22:19]NVStorageSaveData kkm_last_timestamp [13:22:19]File name is /storage/kkm_last_timestamp [13:22:19]Write 4 bytes [13:22:19]NVStorageSaveData done [13:22:19]ExternCall_PrintAddStr [13:22:19]wPrintStart [13:22:19]Write to MH i2c: 01 00 00 A7 83 2A [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: 01 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: 01 07 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: 01 07 00 A7 83 00 00 00 00 00 FF 0F 3F [13:22:19]RasterBufferAndPrint [13:22:19]line Счет N : (1)321184 [13:22:19]line ИНН: 02508201610067 [13:22:19]line Контрольно-Кассовый Чек [13:22:19]line ПРОДАЖА [13:22:19]line ТРК (МРК, ГНК) : 22 [13:22:19]line Товар: 2710194210 [13:22:19]line ДТ-К-5 [13:22:19]line 10.020 * 72.90 [13:22:19]line = 730.46 [13:22:19]line НДС 12% НСП 1% [13:22:19]line > о реализуемом товаре [13:22:19]line ОКРУГЛЕНИЕ: -0.46 [13:22:19]line ИТОГО: 730.00 [13:22:19]line Внесено: 730.00 [13:22:19]line СДАЧА: 0.00 [13:22:19]line НСП 1% : 6.46 [13:22:19]line НДС 12% : 77.57 [13:22:19]line Наличными: 730.00 [13:22:19]line Безнал.: 0.00 [13:22:19]line Место: АЗС № 65 "Партнер Нефть" [13:22:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:22:19]line СНО: Общий режим [13:22:19]line Чек 105 23.06.2024 13:23 [13:22:19]line Смена: 392 ФФД: 1.0 [13:22:19]line ЗНМ: 0300000198 [13:22:19]line РНМ: 0000000000092771 [13:22:19]line Версия ККМ: 001 [13:22:19]line ФМ: 0000000000875083 [13:22:19]line ФД: 112504 [13:22:19]line ФПД: 158541560398408 [13:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132315&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112504&fm=158541560398408&tin=02508201610067®Number=0000000000092771&sum=73000 [13:22:19]OFD Sender: Processing packet 112504 [packets to send 38, broken 37] [13:22:19]ProducePacketName [13:22:19]name=ofd_packets/00112504 [13:22:19]OFD Sender: To server: pG, [13:22:19]CommunicateWithHost lk.salyk.kg:30040 [13:22:19]ConnectInit lk.salyk.kg [13:22:19]written 0, free lines is 4095 [13:22:19]Connected sock=10 [13:22:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D6 D1 04 01 6D 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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 00 00 00 F4 03 04 00 C3 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B7 01 00 35 04 06 00 90 31 55 63 C2 48 BD 5B B2 7C 61 F1 A3 E5 [13:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 62 A6 47 00 78 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B7 01 00 F4 03 04 00 AF B8 77 66 B6 04 01 00 00 EE A1 17 2F C5 2F 44 33 [13:22:20]CommunicateWithHost err = 0 [13:22:20]CheckOFDResponse [13:22:20]1017 (14) - 77093643461234 [13:22:20]1041 (16) - 0000000000875083 [13:22:20]1040 (4) - 112504 [13:22:20]1012 (4) - 23.06.2024 05:54 [13:22:20]1206 (1) - 0 [13:22:20]OFD Sender: Remove packet 112504 [13:22:20]ProducePacketName [13:22:20]name=ofd_packets/00112504 [13:22:20]NVStorageDeleteData [13:22:20]Write to MH i2c: 01 00 00 D2 83 55 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 D2 83 00 00 00 00 00 E5 0C 4D [13:22:20]RasterBufferAndPrint [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]written 0, free lines is 3307 [13:22:20]MH_Cut [13:22:20]Write to MH i2c: D1 01 00 D9 83 01 2E [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 01 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 01 00 D9 83 00 2D [13:22:20]Write to MH i2c: 01 00 00 DA 83 5D [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]OFD Sender: No OFD packet to send [13:22:20]*** Cut start [13:22:20]*** Partial cut [13:22:20]*** CUTSNS_PIN = 1 [13:22:21]*** CUTSNS_PIN = 0 [13:22:21]*** Brake cut motor [13:22:21]Read from MH i2c: 01 [13:22:21]MH_I2C_Read... [13:22:21]*** Stop cut motor [13:22:21]*** Cut end [13:22:21]Read from MH i2c: 01 07 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 07 00 DA 83 00 00 00 00 00 FF 0F 72 [13:22:21]process_action close_receipt done [13:22:21]requested_data is exist [13:22:21]produce_requested_data [13:22:21]requested_item fm.sn is exist - process it [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 11 00 00 [13:22:21]Write to MH i2c: E2 08 00 DB 83 80 11 00 00 00 00 00 00 D8 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 17 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 17 00 DB 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2A [13:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:22:21]wFMCommunicate OK [13:22:21]requested_item fd.num is exist - process it [13:22:21]SAM_PROTO_GetFieldsCounters [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 13 00 00 [13:22:21]Write to MH i2c: E2 08 00 DC 83 80 13 00 00 00 00 00 00 DB [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 62 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 62 00 DC 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B7 01 00 0E 04 04 00 88 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 F0 [13:22:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B7 01 00 0E 04 04 00 88 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 [13:22:21]wFMCommunicate OK [13:22:21]SAM_PROTO_GetFieldsCounters done [13:22:21]requested_item shift.num is exist - process it [13:22:21]requested_item shift.opened is exist - process it [13:22:21]req_shift_opened [13:22:21]FM_GetShiftState [13:22:21]SAM_PROTO_GetShiftState [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 13 01 00 [13:22:21]Write to MH i2c: E2 08 00 DD 83 80 13 01 00 00 00 00 00 DD [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 0E 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 0E 00 DD 83 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FB [13:22:21]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:22:21]wFMCommunicate OK [13:22:21]SAM_PROTO_GetShiftState done [13:22:21]FM_GetShiftState done [13:22:21]req_shift_opened done [13:22:21]requested_item shift.open_date is exist - process it [13:22:21]req_shift_open_date [13:22:21]req_shift_open_date done [13:22:21]produce_requested_data done [13:22:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112504,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:22:21]process_action_free close_receipt [13:22:21]json_value_free [13:22:21]json_value_free done [13:22:21]process_json_proto returns [13:22:21]Send response to host [13:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112504,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:22:21]free response buf [13:22:21]execute_script done [13:22:21]execute_script returns [13:22:21]free content buf [13:22:21]Sock 7.Close socket [13:22:21]Sock 7.Thread stoped [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]accept exits with 9 [13:22:55]New connection [13:22:55]New thread 3066813796 created [13:22:55]Thread 3066957156 joined [13:22:55]Waiting for new connection... [13:22:55] Sock 9.Parse request [13:22:55]Sock 9.Check first char [13:22:55]Sock 9.First char is OK [13:22:55]request: POST /json_proto HTTP/1.0 [13:22:55]Method: POST [13:22:55]URL: /json_proto [13:22:55]Method is POST - this is cgi request [13:22:55]url: /json_proto [13:22:55]query_string will be loaded in cgi processing [13:22:55]execute_cgi json_proto POST (null) [13:22:55]execute_cgi path=json_proto method=POST [13:22:55]POST find Content-Length [13:22:55]Host: 172.17.59.68:8080 [13:22:55]Content-Length: 678 [13:22:55]Content-Type: application/json [13:22:55] [13:22:55]POST finish read [13:22:55]Found Content-Length = 678 [13:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "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" ] } } [13:22:55]execute_script... [13:22: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)321185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "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" ] } } [13:22:55]POST & json_proto [13:22:55]process_json_proto [13:22:55]json parsed OK: [13:22:55]protocol is kg_v1.0 [13:22:55]action value=close_receipt [13:22:55]process_action close_receipt [13:22:55]cmd_close_receipt [13:22:55]MH_GetDate [13:22:55]Write to MH i2c: F0 00 00 DE 83 50 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 09 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 09 00 DE 83 00 E8 21 78 66 BC EC 60 65 AD [13:22:55]GetLastDocTimeStamp 1719148995 [13:22:55]current date 1719149032 [13:22:55]FM_GetShiftState [13:22:55]SAM_PROTO_GetShiftState [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 13 01 00 [13:22:55]Write to MH i2c: E2 08 00 DF 83 80 13 01 00 00 00 00 00 DF [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 DF 83 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FD [13:22:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_GetShiftState done [13:22:55]FM_GetShiftState done [13:22:55]opened in 1719106490 [13:22:55]opened+sec_in_day 1719192890 [13:22:55]quantity*price = 80012 [13:22:55]sum+1 = 80013 [13:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 106 23.06.2024 13:23 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112505 ФПД: 30990754830369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112505&fm=30990754830369&tin=02508201610067®Number=0000000000092771&sum=80000 [13:22:56]StoreToDocumentArchive [13:22:56]shift 392 fd 112505 [13:22:56]save to /storage/0392/doc_00112505 [13:22:56]save last doc name /storage/0392/doc_00112505 to /storage/kkm_last_doc_name [13:22:56]save OK [13:22:56]Clear old archive folders... [13:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:56]tlvbuf is B6F565C0 [13:22:56]SAM_PROTO_ClearQueue [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 09 00 00 [13:22:56]Write to MH i2c: E2 08 00 EC 83 80 09 00 00 00 00 00 00 E1 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 EC 83 00 90 00 E3 [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_ClearQueue done [13:22:56]KKMCreateOFDPacket [13:22:56]OFDProtocolAddRootSTLVToBuf [13:22:56]FM_MakeSignedData [13:22:56]FM_MakeSignedData [13:22:56]SAM_PROTO_SignData [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 01 02 [13:22:56]Write to MH i2c: E2 08 00 ED 83 80 0D 01 02 00 00 00 00 E9 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 ED 83 00 90 00 E4 [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=255 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 6A 00 00 00 F4 03 04 00 E8 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B7 01 00 35 04 06 00 1C [13:22:56]Write to MH i2c: E2 02 01 EE 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 6A 00 00 00 F4 03 04 00 E8 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B7 01 00 35 04 06 00 1C 00 00 B3 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 EE 83 00 90 00 E5 [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=10 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 02 02 05 2F 98 EE D8 21 [13:22:56]Write to MH i2c: E2 0D 00 EF 83 80 0D 02 02 05 00 2F 98 EE D8 21 00 00 A4 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 EF 83 00 90 00 E6 [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 03 02 [13:22:56]Write to MH i2c: E2 08 00 F0 83 80 0D 03 02 00 00 00 00 EE [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0B 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0B 00 F0 83 00 19 34 1D 24 B3 46 77 F3 90 00 E0 [13:22:56]RAPDU: 19 34 1D 24 B3 46 77 F3 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_SignData done [13:22:56]FM_MakeSignedData done [13:22:56]CreateOFDProtocolMessage [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 11 00 00 [13:22:56]Write to MH i2c: E2 08 00 F1 83 80 11 00 00 00 00 00 00 EE [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 17 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 17 00 F1 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [13:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:22:56]wFMCommunicate OK [13:22:56]CreateOFDProtocolMessage done [13:22:56]OFDSenderStorePacket 112505 [13:22:56]StoreOFDPacket docnum=112505 [13:22:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9B 5A 07 01 C0 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 6A 00 00 00 F4 03 04 00 E8 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B7 01 00 35 04 06 00 1C 2F 98 EE D8 21 19 34 1D 24 B3 46 77 F3 [13:22:56]CheckFolder [13:22:56]dirname=/storage/ofd_packets [13:22:56]CheckFolder done [13:22:56]ProducePacketName [13:22:56]name=ofd_packets/00112505 [13:22:56]NVStorageSaveData ofd_packets/00112505 [13:22:56]File name is /storage/ofd_packets/00112505 [13:22:56]Write 301 bytes [13:22:56]NVStorageSaveData done [13:22:56]OFDSenderStorePacket done [13:22:56]KKMCreateOFDPacket done [13:22:56]NVStorageSaveData kkm_last_timestamp [13:22:56]File name is /storage/kkm_last_timestamp [13:22:56]Write 4 bytes [13:22:56]NVStorageSaveData done [13:22:56]ExternCall_PrintAddStr [13:22:56]wPrintStart [13:22:56]Write to MH i2c: 01 00 00 F2 83 75 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 F2 83 00 00 00 00 00 FF 0F 8A [13:22:56]RasterBufferAndPrint [13:22:56]line Счет N : (1)321185 [13:22:56]line ИНН: 02508201610067 [13:22:56]line Контрольно-Кассовый Чек [13:22:56]line ПРОДАЖА [13:22:56]line ТРК (МРК, ГНК) : 11 [13:22:56]line Товар: 2710124130 [13:22:56]line Аи-92-К-5 [13:22:56]line 12.050 * 66.40 [13:22:56]line = 800.12 [13:22:56]line НДС 12% НСП 1% [13:22:56]line > о реализуемом товаре [13:22:56]line ОКРУГЛЕНИЕ: -0.12 [13:22:56]line ИТОГО: 800.00 [13:22:56]line Внесено: 800.00 [13:22:56]line СДАЧА: 0.00 [13:22:56]line НСП 1% : 7.08 [13:22:56]line НДС 12% : 84.97 [13:22:56]line Наличными: 800.00 [13:22:56]line Безнал.: 0.00 [13:22:56]line Место: АЗС № 65 "Партнер Нефть" [13:22:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:22:56]line СНО: Общий режим [13:22:56]line Чек 106 23.06.2024 13:23 [13:22:56]line Смена: 392 ФФД: 1.0 [13:22:56]line ЗНМ: 0300000198 [13:22:56]line РНМ: 0000000000092771 [13:22:56]line Версия ККМ: 001 [13:22:56]line ФМ: 0000000000875083 [13:22:56]line ФД: 112505 [13:22:56]line ФПД: 30990754830369 [13:22:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112505&fm=30990754830369&tin=02508201610067®Number=0000000000092771&sum=80000 [13:22:57]OFD Sender: Processing packet 112505 [packets to send 38, broken 37] [13:22:57]ProducePacketName [13:22:57]name=ofd_packets/00112505 [13:22:57]OFD Sender: To server: pG, [13:22:57]CommunicateWithHost lk.salyk.kg:30040 [13:22:57]ConnectInit lk.salyk.kg [13:22:57]written 0, free lines is 4095 [13:22:57]Connected sock=10 [13:22:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9B 5A 07 01 C0 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 6A 00 00 00 F4 03 04 00 E8 21 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B7 01 00 35 04 06 00 1C 2F 98 EE D8 21 19 34 1D 24 B3 46 77 F3 [13:22:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DD 49 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 38 37 35 30 38 33 10 04 04 00 79 B7 01 00 F4 03 04 00 D4 B8 77 66 B6 04 01 00 00 C6 92 02 B4 4A 27 7C ED [13:22:57]CommunicateWithHost err = 0 [13:22:57]CheckOFDResponse [13:22:57]1017 (14) - 77093643461234 [13:22:57]1041 (16) - 0000000000875083 [13:22:57]1040 (4) - 112505 [13:22:57]1012 (4) - 23.06.2024 05:55 [13:22:57]1206 (1) - 0 [13:22:57]OFD Sender: Remove packet 112505 [13:22:57]ProducePacketName [13:22:57]name=ofd_packets/00112505 [13:22:57]NVStorageDeleteData [13:22:57]Write to MH i2c: 01 00 00 1D 84 A1 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: 01 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: 01 07 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: 01 07 00 1D 84 00 00 00 00 00 EB 0C 9F [13:22:57]RasterBufferAndPrint [13:22:57]line [13:22:57]line [13:22:57]line [13:22:57]line [13:22:57]line [13:22:57]written 0, free lines is 3316 [13:22:57]MH_Cut [13:22:57]Write to MH i2c: D1 01 00 24 84 01 7A [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: D1 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: D1 01 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: D1 01 00 24 84 00 79 [13:22:57]Write to MH i2c: 01 00 00 25 84 A9 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]OFD Sender: No OFD packet to send [13:22:58]*** Cut start [13:22:58]*** Partial cut [13:22:58]*** CUTSNS_PIN = 1 [13:22:58]*** CUTSNS_PIN = 0 [13:22:58]*** Brake cut motor [13:22:58]Read from MH i2c: 01 [13:22:58]MH_I2C_Read... [13:22:58]*** Stop cut motor [13:22:58]*** Cut end [13:22:58]Read from MH i2c: 01 07 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: 01 07 00 25 84 00 00 00 00 00 FF 0F BE [13:22:58]process_action close_receipt done [13:22:58]requested_data is exist [13:22:58]produce_requested_data [13:22:58]requested_item fm.sn is exist - process it [13:22:58]wFMCommunicate request_size=4 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 11 00 00 [13:22:58]Write to MH i2c: E2 08 00 26 84 80 11 00 00 00 00 00 00 24 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:58]Read from MH i2c: E2 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 17 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 17 00 26 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 76 [13:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:22:59]wFMCommunicate OK [13:22:59]requested_item fd.num is exist - process it [13:22:59]SAM_PROTO_GetFieldsCounters [13:22:59]wFMCommunicate request_size=4 [13:22:59]MH_SAM_APDU [13:22:59]CAPDU: 80 13 00 00 [13:22:59]Write to MH i2c: E2 08 00 27 84 80 13 00 00 00 00 00 00 27 [13:22:59]Write i2c OK [13:22:59]MH_I2C_Read... [13:22:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:59]Read from MH i2c: E2 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 62 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 62 00 27 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B7 01 00 0E 04 04 00 88 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 40 [13:22:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B7 01 00 0E 04 04 00 88 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 [13:22:59]wFMCommunicate OK [13:22:59]SAM_PROTO_GetFieldsCounters done [13:22:59]requested_item shift.num is exist - process it [13:22:59]requested_item shift.opened is exist - process it [13:22:59]req_shift_opened [13:22:59]FM_GetShiftState [13:22:59]SAM_PROTO_GetShiftState [13:22:59]wFMCommunicate request_size=4 [13:22:59]MH_SAM_APDU [13:22:59]CAPDU: 80 13 01 00 [13:22:59]Write to MH i2c: E2 08 00 28 84 80 13 01 00 00 00 00 00 29 [13:22:59]Write i2c OK [13:22:59]MH_I2C_Read... [13:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:59]Read from MH i2c: E2 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 0E 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 0E 00 28 84 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 47 [13:22:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:22:59]wFMCommunicate OK [13:22:59]SAM_PROTO_GetShiftState done [13:22:59]FM_GetShiftState done [13:22:59]req_shift_opened done [13:22:59]requested_item shift.open_date is exist - process it [13:22:59]req_shift_open_date [13:22:59]req_shift_open_date done [13:22:59]produce_requested_data done [13:22:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112505,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:22:59]process_action_free close_receipt [13:22:59]json_value_free [13:22:59]json_value_free done [13:22:59]process_json_proto returns [13:22:59]Send response to host [13:22:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112505,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:22:59]free response buf [13:22:59]execute_script done [13:22:59]execute_script returns [13:22:59]free content buf [13:22:59]Sock 9.Close socket [13:22:59]Sock 9.Thread stoped [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:51]accept exits with 7 [13:23:51]New connection [13:23:51]New thread 3066957156 created [13:23:51]Thread 3066813796 joined [13:23:51]Waiting for new connection... [13:23:51] Sock 7.Parse request [13:23:51]Sock 7.Check first char [13:23:51]Sock 7.First char is OK [13:23:51]request: POST /json_proto HTTP/1.0 [13:23:51]Method: POST [13:23:51]URL: /json_proto [13:23:51]Method is POST - this is cgi request [13:23:51]url: /json_proto [13:23:51]query_string will be loaded in cgi processing [13:23:51]execute_cgi json_proto POST (null) [13:23:51]execute_cgi path=json_proto method=POST [13:23:51]POST find Content-Length [13:23:51]Host: 172.17.59.68:8080 [13:23:51]Content-Length: 677 [13:23:51]Content-Type: application/json [13:23:51] [13:23:51]POST finish read [13:23:51]Found Content-Length = 677 [13:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:23:51]execute_script... [13:23: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)321186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:23:51]POST & json_proto [13:23:51]process_json_proto [13:23:51]json parsed OK: [13:23:51]protocol is kg_v1.0 [13:23:51]action value=close_receipt [13:23:51]process_action close_receipt [13:23:51]cmd_close_receipt [13:23:51]MH_GetDate [13:23:51]Write to MH i2c: F0 00 00 29 84 9C [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 09 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 09 00 29 84 00 20 22 78 66 BC EC 60 65 32 [13:23:51]GetLastDocTimeStamp 1719149032 [13:23:51]current date 1719149088 [13:23:51]FM_GetShiftState [13:23:51]SAM_PROTO_GetShiftState [13:23:51]wFMCommunicate request_size=4 [13:23:51]MH_SAM_APDU [13:23:51]CAPDU: 80 13 01 00 [13:23:51]Write to MH i2c: E2 08 00 2A 84 80 13 01 00 00 00 00 00 2B [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:51]Read from MH i2c: E2 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 0E 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 0E 00 2A 84 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 49 [13:23:51]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:23:51]wFMCommunicate OK [13:23:51]SAM_PROTO_GetShiftState done [13:23:51]FM_GetShiftState done [13:23:51]opened in 1719106490 [13:23:51]opened+sec_in_day 1719192890 [13:23:51]quantity*price = 50065 [13:23:51]sum+1 = 50067 [13:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 107 23.06.2024 13:24 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112506 ФПД: 173061603639977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132449&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112506&fm=173061603639977&tin=02508201610067®Number=0000000000092771&sum=50000 [13:23:52]StoreToDocumentArchive [13:23:52]shift 392 fd 112506 [13:23:52]save to /storage/0392/doc_00112506 [13:23:52]save last doc name /storage/0392/doc_00112506 to /storage/kkm_last_doc_name [13:23:52]save OK [13:23:52]Clear old archive folders... [13:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:52]tlvbuf is 01210FF0 [13:23:52]SAM_PROTO_ClearQueue [13:23:52]wFMCommunicate request_size=4 [13:23:52]MH_SAM_APDU [13:23:52]CAPDU: 80 09 00 00 [13:23:52]Write to MH i2c: E2 08 00 37 84 80 09 00 00 00 00 00 00 2D [13:23:52]Write i2c OK [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 [13:23:52]MH_I2C_Read... [13:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:52]Read from MH i2c: E2 03 00 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 37 84 00 90 00 2F [13:23:52]RAPDU: 90 00 [13:23:52]wFMCommunicate OK [13:23:52]SAM_PROTO_ClearQueue done [13:23:52]KKMCreateOFDPacket [13:23:52]OFDProtocolAddRootSTLVToBuf [13:23:52]FM_MakeSignedData [13:23:52]FM_MakeSignedData [13:23:52]SAM_PROTO_SignData [13:23:52]wFMCommunicate request_size=4 [13:23:52]MH_SAM_APDU [13:23:52]CAPDU: 80 0D 01 02 [13:23:52]Write to MH i2c: E2 08 00 38 84 80 0D 01 02 00 00 00 00 35 [13:23:52]Write i2c OK [13:23:52]MH_I2C_Read... [13:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:52]Read from MH i2c: E2 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 38 84 00 90 00 30 [13:23:52]RAPDU: 90 00 [13:23:52]wFMCommunicate OK [13:23:52]wFMCommunicate request_size=255 [13:23:52]MH_SAM_APDU [13:23:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 21 22 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B7 01 00 35 04 06 00 9D [13:23:52]Write to MH i2c: E2 02 01 39 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 21 22 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B7 01 00 35 04 06 00 9D 00 00 CD [13:23:52]Write i2c OK [13:23:52]MH_I2C_Read... [13:23:53]OFD Sender: No OFD packet to send [13:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 39 84 00 90 00 31 [13:23:53]RAPDU: 90 00 [13:23:53]wFMCommunicate OK [13:23:53]wFMCommunicate request_size=10 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 0D 02 02 05 66 0B 68 C2 A9 [13:23:53]Write to MH i2c: E2 0D 00 3A 84 80 0D 02 02 05 00 66 0B 68 C2 A9 00 00 86 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 3A 84 00 90 00 32 [13:23:53]RAPDU: 90 00 [13:23:53]wFMCommunicate OK [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 0D 03 02 [13:23:53]Write to MH i2c: E2 08 00 3B 84 80 0D 03 02 00 00 00 00 3A [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 0B 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 0B 00 3B 84 00 D5 AE 1D 6C 85 95 A4 02 90 00 07 [13:23:53]RAPDU: D5 AE 1D 6C 85 95 A4 02 90 00 [13:23:53]wFMCommunicate OK [13:23:53]SAM_PROTO_SignData done [13:23:53]FM_MakeSignedData done [13:23:53]CreateOFDProtocolMessage [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 11 00 00 [13:23:53]Write to MH i2c: E2 08 00 3C 84 80 11 00 00 00 00 00 00 3A [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 17 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 17 00 3C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8C [13:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:23:53]wFMCommunicate OK [13:23:53]CreateOFDProtocolMessage done [13:23:53]OFDSenderStorePacket 112506 [13:23:53]StoreOFDPacket docnum=112506 [13:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EB 08 07 01 FF DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 21 22 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B7 01 00 35 04 06 00 9D 66 0B 68 C2 A9 D5 AE 1D 6C 85 95 A4 02 [13:23:53]CheckFolder [13:23:53]dirname=/storage/ofd_packets [13:23:53]CheckFolder done [13:23:53]ProducePacketName [13:23:53]name=ofd_packets/00112506 [13:23:53]NVStorageSaveData ofd_packets/00112506 [13:23:53]File name is /storage/ofd_packets/00112506 [13:23:53]Write 301 bytes [13:23:53]NVStorageSaveData done [13:23:53]OFDSenderStorePacket done [13:23:53]KKMCreateOFDPacket done [13:23:53]NVStorageSaveData kkm_last_timestamp [13:23:53]File name is /storage/kkm_last_timestamp [13:23:53]Write 4 bytes [13:23:53]NVStorageSaveData done [13:23:53]ExternCall_PrintAddStr [13:23:53]wPrintStart [13:23:53]Write to MH i2c: 01 00 00 3D 84 C1 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 3D 84 00 00 00 00 00 FF 0F D6 [13:23:53]RasterBufferAndPrint [13:23:53]line Счет N : (1)321186 [13:23:53]line ИНН: 02508201610067 [13:23:53]line Контрольно-Кассовый Чек [13:23:53]line ПРОДАЖА [13:23:53]line ТРК (МРК, ГНК) : 11 [13:23:53]line Товар: 2710124130 [13:23:53]line Аи-92-К-5 [13:23:53]line 7.540 * 66.40 [13:23:53]line = 500.66 [13:23:53]line НДС 12% НСП 1% [13:23:53]line > о реализуемом товаре [13:23:53]line ОКРУГЛЕНИЕ: -0.66 [13:23:53]line ИТОГО: 500.00 [13:23:53]line Внесено: 500.00 [13:23:53]line СДАЧА: 0.00 [13:23:53]line НСП 1% : 4.43 [13:23:53]line НДС 12% : 53.17 [13:23:53]line Наличными: 500.00 [13:23:53]line Безнал.: 0.00 [13:23:53]line Место: АЗС № 65 "Партнер Нефть" [13:23:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:23:53]line СНО: Общий режим [13:23:53]line Чек 107 23.06.2024 13:24 [13:23:53]line Смена: 392 ФФД: 1.0 [13:23:53]line ЗНМ: 0300000198 [13:23:53]line РНМ: 0000000000092771 [13:23:53]line Версия ККМ: 001 [13:23:53]line ФМ: 0000000000875083 [13:23:53]line ФД: 112506 [13:23:53]line ФПД: 173061603639977 [13:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132449&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112506&fm=173061603639977&tin=02508201610067®Number=0000000000092771&sum=50000 [13:23:53]OFD Sender: Processing packet 112506 [packets to send 38, broken 37] [13:23:53]ProducePacketName [13:23:53]name=ofd_packets/00112506 [13:23:53]OFD Sender: To server: pG, [13:23:53]CommunicateWithHost lk.salyk.kg:30040 [13:23:53]ConnectInit lk.salyk.kg [13:23:53]written 0, free lines is 4095 [13:23:53]Connected sock=10 [13:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EB 08 07 01 FF DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 21 22 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B7 01 00 35 04 06 00 9D 66 0B 68 C2 A9 D5 AE 1D 6C 85 95 A4 02 [13:23:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3C 5B 47 00 3C 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 38 37 35 30 38 33 10 04 04 00 7A B7 01 00 F4 03 04 00 0D B9 77 66 B6 04 01 00 00 73 4B 8B 02 0C 86 19 79 [13:23:53]CommunicateWithHost err = 0 [13:23:53]CheckOFDResponse [13:23:53]1017 (14) - 77093643461234 [13:23:53]1041 (16) - 0000000000875083 [13:23:53]1040 (4) - 112506 [13:23:53]1012 (4) - 23.06.2024 05:56 [13:23:53]1206 (1) - 0 [13:23:53]OFD Sender: Remove packet 112506 [13:23:53]ProducePacketName [13:23:53]name=ofd_packets/00112506 [13:23:53]NVStorageDeleteData [13:23:54]Write to MH i2c: 01 00 00 68 84 EC [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 07 00 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 07 00 68 84 00 00 00 00 00 E5 0C E4 [13:23:54]RasterBufferAndPrint [13:23:54]line [13:23:54]line [13:23:54]line [13:23:54]line [13:23:54]line [13:23:54]written 0, free lines is 3307 [13:23:54]MH_Cut [13:23:54]Write to MH i2c: D1 01 00 6F 84 01 C5 [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: D1 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: D1 01 00 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: D1 01 00 6F 84 00 C4 [13:23:54]Write to MH i2c: 01 00 00 70 84 F4 [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]OFD Sender: No OFD packet to send [13:23:54]*** Cut start [13:23:54]*** Partial cut [13:23:54]*** CUTSNS_PIN = 1 [13:23:54]*** CUTSNS_PIN = 0 [13:23:55]*** Brake cut motor [13:23:55]Read from MH i2c: 01 [13:23:55]MH_I2C_Read... [13:23:55]*** Stop cut motor [13:23:55]*** Cut end [13:23:55]Read from MH i2c: 01 07 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 07 00 70 84 00 00 00 00 00 FF 0F 09 [13:23:55]process_action close_receipt done [13:23:55]requested_data is exist [13:23:55]produce_requested_data [13:23:55]requested_item fm.sn is exist - process it [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 11 00 00 [13:23:55]Write to MH i2c: E2 08 00 71 84 80 11 00 00 00 00 00 00 6F [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 17 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 17 00 71 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C1 [13:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:23:55]wFMCommunicate OK [13:23:55]requested_item fd.num is exist - process it [13:23:55]SAM_PROTO_GetFieldsCounters [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 13 00 00 [13:23:55]Write to MH i2c: E2 08 00 72 84 80 13 00 00 00 00 00 00 72 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 62 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 62 00 72 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7A B7 01 00 0E 04 04 00 88 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 8F [13:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7A B7 01 00 0E 04 04 00 88 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 [13:23:55]wFMCommunicate OK [13:23:55]SAM_PROTO_GetFieldsCounters done [13:23:55]requested_item shift.num is exist - process it [13:23:55]requested_item shift.opened is exist - process it [13:23:55]req_shift_opened [13:23:55]FM_GetShiftState [13:23:55]SAM_PROTO_GetShiftState [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 13 01 00 [13:23:55]Write to MH i2c: E2 08 00 73 84 80 13 01 00 00 00 00 00 74 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 0E 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 0E 00 73 84 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 92 [13:23:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:23:55]wFMCommunicate OK [13:23:55]SAM_PROTO_GetShiftState done [13:23:55]FM_GetShiftState done [13:23:55]req_shift_opened done [13:23:55]requested_item shift.open_date is exist - process it [13:23:55]req_shift_open_date [13:23:55]req_shift_open_date done [13:23:55]produce_requested_data done [13:23:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112506,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:23:55]process_action_free close_receipt [13:23:55]json_value_free [13:23:55]json_value_free done [13:23:55]process_json_proto returns [13:23:55]Send response to host [13:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112506,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:23:55]free response buf [13:23:55]execute_script done [13:23:55]execute_script returns [13:23:55]free content buf [13:23:55]Sock 7.Close socket [13:23:55]Sock 7.Thread stoped [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]accept exits with 9 [13:24:39]New connection [13:24:39]New thread 3066813796 created [13:24:39]Thread 3066957156 joined [13:24:39]Waiting for new connection... [13:24:39] Sock 9.Parse request [13:24:39]Sock 9.Check first char [13:24:39]Sock 9.First char is OK [13:24:39]request: POST /json_proto HTTP/1.0 [13:24:39]Method: POST [13:24:39]URL: /json_proto [13:24:39]Method is POST - this is cgi request [13:24:39]url: /json_proto [13:24:39]query_string will be loaded in cgi processing [13:24:39]execute_cgi json_proto POST (null) [13:24:39]execute_cgi path=json_proto method=POST [13:24:39]POST find Content-Length [13:24:39]Host: 172.17.59.68:8080 [13:24:39]Content-Length: 677 [13:24:39]Content-Type: application/json [13:24:39] [13:24:39]POST finish read [13:24:39]Found Content-Length = 677 [13:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:39]execute_script... [13:24: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)321187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:39]POST & json_proto [13:24:39]process_json_proto [13:24:39]json parsed OK: [13:24:39]protocol is kg_v1.0 [13:24:39]action value=close_receipt [13:24:39]process_action close_receipt [13:24:39]cmd_close_receipt [13:24:39]MH_GetDate [13:24:39]Write to MH i2c: F0 00 00 74 84 E7 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: F0 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: F0 09 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: F0 09 00 74 84 00 50 22 78 66 BC EC 60 65 AD [13:24:39]GetLastDocTimeStamp 1719149089 [13:24:39]current date 1719149136 [13:24:39]FM_GetShiftState [13:24:39]SAM_PROTO_GetShiftState [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 13 01 00 [13:24:39]Write to MH i2c: E2 08 00 75 84 80 13 01 00 00 00 00 00 76 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]OFD Sender: No OFD packet to send [13:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 0E 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 0E 00 75 84 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 94 [13:24:39]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:24:39]wFMCommunicate OK [13:24:39]SAM_PROTO_GetShiftState done [13:24:39]FM_GetShiftState done [13:24:39]opened in 1719106490 [13:24:39]opened+sec_in_day 1719192890 [13:24:39]quantity*price = 35059 [13:24:39]sum+1 = 35060 [13:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 108 23.06.2024 13:25 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112507 ФПД: 98114696103094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112507&fm=98114696103094&tin=02508201610067®Number=0000000000092771&sum=35000 [13:24:40]StoreToDocumentArchive [13:24:40]shift 392 fd 112507 [13:24:40]save to /storage/0392/doc_00112507 [13:24:40]save last doc name /storage/0392/doc_00112507 to /storage/kkm_last_doc_name [13:24:40]save OK [13:24:40]Clear old archive folders... [13:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:40]tlvbuf is 013E8400 [13:24:40]SAM_PROTO_ClearQueue [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 09 00 00 [13:24:40]Write to MH i2c: E2 08 00 82 84 80 09 00 00 00 00 00 00 78 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 82 84 00 90 00 7A [13:24:40]RAPDU: 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_ClearQueue done [13:24:40]KKMCreateOFDPacket [13:24:40]OFDProtocolAddRootSTLVToBuf [13:24:40]FM_MakeSignedData [13:24:40]FM_MakeSignedData [13:24:40]SAM_PROTO_SignData [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 0D 01 02 [13:24:40]Write to MH i2c: E2 08 00 83 84 80 0D 01 02 00 00 00 00 80 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 83 84 00 90 00 7B [13:24:40]RAPDU: 90 00 [13:24:40]wFMCommunicate OK [13:24:40]wFMCommunicate request_size=255 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 50 22 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B7 01 00 35 04 06 00 59 [13:24:40]Write to MH i2c: E2 02 01 84 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 50 22 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B7 01 00 35 04 06 00 59 00 00 E3 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 03 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 03 00 84 84 00 90 00 7C [13:24:41]RAPDU: 90 00 [13:24:41]wFMCommunicate OK [13:24:41]wFMCommunicate request_size=10 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 0D 02 02 05 3C 1B 9B C4 B6 [13:24:41]Write to MH i2c: E2 0D 00 85 84 80 0D 02 02 05 00 3C 1B 9B C4 B6 00 00 F9 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 03 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 03 00 85 84 00 90 00 7D [13:24:41]RAPDU: 90 00 [13:24:41]wFMCommunicate OK [13:24:41]wFMCommunicate request_size=4 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 0D 03 02 [13:24:41]Write to MH i2c: E2 08 00 86 84 80 0D 03 02 00 00 00 00 85 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 0B 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 0B 00 86 84 00 64 B9 31 09 BA 83 1C 23 90 00 59 [13:24:41]RAPDU: 64 B9 31 09 BA 83 1C 23 90 00 [13:24:41]wFMCommunicate OK [13:24:41]SAM_PROTO_SignData done [13:24:41]FM_MakeSignedData done [13:24:41]CreateOFDProtocolMessage [13:24:41]wFMCommunicate request_size=4 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 11 00 00 [13:24:41]Write to MH i2c: E2 08 00 87 84 80 11 00 00 00 00 00 00 85 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 17 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 17 00 87 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [13:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:24:41]wFMCommunicate OK [13:24:41]CreateOFDProtocolMessage done [13:24:41]OFDSenderStorePacket 112507 [13:24:41]StoreOFDPacket docnum=112507 [13:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A6 F1 07 01 D0 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 50 22 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B7 01 00 35 04 06 00 59 3C 1B 9B C4 B6 64 B9 31 09 BA 83 1C 23 [13:24:41]CheckFolder [13:24:41]dirname=/storage/ofd_packets [13:24:41]CheckFolder done [13:24:41]ProducePacketName [13:24:41]name=ofd_packets/00112507 [13:24:41]NVStorageSaveData ofd_packets/00112507 [13:24:41]File name is /storage/ofd_packets/00112507 [13:24:41]Write 301 bytes [13:24:41]NVStorageSaveData done [13:24:41]OFDSenderStorePacket done [13:24:41]KKMCreateOFDPacket done [13:24:41]NVStorageSaveData kkm_last_timestamp [13:24:41]File name is /storage/kkm_last_timestamp [13:24:41]Write 4 bytes [13:24:41]NVStorageSaveData done [13:24:41]ExternCall_PrintAddStr [13:24:41]wPrintStart [13:24:41]Write to MH i2c: 01 00 00 88 84 0C [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 07 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 07 00 88 84 00 00 00 00 00 FF 0F 21 [13:24:41]RasterBufferAndPrint [13:24:41]line Счет N : (1)321187 [13:24:41]line ИНН: 02508201610067 [13:24:41]line Контрольно-Кассовый Чек [13:24:41]line ПРОДАЖА [13:24:41]line ТРК (МРК, ГНК) : 11 [13:24:41]line Товар: 2710124130 [13:24:41]line Аи-92-К-5 [13:24:41]line 5.280 * 66.40 [13:24:41]line = 350.59 [13:24:41]line НДС 12% НСП 1% [13:24:41]line > о реализуемом товаре [13:24:41]line ОКРУГЛЕНИЕ: -0.59 [13:24:41]line ИТОГО: 350.00 [13:24:41]line Внесено: 350.00 [13:24:41]line СДАЧА: 0.00 [13:24:41]line НСП 1% : 3.10 [13:24:41]line НДС 12% : 37.23 [13:24:41]line Наличными: 350.00 [13:24:41]line Безнал.: 0.00 [13:24:41]line Место: АЗС № 65 "Партнер Нефть" [13:24:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:24:41]line СНО: Общий режим [13:24:41]line Чек 108 23.06.2024 13:25 [13:24:41]line Смена: 392 ФФД: 1.0 [13:24:41]line ЗНМ: 0300000198 [13:24:41]line РНМ: 0000000000092771 [13:24:41]line Версия ККМ: 001 [13:24:41]line ФМ: 0000000000875083 [13:24:41]line ФД: 112507 [13:24:41]line ФПД: 98114696103094 [13:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T132536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112507&fm=98114696103094&tin=02508201610067®Number=0000000000092771&sum=35000 [13:24:41]OFD Sender: Processing packet 112507 [packets to send 38, broken 37] [13:24:41]ProducePacketName [13:24:41]name=ofd_packets/00112507 [13:24:41]OFD Sender: To server: pG, [13:24:41]CommunicateWithHost lk.salyk.kg:30040 [13:24:41]ConnectInit lk.salyk.kg [13:24:41]written 0, free lines is 4095 [13:24:41]Connected sock=7 [13:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A6 F1 07 01 D0 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 50 22 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B7 01 00 35 04 06 00 59 3C 1B 9B C4 B6 64 B9 31 09 BA 83 1C 23 [13:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1F B1 47 00 3A BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B7 01 00 F4 03 04 00 3D B9 77 66 B6 04 01 00 00 60 60 D9 0A 7D 20 8B D7 [13:24:41]CommunicateWithHost err = 0 [13:24:41]CheckOFDResponse [13:24:41]1017 (14) - 77093643461234 [13:24:41]1041 (16) - 0000000000875083 [13:24:41]1040 (4) - 112507 [13:24:41]1012 (4) - 23.06.2024 05:57 [13:24:41]1206 (1) - 0 [13:24:41]OFD Sender: Remove packet 112507 [13:24:41]ProducePacketName [13:24:41]name=ofd_packets/00112507 [13:24:41]NVStorageDeleteData [13:24:41]Write to MH i2c: 01 00 00 B3 84 37 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 07 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 07 00 B3 84 00 00 00 00 00 E5 0C 2F [13:24:41]RasterBufferAndPrint [13:24:41]line [13:24:41]line [13:24:41]line [13:24:41]line [13:24:41]line [13:24:41]written 0, free lines is 3310 [13:24:41]MH_Cut [13:24:41]Write to MH i2c: D1 01 00 BA 84 01 10 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: D1 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: D1 01 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: D1 01 00 BA 84 00 0F [13:24:41]Write to MH i2c: 01 00 00 BB 84 3F [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:42]OFD Sender: No OFD packet to send [13:24:42]*** Cut start [13:24:42]*** Partial cut [13:24:42]*** CUTSNS_PIN = 1 [13:24:42]*** CUTSNS_PIN = 0 [13:24:42]*** Brake cut motor [13:24:43]Read from MH i2c: 01 [13:24:43]MH_I2C_Read... [13:24:43]*** Stop cut motor [13:24:43]*** Cut end [13:24:43]Read from MH i2c: 01 07 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 07 00 BB 84 00 00 00 00 00 FF 0F 54 [13:24:43]process_action close_receipt done [13:24:43]requested_data is exist [13:24:43]produce_requested_data [13:24:43]requested_item fm.sn is exist - process it [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 11 00 00 [13:24:43]Write to MH i2c: E2 08 00 BC 84 80 11 00 00 00 00 00 00 BA [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 17 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 17 00 BC 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [13:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:24:43]wFMCommunicate OK [13:24:43]requested_item fd.num is exist - process it [13:24:43]SAM_PROTO_GetFieldsCounters [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 13 00 00 [13:24:43]Write to MH i2c: E2 08 00 BD 84 80 13 00 00 00 00 00 00 BD [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 62 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 62 00 BD 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7B B7 01 00 0E 04 04 00 88 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 DE [13:24:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7B B7 01 00 0E 04 04 00 88 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 [13:24:43]wFMCommunicate OK [13:24:43]SAM_PROTO_GetFieldsCounters done [13:24:43]requested_item shift.num is exist - process it [13:24:43]requested_item shift.opened is exist - process it [13:24:43]req_shift_opened [13:24:43]FM_GetShiftState [13:24:43]SAM_PROTO_GetShiftState [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 13 01 00 [13:24:43]Write to MH i2c: E2 08 00 BE 84 80 13 01 00 00 00 00 00 BF [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0E 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0E 00 BE 84 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 DD [13:24:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:24:43]wFMCommunicate OK [13:24:43]SAM_PROTO_GetShiftState done [13:24:43]FM_GetShiftState done [13:24:43]req_shift_opened done [13:24:43]requested_item shift.open_date is exist - process it [13:24:43]req_shift_open_date [13:24:43]req_shift_open_date done [13:24:43]produce_requested_data done [13:24:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112507,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:24:43]process_action_free close_receipt [13:24:43]json_value_free [13:24:43]json_value_free done [13:24:43]process_json_proto returns [13:24:43]Send response to host [13:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112507,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:24:43]free response buf [13:24:43]execute_script done [13:24:43]execute_script returns [13:24:43]free content buf [13:24:43]Sock 9.Close socket [13:24:43]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [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:11]accept exits with 10 [13:30:11]New connection [13:30:11]New thread 3066957156 created [13:30:11]Thread 3066813796 joined [13:30:11]Waiting for new connection... [13:30:11] Sock 10.Parse request [13:30:11]Sock 10.Check first char [13:30:11]Sock 10.First char is OK [13:30:11]request: POST /json_proto HTTP/1.0 [13:30:11]Method: POST [13:30:11]URL: /json_proto [13:30:11]Method is POST - this is cgi request [13:30:11]url: /json_proto [13:30:11]query_string will be loaded in cgi processing [13:30:11]execute_cgi json_proto POST (null) [13:30:11]execute_cgi path=json_proto method=POST [13:30:11]POST find Content-Length [13:30:11]Host: 172.17.59.68:8080 [13:30:11]Content-Length: 682 [13:30:11]Content-Type: application/json [13:30:11] [13:30:11]POST finish read [13:30:11]Found Content-Length = 682 [13:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:30:11]execute_script... [13:30: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)321188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:30:11]POST & json_proto [13:30:11]process_json_proto [13:30:11]json parsed OK: [13:30:11]protocol is kg_v1.0 [13:30:11]action value=close_receipt [13:30:11]process_action close_receipt [13:30:11]cmd_close_receipt [13:30:11]MH_GetDate [13:30:11]Write to MH i2c: F0 00 00 BF 84 32 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: F0 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: F0 09 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: F0 09 00 BF 84 00 9C 23 78 66 BC EC 60 65 45 [13:30:11]GetLastDocTimeStamp 1719149136 [13:30:11]current date 1719149468 [13:30:11]FM_GetShiftState [13:30:11]SAM_PROTO_GetShiftState [13:30:11]wFMCommunicate request_size=4 [13:30:11]MH_SAM_APDU [13:30:11]CAPDU: 80 13 01 00 [13:30:11]Write to MH i2c: E2 08 00 C0 84 80 13 01 00 00 00 00 00 C1 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:11]Read from MH i2c: E2 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: E2 0E 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: E2 0E 00 C0 84 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 DF [13:30:11]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:30:11]wFMCommunicate OK [13:30:11]SAM_PROTO_GetShiftState done [13:30:11]FM_GetShiftState done [13:30:11]opened in 1719106490 [13:30:11]opened+sec_in_day 1719192890 [13:30:11]quantity*price = 200063 [13:30:11]sum+1 = 200064 [13:30:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 109 23.06.2024 13:31 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112508 ФПД: 277569661283966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133109&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112508&fm=277569661283966&tin=02508201610067®Number=0000000000092771&sum=200000 [13:30:12]StoreToDocumentArchive [13:30:12]shift 392 fd 112508 [13:30:12]save to /storage/0392/doc_00112508 [13:30:12]save last doc name /storage/0392/doc_00112508 to /storage/kkm_last_doc_name [13:30:12]save OK [13:30:12]Clear old archive folders... [13:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:12]tlvbuf is 013A3F80 [13:30:12]SAM_PROTO_ClearQueue [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 09 00 00 [13:30:12]Write to MH i2c: E2 08 00 CD 84 80 09 00 00 00 00 00 00 C3 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:12]OFD Sender: No OFD packet to send [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 CD 84 00 90 00 C5 [13:30:12]RAPDU: 90 00 [13:30:12]wFMCommunicate OK [13:30:12]SAM_PROTO_ClearQueue done [13:30:12]KKMCreateOFDPacket [13:30:12]OFDProtocolAddRootSTLVToBuf [13:30:12]FM_MakeSignedData [13:30:12]FM_MakeSignedData [13:30:12]SAM_PROTO_SignData [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 0D 01 02 [13:30:12]Write to MH i2c: E2 08 00 CE 84 80 0D 01 02 00 00 00 00 CB [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 CE 84 00 90 00 C6 [13:30:12]RAPDU: 90 00 [13:30:12]wFMCommunicate OK [13:30:12]wFMCommunicate request_size=255 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 6D 00 00 00 F4 03 04 00 9D 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B7 01 00 35 04 06 00 FC [13:30:12]Write to MH i2c: E2 02 01 CF 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 6D 00 00 00 F4 03 04 00 9D 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B7 01 00 35 04 06 00 FC 00 00 38 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 CF 84 00 90 00 C7 [13:30:12]RAPDU: 90 00 [13:30:12]wFMCommunicate OK [13:30:12]wFMCommunicate request_size=10 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 0D 02 02 05 72 B9 0F AE 7E [13:30:12]Write to MH i2c: E2 0D 00 D0 84 80 0D 02 02 05 00 72 B9 0F AE 7E 00 00 3E [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:13]Read from MH i2c: E2 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: E2 03 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: E2 03 00 D0 84 00 90 00 C8 [13:30:13]RAPDU: 90 00 [13:30:13]wFMCommunicate OK [13:30:13]wFMCommunicate request_size=4 [13:30:13]MH_SAM_APDU [13:30:13]CAPDU: 80 0D 03 02 [13:30:13]Write to MH i2c: E2 08 00 D1 84 80 0D 03 02 00 00 00 00 D0 [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:13]Read from MH i2c: E2 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: E2 0B 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: E2 0B 00 D1 84 00 C0 68 36 1C B8 F7 5B D1 90 00 26 [13:30:13]RAPDU: C0 68 36 1C B8 F7 5B D1 90 00 [13:30:13]wFMCommunicate OK [13:30:13]SAM_PROTO_SignData done [13:30:13]FM_MakeSignedData done [13:30:13]CreateOFDProtocolMessage [13:30:13]wFMCommunicate request_size=4 [13:30:13]MH_SAM_APDU [13:30:13]CAPDU: 80 11 00 00 [13:30:13]Write to MH i2c: E2 08 00 D2 84 80 11 00 00 00 00 00 00 D0 [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:13]Read from MH i2c: E2 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: E2 17 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: E2 17 00 D2 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [13:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:30:13]wFMCommunicate OK [13:30:13]CreateOFDProtocolMessage done [13:30:13]OFDSenderStorePacket 112508 [13:30:13]StoreOFDPacket docnum=112508 [13:30:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 36 13 07 01 6D 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 6D 00 00 00 F4 03 04 00 9D 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B7 01 00 35 04 06 00 FC 72 B9 0F AE 7E C0 68 36 1C B8 F7 5B D1 [13:30:13]CheckFolder [13:30:13]dirname=/storage/ofd_packets [13:30:13]CheckFolder done [13:30:13]ProducePacketName [13:30:13]name=ofd_packets/00112508 [13:30:13]NVStorageSaveData ofd_packets/00112508 [13:30:13]File name is /storage/ofd_packets/00112508 [13:30:13]Write 301 bytes [13:30:13]NVStorageSaveData done [13:30:13]OFDSenderStorePacket done [13:30:13]KKMCreateOFDPacket done [13:30:13]NVStorageSaveData kkm_last_timestamp [13:30:13]File name is /storage/kkm_last_timestamp [13:30:13]Write 4 bytes [13:30:13]NVStorageSaveData done [13:30:13]ExternCall_PrintAddStr [13:30:13]wPrintStart [13:30:13]Write to MH i2c: 01 00 00 D3 84 57 [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 07 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 07 00 D3 84 00 00 00 00 00 FF 0F 6C [13:30:13]RasterBufferAndPrint [13:30:13]line Счет N : (1)321188 [13:30:13]line ИНН: 02508201610067 [13:30:13]line Контрольно-Кассовый Чек [13:30:13]line ПРОДАЖА [13:30:13]line ТРК (МРК, ГНК) : 11 [13:30:13]line Товар: 2710124130 [13:30:13]line Аи-92-К-5 [13:30:13]line 30.130 * 66.40 [13:30:13]line = 2000.63 [13:30:13]line НДС 12% НСП 1% [13:30:13]line > о реализуемом товаре [13:30:13]line ОКРУГЛЕНИЕ: -0.63 [13:30:13]line ИТОГО: 2000.00 [13:30:13]line Внесено: 2000.00 [13:30:13]line СДАЧА: 0.00 [13:30:13]line НСП 1% : 17.70 [13:30:13]line НДС 12% : 212.46 [13:30:13]line Наличными: 2000.00 [13:30:13]line Безнал.: 0.00 [13:30:13]line Место: АЗС № 65 "Партнер Нефть" [13:30:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:30:13]line СНО: Общий режим [13:30:13]line Чек 109 23.06.2024 13:31 [13:30:13]line Смена: 392 ФФД: 1.0 [13:30:13]line ЗНМ: 0300000198 [13:30:13]line РНМ: 0000000000092771 [13:30:13]line Версия ККМ: 001 [13:30:13]line ФМ: 0000000000875083 [13:30:13]line ФД: 112508 [13:30:13]line ФПД: 277569661283966 [13:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133109&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112508&fm=277569661283966&tin=02508201610067®Number=0000000000092771&sum=200000 [13:30:13]OFD Sender: Processing packet 112508 [packets to send 38, broken 37] [13:30:13]ProducePacketName [13:30:13]name=ofd_packets/00112508 [13:30:13]OFD Sender: To server: pG, [13:30:13]CommunicateWithHost lk.salyk.kg:30040 [13:30:13]ConnectInit lk.salyk.kg [13:30:13]written 0, free lines is 4095 [13:30:13]Connected sock=9 [13:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 36 13 07 01 6D 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 6D 00 00 00 F4 03 04 00 9D 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B7 01 00 35 04 06 00 FC 72 B9 0F AE 7E C0 68 36 1C B8 F7 5B D1 [13:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 21 80 47 00 0D 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B7 01 00 F4 03 04 00 89 BA 77 66 B6 04 01 00 00 4D C1 C0 24 09 33 6C 40 [13:30:13]CommunicateWithHost err = 0 [13:30:13]CheckOFDResponse [13:30:13]1017 (14) - 77093643461234 [13:30:13]1041 (16) - 0000000000875083 [13:30:13]1040 (4) - 112508 [13:30:13]1012 (4) - 23.06.2024 06:02 [13:30:13]1206 (1) - 0 [13:30:13]OFD Sender: Remove packet 112508 [13:30:13]ProducePacketName [13:30:13]name=ofd_packets/00112508 [13:30:13]NVStorageDeleteData [13:30:13]Write to MH i2c: 01 00 00 FE 84 82 [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 07 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 07 00 FE 84 00 00 00 00 00 F0 0C 85 [13:30:13]RasterBufferAndPrint [13:30:13]line [13:30:13]line [13:30:13]line [13:30:13]line [13:30:13]line [13:30:13]written 0, free lines is 3321 [13:30:13]MH_Cut [13:30:13]Write to MH i2c: D1 01 00 05 85 01 5C [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: D1 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: D1 01 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: D1 01 00 05 85 00 5B [13:30:13]Write to MH i2c: 01 00 00 06 85 8B [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:14]OFD Sender: No OFD packet to send [13:30:14]*** Cut start [13:30:14]*** Partial cut [13:30:14]*** CUTSNS_PIN = 1 [13:30:14]*** CUTSNS_PIN = 0 [13:30:14]*** Brake cut motor [13:30:15]Read from MH i2c: 01 [13:30:15]MH_I2C_Read... [13:30:15]*** Stop cut motor [13:30:15]*** Cut end [13:30:15]Read from MH i2c: 01 07 00 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: 01 07 00 06 85 00 00 00 00 00 FF 0F A0 [13:30:15]process_action close_receipt done [13:30:15]requested_data is exist [13:30:15]produce_requested_data [13:30:15]requested_item fm.sn is exist - process it [13:30:15]wFMCommunicate request_size=4 [13:30:15]MH_SAM_APDU [13:30:15]CAPDU: 80 11 00 00 [13:30:15]Write to MH i2c: E2 08 00 07 85 80 11 00 00 00 00 00 00 06 [13:30:15]Write i2c OK [13:30:15]MH_I2C_Read... [13:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:15]Read from MH i2c: E2 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: E2 17 00 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: E2 17 00 07 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [13:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:30:15]wFMCommunicate OK [13:30:15]requested_item fd.num is exist - process it [13:30:15]SAM_PROTO_GetFieldsCounters [13:30:15]wFMCommunicate request_size=4 [13:30:15]MH_SAM_APDU [13:30:15]CAPDU: 80 13 00 00 [13:30:15]Write to MH i2c: E2 08 00 08 85 80 13 00 00 00 00 00 00 09 [13:30:15]Write i2c OK [13:30:15]MH_I2C_Read... [13:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:15]Read from MH i2c: E2 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: E2 62 00 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: E2 62 00 08 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7C B7 01 00 0E 04 04 00 88 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 2E [13:30:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7C B7 01 00 0E 04 04 00 88 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 [13:30:15]wFMCommunicate OK [13:30:15]SAM_PROTO_GetFieldsCounters done [13:30:15]requested_item shift.num is exist - process it [13:30:15]requested_item shift.opened is exist - process it [13:30:15]req_shift_opened [13:30:15]FM_GetShiftState [13:30:15]SAM_PROTO_GetShiftState [13:30:15]wFMCommunicate request_size=4 [13:30:15]MH_SAM_APDU [13:30:15]CAPDU: 80 13 01 00 [13:30:15]Write to MH i2c: E2 08 00 09 85 80 13 01 00 00 00 00 00 0B [13:30:15]Write i2c OK [13:30:15]MH_I2C_Read... [13:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:15]Read from MH i2c: E2 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: E2 0E 00 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: E2 0E 00 09 85 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 29 [13:30:15]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:30:15]wFMCommunicate OK [13:30:15]SAM_PROTO_GetShiftState done [13:30:15]FM_GetShiftState done [13:30:15]req_shift_opened done [13:30:15]requested_item shift.open_date is exist - process it [13:30:15]req_shift_open_date [13:30:15]req_shift_open_date done [13:30:15]produce_requested_data done [13:30:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112508,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:30:15]process_action_free close_receipt [13:30:15]json_value_free [13:30:15]json_value_free done [13:30:15]process_json_proto returns [13:30:15]Send response to host [13:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112508,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:30:15]free response buf [13:30:15]execute_script done [13:30:15]execute_script returns [13:30:15]free content buf [13:30:15]Sock 10.Close socket [13:30:15]Sock 10.Thread stoped [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:46]accept exits with 7 [13:30:46]New connection [13:30:46]New thread 3066813796 created [13:30:46]Thread 3066957156 joined [13:30:46]Waiting for new connection... [13:30:46] Sock 7.Parse request [13:30:46]Sock 7.Check first char [13:30:46]Sock 7.First char is OK [13:30:46]request: POST /json_proto HTTP/1.0 [13:30:46]Method: POST [13:30:46]URL: /json_proto [13:30:46]Method is POST - this is cgi request [13:30:46]url: /json_proto [13:30:46]query_string will be loaded in cgi processing [13:30:46]execute_cgi json_proto POST (null) [13:30:46]execute_cgi path=json_proto method=POST [13:30:46]POST find Content-Length [13:30:46]Host: 172.17.59.68:8080 [13:30:46]Content-Length: 679 [13:30:46]Content-Type: application/json [13:30:46] [13:30:46]POST finish read [13:30:46]Found Content-Length = 679 [13:30:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:30:46]execute_script... [13:30: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)321189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:30:46]POST & json_proto [13:30:46]process_json_proto [13:30:46]json parsed OK: [13:30:46]protocol is kg_v1.0 [13:30:46]action value=close_receipt [13:30:46]process_action close_receipt [13:30:46]cmd_close_receipt [13:30:46]MH_GetDate [13:30:46]Write to MH i2c: F0 00 00 0A 85 7E [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: F0 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: F0 09 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: F0 09 00 0A 85 00 C0 23 78 66 BC EC 60 65 B5 [13:30:46]GetLastDocTimeStamp 1719149469 [13:30:46]current date 1719149504 [13:30:46]FM_GetShiftState [13:30:46]SAM_PROTO_GetShiftState [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 13 01 00 [13:30:46]Write to MH i2c: E2 08 00 0B 85 80 13 01 00 00 00 00 00 0D [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 0E 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 0E 00 0B 85 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2B [13:30:46]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:30:46]wFMCommunicate OK [13:30:46]SAM_PROTO_GetShiftState done [13:30:46]FM_GetShiftState done [13:30:46]opened in 1719106490 [13:30:46]opened+sec_in_day 1719192890 [13:30:46]quantity*price = 100018 [13:30:46]sum+1 = 100020 [13:30:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 110 23.06.2024 13:31 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112509 ФПД: 253354518382852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133144&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112509&fm=253354518382852&tin=02508201610067®Number=0000000000092771&sum=100000 [13:30:47]StoreToDocumentArchive [13:30:47]shift 392 fd 112509 [13:30:47]save to /storage/0392/doc_00112509 [13:30:47]save last doc name /storage/0392/doc_00112509 to /storage/kkm_last_doc_name [13:30:47]save OK [13:30:47]Clear old archive folders... [13:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:47]tlvbuf is 01131E00 [13:30:47]SAM_PROTO_ClearQueue [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 09 00 00 [13:30:47]Write to MH i2c: E2 08 00 18 85 80 09 00 00 00 00 00 00 0F [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 18 85 00 90 00 11 [13:30:47]RAPDU: 90 00 [13:30:47]wFMCommunicate OK [13:30:47]SAM_PROTO_ClearQueue done [13:30:47]KKMCreateOFDPacket [13:30:47]OFDProtocolAddRootSTLVToBuf [13:30:47]FM_MakeSignedData [13:30:47]FM_MakeSignedData [13:30:47]SAM_PROTO_SignData [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 0D 01 02 [13:30:47]Write to MH i2c: E2 08 00 19 85 80 0D 01 02 00 00 00 00 17 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 19 85 00 90 00 12 [13:30:47]RAPDU: 90 00 [13:30:47]wFMCommunicate OK [13:30:47]wFMCommunicate request_size=255 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C0 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B7 01 00 35 04 06 00 E6 6C B2 12 [13:30:47]Write to MH i2c: E2 02 01 1A 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C0 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B7 01 00 35 04 06 00 E6 6C B2 12 00 00 80 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 03 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 03 00 1A 85 00 90 00 13 [13:30:48]RAPDU: 90 00 [13:30:48]wFMCommunicate OK [13:30:48]wFMCommunicate request_size=7 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 0D 02 02 02 09 04 [13:30:48]Write to MH i2c: E2 0A 00 1B 85 80 0D 02 02 02 00 09 04 00 00 2B [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 03 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 03 00 1B 85 00 90 00 14 [13:30:48]RAPDU: 90 00 [13:30:48]wFMCommunicate OK [13:30:48]wFMCommunicate request_size=4 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 0D 03 02 [13:30:48]Write to MH i2c: E2 08 00 1C 85 80 0D 03 02 00 00 00 00 1C [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 0B 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 0B 00 1C 85 00 8D 8F F7 F0 23 68 7B B7 90 00 DD [13:30:48]RAPDU: 8D 8F F7 F0 23 68 7B B7 90 00 [13:30:48]wFMCommunicate OK [13:30:48]SAM_PROTO_SignData done [13:30:48]FM_MakeSignedData done [13:30:48]CreateOFDProtocolMessage [13:30:48]wFMCommunicate request_size=4 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 11 00 00 [13:30:48]Write to MH i2c: E2 08 00 1D 85 80 11 00 00 00 00 00 00 1C [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 17 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 17 00 1D 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [13:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:30:48]wFMCommunicate OK [13:30:48]CreateOFDProtocolMessage done [13:30:48]OFDSenderStorePacket 112509 [13:30:48]StoreOFDPacket docnum=112509 [13:30:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 8C 7E 04 01 DF 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C0 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B7 01 00 35 04 06 00 E6 6C B2 12 09 04 8D 8F F7 F0 23 68 7B B7 [13:30:48]CheckFolder [13:30:48]dirname=/storage/ofd_packets [13:30:48]CheckFolder done [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00112509 [13:30:48]NVStorageSaveData ofd_packets/00112509 [13:30:48]File name is /storage/ofd_packets/00112509 [13:30:48]Write 298 bytes [13:30:48]NVStorageSaveData done [13:30:48]OFDSenderStorePacket done [13:30:48]KKMCreateOFDPacket done [13:30:48]NVStorageSaveData kkm_last_timestamp [13:30:48]File name is /storage/kkm_last_timestamp [13:30:48]Write 4 bytes [13:30:48]NVStorageSaveData done [13:30:48]ExternCall_PrintAddStr [13:30:48]wPrintStart [13:30:48]Write to MH i2c: 01 00 00 1E 85 A3 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 07 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 07 00 1E 85 00 00 00 00 00 FF 0F B8 [13:30:48]RasterBufferAndPrint [13:30:48]line Счет N : (1)321189 [13:30:48]line ИНН: 02508201610067 [13:30:48]line Контрольно-Кассовый Чек [13:30:48]line ПРОДАЖА [13:30:48]line ТРК (МРК, ГНК) : 22 [13:30:48]line Товар: 2710194210 [13:30:48]line ДТ-К-5 [13:30:48]line 13.720 * 72.90 [13:30:48]line = 1000.19 [13:30:48]line НДС 12% НСП 1% [13:30:48]line > о реализуемом товаре [13:30:48]line ОКРУГЛЕНИЕ: -0.19 [13:30:48]line ИТОГО: 1000.00 [13:30:48]line Внесено: 1000.00 [13:30:48]line СДАЧА: 0.00 [13:30:48]line НСП 1% : 8.85 [13:30:48]line НДС 12% : 106.21 [13:30:48]line Наличными: 1000.00 [13:30:48]line Безнал.: 0.00 [13:30:48]line Место: АЗС № 65 "Партнер Нефть" [13:30:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:30:48]line СНО: Общий режим [13:30:48]line Чек 110 23.06.2024 13:31 [13:30:48]line Смена: 392 ФФД: 1.0 [13:30:48]line ЗНМ: 0300000198 [13:30:48]line РНМ: 0000000000092771 [13:30:48]line Версия ККМ: 001 [13:30:48]line ФМ: 0000000000875083 [13:30:48]line ФД: 112509 [13:30:48]line ФПД: 253354518382852 [13:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133144&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112509&fm=253354518382852&tin=02508201610067®Number=0000000000092771&sum=100000 [13:30:48]OFD Sender: Processing packet 112509 [packets to send 38, broken 37] [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00112509 [13:30:48]OFD Sender: To server: pG, [13:30:48]CommunicateWithHost lk.salyk.kg:30040 [13:30:48]ConnectInit lk.salyk.kg [13:30:48]written 0, free lines is 4095 [13:30:48]Connected sock=10 [13:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 8C 7E 04 01 DF 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C0 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B7 01 00 35 04 06 00 E6 6C B2 12 09 04 8D 8F F7 F0 23 68 7B B7 [13:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F6 A2 47 00 03 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B7 01 00 F4 03 04 00 AC BA 77 66 B6 04 01 00 00 E2 96 66 AA EE 22 F1 F3 [13:30:48]CommunicateWithHost err = 0 [13:30:48]CheckOFDResponse [13:30:48]1017 (14) - 77093643461234 [13:30:48]1041 (16) - 0000000000875083 [13:30:48]1040 (4) - 112509 [13:30:48]1012 (4) - 23.06.2024 06:03 [13:30:48]1206 (1) - 0 [13:30:48]OFD Sender: Remove packet 112509 [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00112509 [13:30:48]NVStorageDeleteData [13:30:49]Write to MH i2c: 01 00 00 49 85 CE [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: 01 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: 01 07 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: 01 07 00 49 85 00 00 00 00 00 D9 0C BA [13:30:49]RasterBufferAndPrint [13:30:49]line [13:30:49]line [13:30:49]line [13:30:49]line [13:30:49]line [13:30:49]written 0, free lines is 3296 [13:30:49]MH_Cut [13:30:49]Write to MH i2c: D1 01 00 50 85 01 A7 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: D1 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: D1 01 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: D1 01 00 50 85 00 A6 [13:30:49]Write to MH i2c: 01 00 00 51 85 D6 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]OFD Sender: No OFD packet to send [13:30:49]*** Cut start [13:30:49]*** Partial cut [13:30:49]*** CUTSNS_PIN = 1 [13:30:49]*** CUTSNS_PIN = 0 [13:30:50]*** Brake cut motor [13:30:50]Read from MH i2c: 01 [13:30:50]MH_I2C_Read... [13:30:50]*** Stop cut motor [13:30:50]*** Cut end [13:30:50]Read from MH i2c: 01 07 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 07 00 51 85 00 00 00 00 00 FF 0F EB [13:30:50]process_action close_receipt done [13:30:50]requested_data is exist [13:30:50]produce_requested_data [13:30:50]requested_item fm.sn is exist - process it [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 11 00 00 [13:30:50]Write to MH i2c: E2 08 00 52 85 80 11 00 00 00 00 00 00 51 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 17 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 17 00 52 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [13:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:30:50]wFMCommunicate OK [13:30:50]requested_item fd.num is exist - process it [13:30:50]SAM_PROTO_GetFieldsCounters [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 13 00 00 [13:30:50]Write to MH i2c: E2 08 00 53 85 80 13 00 00 00 00 00 00 54 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 62 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 62 00 53 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7D B7 01 00 0E 04 04 00 88 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 7D [13:30:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7D B7 01 00 0E 04 04 00 88 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 [13:30:50]wFMCommunicate OK [13:30:50]SAM_PROTO_GetFieldsCounters done [13:30:50]requested_item shift.num is exist - process it [13:30:50]requested_item shift.opened is exist - process it [13:30:50]req_shift_opened [13:30:50]FM_GetShiftState [13:30:50]SAM_PROTO_GetShiftState [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 13 01 00 [13:30:50]Write to MH i2c: E2 08 00 54 85 80 13 01 00 00 00 00 00 56 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 0E 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 0E 00 54 85 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 74 [13:30:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:30:50]wFMCommunicate OK [13:30:50]SAM_PROTO_GetShiftState done [13:30:50]FM_GetShiftState done [13:30:50]req_shift_opened done [13:30:50]requested_item shift.open_date is exist - process it [13:30:50]req_shift_open_date [13:30:50]req_shift_open_date done [13:30:50]produce_requested_data done [13:30:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112509,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:30:50]process_action_free close_receipt [13:30:50]json_value_free [13:30:50]json_value_free done [13:30:50]process_json_proto returns [13:30:50]Send response to host [13:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112509,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:30:50]free response buf [13:30:50]execute_script done [13:30:50]execute_script returns [13:30:50]free content buf [13:30:50]Sock 7.Close socket [13:30:50]Sock 7.Thread stoped [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:06]accept exits with 9 [13:31:06]New connection [13:31:06]New thread 3066957156 created [13:31:06]Thread 3066813796 joined [13:31:06]Waiting for new connection... [13:31:06] Sock 9.Parse request [13:31:06]Sock 9.Check first char [13:31:06]Sock 9.First char is OK [13:31:06]request: POST /json_proto HTTP/1.0 [13:31:06]Method: POST [13:31:06]URL: /json_proto [13:31:06]Method is POST - this is cgi request [13:31:06]url: /json_proto [13:31:06]query_string will be loaded in cgi processing [13:31:06]execute_cgi json_proto POST (null) [13:31:06]execute_cgi path=json_proto method=POST [13:31:06]POST find Content-Length [13:31:06]Host: 172.17.59.68:8080 [13:31:06]Content-Length: 682 [13:31:06]Content-Type: application/json [13:31:06] [13:31:06]POST finish read [13:31:06]Found Content-Length = 682 [13:31:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:06]execute_script... [13:31: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)321190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:06]POST & json_proto [13:31:06]process_json_proto [13:31:06]json parsed OK: [13:31:06]protocol is kg_v1.0 [13:31:06]action value=close_receipt [13:31:06]process_action close_receipt [13:31:06]cmd_close_receipt [13:31:06]MH_GetDate [13:31:06]Write to MH i2c: F0 00 00 55 85 C9 [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: F0 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: F0 09 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: F0 09 00 55 85 00 D3 23 78 66 BC EC 60 65 13 [13:31:06]GetLastDocTimeStamp 1719149504 [13:31:06]current date 1719149523 [13:31:06]FM_GetShiftState [13:31:06]SAM_PROTO_GetShiftState [13:31:06]wFMCommunicate request_size=4 [13:31:06]MH_SAM_APDU [13:31:06]CAPDU: 80 13 01 00 [13:31:06]Write to MH i2c: E2 08 00 56 85 80 13 01 00 00 00 00 00 58 [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:06]Read from MH i2c: E2 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 0E 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 0E 00 56 85 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 76 [13:31:06]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:31:06]wFMCommunicate OK [13:31:06]SAM_PROTO_GetShiftState done [13:31:06]FM_GetShiftState done [13:31:06]opened in 1719106490 [13:31:06]opened+sec_in_day 1719192890 [13:31:06]quantity*price = 133065 [13:31:06]sum+1 = 133067 [13:31:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1330.00 Внесено: 1330.00 СДАЧА: 0.00 НСП 1% : 11.78 НДС 12% : 141.31 Наличными: 1330.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 111 23.06.2024 13:32 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112510 ФПД: 87120099346831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133203&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112510&fm=87120099346831&tin=02508201610067®Number=0000000000092771&sum=133000 [13:31:07]StoreToDocumentArchive [13:31:07]shift 392 fd 112510 [13:31:07]save to /storage/0392/doc_00112510 [13:31:07]save last doc name /storage/0392/doc_00112510 to /storage/kkm_last_doc_name [13:31:07]save OK [13:31:07]Clear old archive folders... [13:31:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:07]tlvbuf is 011F1680 [13:31:07]SAM_PROTO_ClearQueue [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 09 00 00 [13:31:07]Write to MH i2c: E2 08 00 63 85 80 09 00 00 00 00 00 00 5A [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 63 85 00 90 00 5C [13:31:07]RAPDU: 90 00 [13:31:07]wFMCommunicate OK [13:31:07]SAM_PROTO_ClearQueue done [13:31:07]KKMCreateOFDPacket [13:31:07]OFDProtocolAddRootSTLVToBuf [13:31:07]FM_MakeSignedData [13:31:07]FM_MakeSignedData [13:31:07]SAM_PROTO_SignData [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 0D 01 02 [13:31:07]Write to MH i2c: E2 08 00 64 85 80 0D 01 02 00 00 00 00 62 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 64 85 00 90 00 5D [13:31:07]RAPDU: 90 00 [13:31:07]wFMCommunicate OK [13:31:07]wFMCommunicate request_size=255 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D3 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B7 01 00 35 04 06 00 4F [13:31:07]Write to MH i2c: E2 02 01 65 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D3 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B7 01 00 35 04 06 00 4F 00 00 59 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 65 85 00 90 00 5E [13:31:07]RAPDU: 90 00 [13:31:07]wFMCommunicate OK [13:31:07]wFMCommunicate request_size=10 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 0D 02 02 05 3C 3A 93 09 8F [13:31:07]Write to MH i2c: E2 0D 00 66 85 80 0D 02 02 05 00 3C 3A 93 09 8F 00 00 10 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 66 85 00 90 00 5F [13:31:07]RAPDU: 90 00 [13:31:07]wFMCommunicate OK [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 0D 03 02 [13:31:07]Write to MH i2c: E2 08 00 67 85 80 0D 03 02 00 00 00 00 67 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0B 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0B 00 67 85 00 42 76 00 C7 90 29 42 91 90 00 73 [13:31:07]RAPDU: 42 76 00 C7 90 29 42 91 90 00 [13:31:07]wFMCommunicate OK [13:31:07]SAM_PROTO_SignData done [13:31:07]FM_MakeSignedData done [13:31:07]CreateOFDProtocolMessage [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 11 00 00 [13:31:07]Write to MH i2c: E2 08 00 68 85 80 11 00 00 00 00 00 00 67 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 17 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 17 00 68 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [13:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:31:07]wFMCommunicate OK [13:31:07]CreateOFDProtocolMessage done [13:31:07]OFDSenderStorePacket 112510 [13:31:07]StoreOFDPacket docnum=112510 [13:31:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 00 07 01 56 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D3 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B7 01 00 35 04 06 00 4F 3C 3A 93 09 8F 42 76 00 C7 90 29 42 91 [13:31:07]CheckFolder [13:31:07]dirname=/storage/ofd_packets [13:31:07]CheckFolder done [13:31:07]ProducePacketName [13:31:07]name=ofd_packets/00112510 [13:31:07]NVStorageSaveData ofd_packets/00112510 [13:31:07]File name is /storage/ofd_packets/00112510 [13:31:07]Write 301 bytes [13:31:07]NVStorageSaveData done [13:31:07]OFDSenderStorePacket done [13:31:07]KKMCreateOFDPacket done [13:31:07]NVStorageSaveData kkm_last_timestamp [13:31:07]File name is /storage/kkm_last_timestamp [13:31:07]Write 4 bytes [13:31:07]NVStorageSaveData done [13:31:07]ExternCall_PrintAddStr [13:31:07]wPrintStart [13:31:07]Write to MH i2c: 01 00 00 69 85 EE [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: 01 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: 01 07 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: 01 07 00 69 85 00 00 00 00 00 FF 0F 03 [13:31:07]RasterBufferAndPrint [13:31:07]line Счет N : (1)321190 [13:31:07]line ИНН: 02508201610067 [13:31:07]line Контрольно-Кассовый Чек [13:31:07]line ПРОДАЖА [13:31:07]line ТРК (МРК, ГНК) : 11 [13:31:07]line Товар: 2710124130 [13:31:07]line Аи-92-К-5 [13:31:07]line 20.040 * 66.40 [13:31:07]line = 1330.66 [13:31:07]line НДС 12% НСП 1% [13:31:07]line > о реализуемом товаре [13:31:07]line ОКРУГЛЕНИЕ: -0.66 [13:31:07]line ИТОГО: 1330.00 [13:31:07]line Внесено: 1330.00 [13:31:07]line СДАЧА: 0.00 [13:31:07]line НСП 1% : 11.78 [13:31:07]line НДС 12% : 141.31 [13:31:07]line Наличными: 1330.00 [13:31:07]line Безнал.: 0.00 [13:31:07]line Место: АЗС № 65 "Партнер Нефть" [13:31:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:31:07]line СНО: Общий режим [13:31:07]line Чек 111 23.06.2024 13:32 [13:31:07]line Смена: 392 ФФД: 1.0 [13:31:07]line ЗНМ: 0300000198 [13:31:07]line РНМ: 0000000000092771 [13:31:07]line Версия ККМ: 001 [13:31:07]line ФМ: 0000000000875083 [13:31:07]line ФД: 112510 [13:31:07]line ФПД: 87120099346831 [13:31:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133203&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112510&fm=87120099346831&tin=02508201610067®Number=0000000000092771&sum=133000 [13:31:08]OFD Sender: Processing packet 112510 [packets to send 38, broken 37] [13:31:08]ProducePacketName [13:31:08]name=ofd_packets/00112510 [13:31:08]OFD Sender: To server: pG, [13:31:08]CommunicateWithHost lk.salyk.kg:30040 [13:31:08]ConnectInit lk.salyk.kg [13:31:08]written 0, free lines is 4095 [13:31:08]Connected sock=10 [13:31:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 00 07 01 56 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D3 23 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B7 01 00 35 04 06 00 4F 3C 3A 93 09 8F 42 76 00 C7 90 29 42 91 [13:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D7 01 47 00 30 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 38 37 35 30 38 33 10 04 04 00 7E B7 01 00 F4 03 04 00 BF BA 77 66 B6 04 01 00 00 96 17 12 6E E9 33 DB 3E [13:31:08]CommunicateWithHost err = 0 [13:31:08]CheckOFDResponse [13:31:08]1017 (14) - 77093643461234 [13:31:08]1041 (16) - 0000000000875083 [13:31:08]1040 (4) - 112510 [13:31:08]1012 (4) - 23.06.2024 06:03 [13:31:08]1206 (1) - 0 [13:31:08]OFD Sender: Remove packet 112510 [13:31:08]ProducePacketName [13:31:08]name=ofd_packets/00112510 [13:31:08]NVStorageDeleteData [13:31:08]Write to MH i2c: 01 00 00 94 85 19 [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: 01 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: 01 07 00 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: 01 07 00 94 85 00 00 00 00 00 EA 0C 16 [13:31:08]RasterBufferAndPrint [13:31:08]line [13:31:08]line [13:31:08]line [13:31:08]line [13:31:08]line [13:31:08]written 0, free lines is 3312 [13:31:08]MH_Cut [13:31:08]Write to MH i2c: D1 01 00 9B 85 01 F2 [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: D1 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: D1 01 00 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: D1 01 00 9B 85 00 F1 [13:31:08]Write to MH i2c: 01 00 00 9C 85 21 [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:09]OFD Sender: No OFD packet to send [13:31:09]*** Cut start [13:31:09]*** Partial cut [13:31:09]*** CUTSNS_PIN = 1 [13:31:09]*** CUTSNS_PIN = 0 [13:31:09]*** Brake cut motor [13:31:10]Read from MH i2c: 01 [13:31:10]MH_I2C_Read... [13:31:10]*** Stop cut motor [13:31:10]*** Cut end [13:31:10]Read from MH i2c: 01 07 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: 01 07 00 9C 85 00 00 00 00 00 FF 0F 36 [13:31:10]process_action close_receipt done [13:31:10]requested_data is exist [13:31:10]produce_requested_data [13:31:10]requested_item fm.sn is exist - process it [13:31:10]wFMCommunicate request_size=4 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 11 00 00 [13:31:10]Write to MH i2c: E2 08 00 9D 85 80 11 00 00 00 00 00 00 9C [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:10]Read from MH i2c: E2 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 17 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 17 00 9D 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [13:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:31:10]wFMCommunicate OK [13:31:10]requested_item fd.num is exist - process it [13:31:10]SAM_PROTO_GetFieldsCounters [13:31:10]wFMCommunicate request_size=4 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 13 00 00 [13:31:10]Write to MH i2c: E2 08 00 9E 85 80 13 00 00 00 00 00 00 9F [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:10]Read from MH i2c: E2 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 62 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 62 00 9E 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B7 01 00 0E 04 04 00 88 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 CC [13:31:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B7 01 00 0E 04 04 00 88 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 [13:31:10]wFMCommunicate OK [13:31:10]SAM_PROTO_GetFieldsCounters done [13:31:10]requested_item shift.num is exist - process it [13:31:10]requested_item shift.opened is exist - process it [13:31:10]req_shift_opened [13:31:10]FM_GetShiftState [13:31:10]SAM_PROTO_GetShiftState [13:31:10]wFMCommunicate request_size=4 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 13 01 00 [13:31:10]Write to MH i2c: E2 08 00 9F 85 80 13 01 00 00 00 00 00 A1 [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:10]Read from MH i2c: E2 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 0E 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 0E 00 9F 85 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 BF [13:31:10]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:31:10]wFMCommunicate OK [13:31:10]SAM_PROTO_GetShiftState done [13:31:10]FM_GetShiftState done [13:31:10]req_shift_opened done [13:31:10]requested_item shift.open_date is exist - process it [13:31:10]req_shift_open_date [13:31:10]req_shift_open_date done [13:31:10]produce_requested_data done [13:31:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112510,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:31:10]process_action_free close_receipt [13:31:10]json_value_free [13:31:10]json_value_free done [13:31:10]process_json_proto returns [13:31:10]Send response to host [13:31:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112510,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:31:10]free response buf [13:31:10]execute_script done [13:31:10]execute_script returns [13:31:10]free content buf [13:31:10]Sock 9.Close socket [13:31:10]Sock 9.Thread stoped [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:44]accept exits with 7 [13:32:44]New connection [13:32:44]New thread 3066813796 created [13:32:44]Thread 3066957156 joined [13:32:44]Waiting for new connection... [13:32:44] Sock 7.Parse request [13:32:44]Sock 7.Check first char [13:32:44]Sock 7.First char is OK [13:32:44]request: POST /json_proto HTTP/1.0 [13:32:44]Method: POST [13:32:44]URL: /json_proto [13:32:44]Method is POST - this is cgi request [13:32:44]url: /json_proto [13:32:44]query_string will be loaded in cgi processing [13:32:44]execute_cgi json_proto POST (null) [13:32:44]execute_cgi path=json_proto method=POST [13:32:44]POST find Content-Length [13:32:44]Host: 172.17.59.68:8080 [13:32:44]Content-Length: 682 [13:32:44]Content-Type: application/json [13:32:44] [13:32:44]POST finish read [13:32:44]Found Content-Length = 682 [13:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:44]execute_script... [13:32: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)321191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:44]POST & json_proto [13:32:44]process_json_proto [13:32:44]json parsed OK: [13:32:44]protocol is kg_v1.0 [13:32:44]action value=close_receipt [13:32:44]process_action close_receipt [13:32:44]cmd_close_receipt [13:32:44]MH_GetDate [13:32:44]Write to MH i2c: F0 00 00 A0 85 14 [13:32:44]Write i2c OK [13:32:44]MH_I2C_Read... [13:32:44]Read from MH i2c: F0 [13:32:44]MH_I2C_Read... [13:32:44]Read from MH i2c: F0 09 00 [13:32:44]MH_I2C_Read... [13:32:44]Read from MH i2c: F0 09 00 A0 85 00 36 24 78 66 BC EC 60 65 C2 [13:32:44]GetLastDocTimeStamp 1719149523 [13:32:44]current date 1719149622 [13:32:44]FM_GetShiftState [13:32:44]SAM_PROTO_GetShiftState [13:32:44]wFMCommunicate request_size=4 [13:32:44]MH_SAM_APDU [13:32:44]CAPDU: 80 13 01 00 [13:32:44]Write to MH i2c: E2 08 00 A1 85 80 13 01 00 00 00 00 00 A3 [13:32:44]Write i2c OK [13:32:44]MH_I2C_Read... [13:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:44]Read from MH i2c: E2 [13:32:44]MH_I2C_Read... [13:32:44]Read from MH i2c: E2 0E 00 [13:32:44]MH_I2C_Read... [13:32:44]Read from MH i2c: E2 0E 00 A1 85 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C1 [13:32:44]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:32:44]wFMCommunicate OK [13:32:44]SAM_PROTO_GetShiftState done [13:32:44]FM_GetShiftState done [13:32:44]opened in 1719106490 [13:32:44]opened+sec_in_day 1719192890 [13:32:44]quantity*price = 100064 [13:32:44]sum+1 = 100066 [13:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 112 23.06.2024 13:33 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112511 ФПД: 26537501883271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133342&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112511&fm=26537501883271&tin=02508201610067®Number=0000000000092771&sum=100000 [13:32:45]StoreToDocumentArchive [13:32:45]shift 392 fd 112511 [13:32:45]save to /storage/0392/doc_00112511 [13:32:45]save last doc name /storage/0392/doc_00112511 to /storage/kkm_last_doc_name [13:32:45]save OK [13:32:45]Clear old archive folders... [13:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:45]tlvbuf is 0117FE90 [13:32:45]SAM_PROTO_ClearQueue [13:32:45]wFMCommunicate request_size=4 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 80 09 00 00 [13:32:45]Write to MH i2c: E2 08 00 AE 85 80 09 00 00 00 00 00 00 A5 [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:45]Read from MH i2c: E2 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 AE 85 00 90 00 A7 [13:32:45]RAPDU: 90 00 [13:32:45]wFMCommunicate OK [13:32:45]SAM_PROTO_ClearQueue done [13:32:45]KKMCreateOFDPacket [13:32:45]OFDProtocolAddRootSTLVToBuf [13:32:45]FM_MakeSignedData [13:32:45]FM_MakeSignedData [13:32:45]SAM_PROTO_SignData [13:32:45]wFMCommunicate request_size=4 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 80 0D 01 02 [13:32:45]Write to MH i2c: E2 08 00 AF 85 80 0D 01 02 00 00 00 00 AD [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:45]Read from MH i2c: E2 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 AF 85 00 90 00 A8 [13:32:45]RAPDU: 90 00 [13:32:45]wFMCommunicate OK [13:32:45]wFMCommunicate request_size=255 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 24 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B7 01 00 35 04 06 00 18 [13:32:45]Write to MH i2c: E2 02 01 B0 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 24 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B7 01 00 35 04 06 00 18 00 00 31 [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:46]Read from MH i2c: E2 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 03 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 03 00 B0 85 00 90 00 A9 [13:32:46]RAPDU: 90 00 [13:32:46]wFMCommunicate OK [13:32:46]wFMCommunicate request_size=10 [13:32:46]MH_SAM_APDU [13:32:46]CAPDU: 80 0D 02 02 05 22 BE 5F 7B 87 [13:32:46]Write to MH i2c: E2 0D 00 B1 85 80 0D 02 02 05 00 22 BE 5F 7B 87 00 00 FB [13:32:46]Write i2c OK [13:32:46]MH_I2C_Read... [13:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:46]Read from MH i2c: E2 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 03 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 03 00 B1 85 00 90 00 AA [13:32:46]RAPDU: 90 00 [13:32:46]wFMCommunicate OK [13:32:46]wFMCommunicate request_size=4 [13:32:46]MH_SAM_APDU [13:32:46]CAPDU: 80 0D 03 02 [13:32:46]Write to MH i2c: E2 08 00 B2 85 80 0D 03 02 00 00 00 00 B2 [13:32:46]Write i2c OK [13:32:46]MH_I2C_Read... [13:32:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:46]Read from MH i2c: E2 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 0B 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 0B 00 B2 85 00 68 73 78 44 33 B4 74 09 90 00 AE [13:32:46]RAPDU: 68 73 78 44 33 B4 74 09 90 00 [13:32:46]wFMCommunicate OK [13:32:46]SAM_PROTO_SignData done [13:32:46]FM_MakeSignedData done [13:32:46]CreateOFDProtocolMessage [13:32:46]wFMCommunicate request_size=4 [13:32:46]MH_SAM_APDU [13:32:46]CAPDU: 80 11 00 00 [13:32:46]Write to MH i2c: E2 08 00 B3 85 80 11 00 00 00 00 00 00 B2 [13:32:46]Write i2c OK [13:32:46]MH_I2C_Read... [13:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:46]Read from MH i2c: E2 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 17 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 17 00 B3 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [13:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:32:46]wFMCommunicate OK [13:32:46]CreateOFDProtocolMessage done [13:32:46]OFDSenderStorePacket 112511 [13:32:46]StoreOFDPacket docnum=112511 [13:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 31 07 01 6E 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 24 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B7 01 00 35 04 06 00 18 22 BE 5F 7B 87 68 73 78 44 33 B4 74 09 [13:32:46]CheckFolder [13:32:46]dirname=/storage/ofd_packets [13:32:46]CheckFolder done [13:32:46]ProducePacketName [13:32:46]name=ofd_packets/00112511 [13:32:46]NVStorageSaveData ofd_packets/00112511 [13:32:46]File name is /storage/ofd_packets/00112511 [13:32:46]Write 301 bytes [13:32:46]NVStorageSaveData done [13:32:46]OFDSenderStorePacket done [13:32:46]KKMCreateOFDPacket done [13:32:46]NVStorageSaveData kkm_last_timestamp [13:32:46]File name is /storage/kkm_last_timestamp [13:32:46]Write 4 bytes [13:32:46]NVStorageSaveData done [13:32:46]ExternCall_PrintAddStr [13:32:46]wPrintStart [13:32:46]Write to MH i2c: 01 00 00 B4 85 39 [13:32:46]Write i2c OK [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: 01 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: 01 07 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: 01 07 00 B4 85 00 00 00 00 00 FF 0F 4E [13:32:46]RasterBufferAndPrint [13:32:46]line Счет N : (1)321191 [13:32:46]line ИНН: 02508201610067 [13:32:46]line Контрольно-Кассовый Чек [13:32:46]line ПРОДАЖА [13:32:46]line ТРК (МРК, ГНК) : 11 [13:32:46]line Товар: 2710124130 [13:32:46]line Аи-92-К-5 [13:32:46]line 15.070 * 66.40 [13:32:46]line = 1000.65 [13:32:46]line НДС 12% НСП 1% [13:32:46]line > о реализуемом товаре [13:32:46]line ОКРУГЛЕНИЕ: -0.65 [13:32:46]line ИТОГО: 1000.00 [13:32:46]line Внесено: 1000.00 [13:32:46]line СДАЧА: 0.00 [13:32:46]line НСП 1% : 8.85 [13:32:46]line НДС 12% : 106.26 [13:32:46]line Наличными: 1000.00 [13:32:46]line Безнал.: 0.00 [13:32:46]line Место: АЗС № 65 "Партнер Нефть" [13:32:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:32:46]line СНО: Общий режим [13:32:46]line Чек 112 23.06.2024 13:33 [13:32:46]line Смена: 392 ФФД: 1.0 [13:32:46]line ЗНМ: 0300000198 [13:32:46]line РНМ: 0000000000092771 [13:32:46]line Версия ККМ: 001 [13:32:46]line ФМ: 0000000000875083 [13:32:46]line ФД: 112511 [13:32:46]line ФПД: 26537501883271 [13:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133342&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112511&fm=26537501883271&tin=02508201610067®Number=0000000000092771&sum=100000 [13:32:46]OFD Sender: Processing packet 112511 [packets to send 38, broken 37] [13:32:46]ProducePacketName [13:32:46]name=ofd_packets/00112511 [13:32:46]OFD Sender: To server: pG, [13:32:46]CommunicateWithHost lk.salyk.kg:30040 [13:32:46]ConnectInit lk.salyk.kg [13:32:46]written 0, free lines is 4095 [13:32:46]Connected sock=10 [13:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 31 07 01 6E 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 24 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B7 01 00 35 04 06 00 18 22 BE 5F 7B 87 68 73 78 44 33 B4 74 09 [13:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 90 AD 47 00 3A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B7 01 00 F4 03 04 00 22 BB 77 66 B6 04 01 00 00 80 1C C9 FD AE D5 68 9D [13:32:47]CommunicateWithHost err = 0 [13:32:47]CheckOFDResponse [13:32:47]1017 (14) - 77093643461234 [13:32:47]1041 (16) - 0000000000875083 [13:32:47]1040 (4) - 112511 [13:32:47]1012 (4) - 23.06.2024 06:05 [13:32:47]1206 (1) - 0 [13:32:47]OFD Sender: Remove packet 112511 [13:32:47]ProducePacketName [13:32:47]name=ofd_packets/00112511 [13:32:47]NVStorageDeleteData [13:32:47]Write to MH i2c: 01 00 00 DF 85 64 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: 01 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: 01 07 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: 01 07 00 DF 85 00 00 00 00 00 EA 0C 61 [13:32:47]RasterBufferAndPrint [13:32:47]line [13:32:47]line [13:32:47]line [13:32:47]line [13:32:47]line [13:32:47]written 0, free lines is 3315 [13:32:47]MH_Cut [13:32:47]Write to MH i2c: D1 01 00 E6 85 01 3D [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: D1 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: D1 01 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: D1 01 00 E6 85 00 3C [13:32:47]Write to MH i2c: 01 00 00 E7 85 6C [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]OFD Sender: No OFD packet to send [13:32:47]*** Cut start [13:32:47]*** Partial cut [13:32:47]*** CUTSNS_PIN = 1 [13:32:47]*** CUTSNS_PIN = 0 [13:32:48]*** Brake cut motor [13:32:48]Read from MH i2c: 01 [13:32:48]MH_I2C_Read... [13:32:48]*** Stop cut motor [13:32:48]*** Cut end [13:32:48]Read from MH i2c: 01 07 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 07 00 E7 85 00 00 00 00 00 FF 0F 81 [13:32:48]process_action close_receipt done [13:32:48]requested_data is exist [13:32:48]produce_requested_data [13:32:48]requested_item fm.sn is exist - process it [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 11 00 00 [13:32:48]Write to MH i2c: E2 08 00 E8 85 80 11 00 00 00 00 00 00 E7 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 17 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 17 00 E8 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [13:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:32:48]wFMCommunicate OK [13:32:48]requested_item fd.num is exist - process it [13:32:48]SAM_PROTO_GetFieldsCounters [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 13 00 00 [13:32:48]Write to MH i2c: E2 08 00 E9 85 80 13 00 00 00 00 00 00 EA [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 62 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 62 00 E9 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B7 01 00 0E 04 04 00 88 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 1B [13:32:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B7 01 00 0E 04 04 00 88 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 [13:32:48]wFMCommunicate OK [13:32:48]SAM_PROTO_GetFieldsCounters done [13:32:48]requested_item shift.num is exist - process it [13:32:48]requested_item shift.opened is exist - process it [13:32:48]req_shift_opened [13:32:48]FM_GetShiftState [13:32:48]SAM_PROTO_GetShiftState [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 13 01 00 [13:32:48]Write to MH i2c: E2 08 00 EA 85 80 13 01 00 00 00 00 00 EC [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 0E 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 0E 00 EA 85 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0A [13:32:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:32:48]wFMCommunicate OK [13:32:48]SAM_PROTO_GetShiftState done [13:32:48]FM_GetShiftState done [13:32:48]req_shift_opened done [13:32:48]requested_item shift.open_date is exist - process it [13:32:48]req_shift_open_date [13:32:48]req_shift_open_date done [13:32:48]produce_requested_data done [13:32:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112511,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:32:48]process_action_free close_receipt [13:32:48]json_value_free [13:32:48]json_value_free done [13:32:48]process_json_proto returns [13:32:48]Send response to host [13:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112511,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:32:48]free response buf [13:32:48]execute_script done [13:32:48]execute_script returns [13:32:48]free content buf [13:32:48]Sock 7.Close socket [13:32:48]Sock 7.Thread stoped [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:48]accept exits with 9 [13:36:48]New connection [13:36:48]New thread 3066957156 created [13:36:48]Thread 3066813796 joined [13:36:48]Waiting for new connection... [13:36:48] Sock 9.Parse request [13:36:48]Sock 9.Check first char [13:36:48]Sock 9.First char is OK [13:36:48]request: POST /json_proto HTTP/1.0 [13:36:48]Method: POST [13:36:48]URL: /json_proto [13:36:48]Method is POST - this is cgi request [13:36:48]url: /json_proto [13:36:48]query_string will be loaded in cgi processing [13:36:48]execute_cgi json_proto POST (null) [13:36:48]execute_cgi path=json_proto method=POST [13:36:48]POST find Content-Length [13:36:48]Host: 172.17.59.68:8080 [13:36:48]Content-Length: 1213 [13:36:48]Content-Type: application/json [13:36:48] [13:36:48]POST finish read [13:36:48]Found Content-Length = 1213 [13:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)321192\u000A23.06.2024 12:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24102\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:48]execute_script... [13:36:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)321192\u000A23.06.2024 12:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24102\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:48]POST & json_proto [13:36:48]process_json_proto [13:36:48]json parsed OK: [13:36:48]protocol is kg_v1.0 [13:36:48]action value=print_text [13:36:48]process_action print_text [13:36:48]cmd_print_text [13:36:48]ExternCall_PrintAddStr [13:36:48]wPrintStart [13:36:48]Write to MH i2c: 01 00 00 EB 85 70 [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 07 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 07 00 EB 85 00 00 00 00 00 FF 0F 85 [13:36:48]RasterBufferAndPrint [13:36:48]line *****ТОВАРНЫЙ ЧЕК***** [13:36:48]line АЗС 65 [13:36:48]line Партнер нефть [13:36:48]line 02508201610067 [13:36:48]line Кассир : Бейшенбеков А. [13:36:48]line Счет N : (1)321192 [13:36:48]line 23.06.2024 12:03 [13:36:48]line ПРОДАЖА [13:36:48]line ТРК (МРК, ГНК): 11 [13:36:48]line Вид ГСМ : 2710124130 [13:36:48]line Аи-92-К-5 [13:36:48]line 30.000 x 66.40 [13:36:48]line ИТОГ: 1992.00 [13:36:48]line Тип оплаты: Талоны: Топливная Карта [13:36:48]line 24102 [13:36:48]line ______________________ [13:36:48]line (подпись) [13:36:48]written 0, free lines is 4095 [13:36:48]Write to MH i2c: 01 00 00 00 86 86 [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 07 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 07 00 00 86 00 00 00 00 00 F6 0D 90 [13:36:48]RasterBufferAndPrint [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]written 0, free lines is 3576 [13:36:48]MH_Cut [13:36:48]Write to MH i2c: D1 01 00 07 86 01 5F [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: D1 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: D1 01 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: D1 01 00 07 86 00 5E [13:36:48]Write to MH i2c: 01 00 00 08 86 8E [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:49]*** Cut start [13:36:49]*** Partial cut [13:36:49]*** CUTSNS_PIN = 1 [13:36:49]*** CUTSNS_PIN = 0 [13:36:49]*** Brake cut motor [13:36:49]Read from MH i2c: 01 [13:36:49]MH_I2C_Read... [13:36:49]*** Stop cut motor [13:36:49]*** Cut end [13:36:49]Read from MH i2c: 01 07 00 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: 01 07 00 08 86 00 00 00 00 00 FF 0F A3 [13:36:49]process_action print_text done [13:36:49]requested_data is exist [13:36:49]produce_requested_data [13:36:49]requested_item fm.sn is exist - process it [13:36:49]wFMCommunicate request_size=4 [13:36:49]MH_SAM_APDU [13:36:49]CAPDU: 80 11 00 00 [13:36:49]Write to MH i2c: E2 08 00 09 86 80 11 00 00 00 00 00 00 09 [13:36:49]Write i2c OK [13:36:49]MH_I2C_Read... [13:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:49]Read from MH i2c: E2 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 17 00 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 17 00 09 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [13:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:36:49]wFMCommunicate OK [13:36:49]requested_item fd.num is exist - process it [13:36:49]SAM_PROTO_GetFieldsCounters [13:36:49]wFMCommunicate request_size=4 [13:36:49]MH_SAM_APDU [13:36:49]CAPDU: 80 13 00 00 [13:36:49]Write to MH i2c: E2 08 00 0A 86 80 13 00 00 00 00 00 00 0C [13:36:49]Write i2c OK [13:36:49]MH_I2C_Read... [13:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:49]Read from MH i2c: E2 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 62 00 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 62 00 0A 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B7 01 00 0E 04 04 00 88 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 3D [13:36:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B7 01 00 0E 04 04 00 88 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 [13:36:49]wFMCommunicate OK [13:36:49]SAM_PROTO_GetFieldsCounters done [13:36:49]requested_item shift.num is exist - process it [13:36:49]requested_item shift.opened is exist - process it [13:36:49]req_shift_opened [13:36:49]FM_GetShiftState [13:36:49]SAM_PROTO_GetShiftState [13:36:49]wFMCommunicate request_size=4 [13:36:49]MH_SAM_APDU [13:36:49]CAPDU: 80 13 01 00 [13:36:49]Write to MH i2c: E2 08 00 0B 86 80 13 01 00 00 00 00 00 0E [13:36:49]Write i2c OK [13:36:49]MH_I2C_Read... [13:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:50]Read from MH i2c: E2 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: E2 0E 00 [13:36:50]MH_I2C_Read... [13:36:50]Read from MH i2c: E2 0E 00 0B 86 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2C [13:36:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:36:50]wFMCommunicate OK [13:36:50]SAM_PROTO_GetShiftState done [13:36:50]FM_GetShiftState done [13:36:50]req_shift_opened done [13:36:50]requested_item shift.open_date is exist - process it [13:36:50]req_shift_open_date [13:36:50]req_shift_open_date done [13:36:50]produce_requested_data done [13:36:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112511,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:36:50]process_action_free print_text [13:36:50]json_value_free [13:36:50]json_value_free done [13:36:50]process_json_proto returns [13:36:50]Send response to host [13:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112511,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:36:50]free response buf [13:36:50]execute_script done [13:36:50]execute_script returns [13:36:50]free content buf [13:36:50]Sock 9.Close socket [13:36:50]Sock 9.Thread stoped [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:51]accept exits with 7 [13:37:51]New connection [13:37:51]New thread 3066813796 created [13:37:51]Thread 3066957156 joined [13:37:51]Waiting for new connection... [13:37:51] Sock 7.Parse request [13:37:51]Sock 7.Check first char [13:37:51]Sock 7.First char is OK [13:37:51]request: POST /json_proto HTTP/1.0 [13:37:51]Method: POST [13:37:51]URL: /json_proto [13:37:51]Method is POST - this is cgi request [13:37:51]url: /json_proto [13:37:51]query_string will be loaded in cgi processing [13:37:51]execute_cgi json_proto POST (null) [13:37:51]execute_cgi path=json_proto method=POST [13:37:51]POST find Content-Length [13:37:51]Host: 172.17.59.68:8080 [13:37:51]Content-Length: 679 [13:37:51]Content-Type: application/json [13:37:51] [13:37:51]POST finish read [13:37:51]Found Content-Length = 679 [13:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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:37:51]execute_script... [13:37:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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:37:51]POST & json_proto [13:37:51]process_json_proto [13:37:51]json parsed OK: [13:37:51]protocol is kg_v1.0 [13:37:51]action value=close_receipt [13:37:51]process_action close_receipt [13:37:51]cmd_close_receipt [13:37:51]MH_GetDate [13:37:51]Write to MH i2c: F0 00 00 0C 86 81 [13:37:51]Write i2c OK [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: F0 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: F0 09 00 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: F0 09 00 0C 86 00 69 25 78 66 BC EC 60 65 63 [13:37:51]GetLastDocTimeStamp 1719149622 [13:37:51]current date 1719149929 [13:37:51]FM_GetShiftState [13:37:51]SAM_PROTO_GetShiftState [13:37:51]wFMCommunicate request_size=4 [13:37:51]MH_SAM_APDU [13:37:51]CAPDU: 80 13 01 00 [13:37:51]Write to MH i2c: E2 08 00 0D 86 80 13 01 00 00 00 00 00 10 [13:37:51]Write i2c OK [13:37:51]MH_I2C_Read... [13:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:51]Read from MH i2c: E2 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 0E 00 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 0E 00 0D 86 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2E [13:37:51]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:37:51]wFMCommunicate OK [13:37:51]SAM_PROTO_GetShiftState done [13:37:51]FM_GetShiftState done [13:37:51]opened in 1719106490 [13:37:51]opened+sec_in_day 1719192890 [13:37:51]quantity*price = 150028 [13:37:51]sum+1 = 150029 [13:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 113 23.06.2024 13:38 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112512 ФПД: 26511731739655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133849&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112512&fm=26511731739655&tin=02508201610067®Number=0000000000092771&sum=150000 [13:37:52]StoreToDocumentArchive [13:37:52]shift 392 fd 112512 [13:37:52]save to /storage/0392/doc_00112512 [13:37:52]save last doc name /storage/0392/doc_00112512 to /storage/kkm_last_doc_name [13:37:52]save OK [13:37:52]Clear old archive folders... [13:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:37:52]tlvbuf is B6DA9230 [13:37:52]SAM_PROTO_ClearQueue [13:37:52]wFMCommunicate request_size=4 [13:37:52]MH_SAM_APDU [13:37:52]CAPDU: 80 09 00 00 [13:37:52]Write to MH i2c: E2 08 00 1A 86 80 09 00 00 00 00 00 00 12 [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:52]Read from MH i2c: E2 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 1A 86 00 90 00 14 [13:37:52]RAPDU: 90 00 [13:37:52]wFMCommunicate OK [13:37:52]SAM_PROTO_ClearQueue done [13:37:52]KKMCreateOFDPacket [13:37:52]OFDProtocolAddRootSTLVToBuf [13:37:52]FM_MakeSignedData [13:37:52]FM_MakeSignedData [13:37:52]SAM_PROTO_SignData [13:37:52]wFMCommunicate request_size=4 [13:37:52]MH_SAM_APDU [13:37:52]CAPDU: 80 0D 01 02 [13:37:52]Write to MH i2c: E2 08 00 1B 86 80 0D 01 02 00 00 00 00 1A [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:52]Read from MH i2c: E2 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 1B 86 00 90 00 15 [13:37:52]RAPDU: 90 00 [13:37:52]wFMCommunicate OK [13:37:52]wFMCommunicate request_size=255 [13:37:52]MH_SAM_APDU [13:37: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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 71 00 00 00 F4 03 04 00 69 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B7 01 00 35 04 06 00 18 1C BE 5A [13:37:52]Write to MH i2c: E2 02 01 1C 86 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 71 00 00 00 F4 03 04 00 69 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B7 01 00 35 04 06 00 18 1C BE 5A 00 00 28 [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]OFD Sender: No OFD packet to send [13:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:53]Read from MH i2c: E2 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 03 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 03 00 1C 86 00 90 00 16 [13:37:53]RAPDU: 90 00 [13:37:53]wFMCommunicate OK [13:37:53]wFMCommunicate request_size=7 [13:37:53]MH_SAM_APDU [13:37:53]CAPDU: 80 0D 02 02 02 4C 07 [13:37:53]Write to MH i2c: E2 0A 00 1D 86 80 0D 02 02 02 00 4C 07 00 00 74 [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:53]Read from MH i2c: E2 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 03 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 03 00 1D 86 00 90 00 17 [13:37:53]RAPDU: 90 00 [13:37:53]wFMCommunicate OK [13:37:53]wFMCommunicate request_size=4 [13:37:53]MH_SAM_APDU [13:37:53]CAPDU: 80 0D 03 02 [13:37:53]Write to MH i2c: E2 08 00 1E 86 80 0D 03 02 00 00 00 00 1F [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:53]Read from MH i2c: E2 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 0B 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 0B 00 1E 86 00 A5 74 CF 68 77 11 D8 D4 90 00 A4 [13:37:53]RAPDU: A5 74 CF 68 77 11 D8 D4 90 00 [13:37:53]wFMCommunicate OK [13:37:53]SAM_PROTO_SignData done [13:37:53]FM_MakeSignedData done [13:37:53]CreateOFDProtocolMessage [13:37:53]wFMCommunicate request_size=4 [13:37:53]MH_SAM_APDU [13:37:53]CAPDU: 80 11 00 00 [13:37:53]Write to MH i2c: E2 08 00 1F 86 80 11 00 00 00 00 00 00 1F [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:53]Read from MH i2c: E2 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 17 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 17 00 1F 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [13:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:37:53]wFMCommunicate OK [13:37:53]CreateOFDProtocolMessage done [13:37:53]OFDSenderStorePacket 112512 [13:37:53]StoreOFDPacket docnum=112512 [13:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 95 DF 04 01 C1 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 71 00 00 00 F4 03 04 00 69 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B7 01 00 35 04 06 00 18 1C BE 5A 4C 07 A5 74 CF 68 77 11 D8 D4 [13:37:53]CheckFolder [13:37:53]dirname=/storage/ofd_packets [13:37:53]CheckFolder done [13:37:53]ProducePacketName [13:37:53]name=ofd_packets/00112512 [13:37:53]NVStorageSaveData ofd_packets/00112512 [13:37:53]File name is /storage/ofd_packets/00112512 [13:37:53]Write 298 bytes [13:37:53]NVStorageSaveData done [13:37:53]OFDSenderStorePacket done [13:37:53]KKMCreateOFDPacket done [13:37:53]NVStorageSaveData kkm_last_timestamp [13:37:53]File name is /storage/kkm_last_timestamp [13:37:53]Write 4 bytes [13:37:53]NVStorageSaveData done [13:37:53]ExternCall_PrintAddStr [13:37:53]wPrintStart [13:37:53]Write to MH i2c: 01 00 00 20 86 A6 [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 07 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 07 00 20 86 00 00 00 00 00 FF 0F BB [13:37:53]RasterBufferAndPrint [13:37:53]line Счет N : (1)321194 [13:37:53]line ИНН: 02508201610067 [13:37:53]line Контрольно-Кассовый Чек [13:37:53]line ПРОДАЖА [13:37:53]line ТРК (МРК, ГНК) : 22 [13:37:53]line Товар: 2710194210 [13:37:53]line ДТ-К-5 [13:37:53]line 20.580 * 72.90 [13:37:53]line = 1500.28 [13:37:53]line НДС 12% НСП 1% [13:37:53]line > о реализуемом товаре [13:37:53]line ОКРУГЛЕНИЕ: -0.28 [13:37:53]line ИТОГО: 1500.00 [13:37:53]line Внесено: 1500.00 [13:37:53]line СДАЧА: 0.00 [13:37:53]line НСП 1% : 13.28 [13:37:53]line НДС 12% : 159.32 [13:37:53]line Наличными: 1500.00 [13:37:53]line Безнал.: 0.00 [13:37:53]line Место: АЗС № 65 "Партнер Нефть" [13:37:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:37:53]line СНО: Общий режим [13:37:53]line Чек 113 23.06.2024 13:38 [13:37:53]line Смена: 392 ФФД: 1.0 [13:37:53]line ЗНМ: 0300000198 [13:37:53]line РНМ: 0000000000092771 [13:37:53]line Версия ККМ: 001 [13:37:53]line ФМ: 0000000000875083 [13:37:53]line ФД: 112512 [13:37:53]line ФПД: 26511731739655 [13:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133849&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112512&fm=26511731739655&tin=02508201610067®Number=0000000000092771&sum=150000 [13:37:53]OFD Sender: Processing packet 112512 [packets to send 38, broken 37] [13:37:53]ProducePacketName [13:37:53]name=ofd_packets/00112512 [13:37:53]OFD Sender: To server: pG, [13:37:53]CommunicateWithHost lk.salyk.kg:30040 [13:37:53]ConnectInit lk.salyk.kg [13:37:53]written 0, free lines is 4095 [13:37:53]Connected sock=10 [13:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 95 DF 04 01 C1 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 71 00 00 00 F4 03 04 00 69 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B7 01 00 35 04 06 00 18 1C BE 5A 4C 07 A5 74 CF 68 77 11 D8 D4 [13:37:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 92 36 47 00 3C C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B7 01 00 F4 03 04 00 55 BC 77 66 B6 04 01 00 00 4B 42 E7 11 EE C8 FB 6A [13:37:53]CommunicateWithHost err = 0 [13:37:53]CheckOFDResponse [13:37:53]1017 (14) - 77093643461234 [13:37:53]1041 (16) - 0000000000875083 [13:37:53]1040 (4) - 112512 [13:37:53]1012 (4) - 23.06.2024 06:10 [13:37:53]1206 (1) - 0 [13:37:53]OFD Sender: Remove packet 112512 [13:37:53]ProducePacketName [13:37:53]name=ofd_packets/00112512 [13:37:53]NVStorageDeleteData [13:37:53]Write to MH i2c: 01 00 00 4B 86 D1 [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 07 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 07 00 4B 86 00 00 00 00 00 E4 0C C8 [13:37:53]RasterBufferAndPrint [13:37:53]line [13:37:53]line [13:37:53]line [13:37:53]line [13:37:53]line [13:37:53]written 0, free lines is 3309 [13:37:53]MH_Cut [13:37:53]Write to MH i2c: D1 01 00 52 86 01 AA [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: D1 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: D1 01 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: D1 01 00 52 86 00 A9 [13:37:53]Write to MH i2c: 01 00 00 53 86 D9 [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:54]OFD Sender: No OFD packet to send [13:37:54]*** Cut start [13:37:54]*** Partial cut [13:37:54]*** CUTSNS_PIN = 1 [13:37:54]*** CUTSNS_PIN = 0 [13:37:54]*** Brake cut motor [13:37:55]Read from MH i2c: 01 [13:37:55]MH_I2C_Read... [13:37:55]*** Stop cut motor [13:37:55]*** Cut end [13:37:55]Read from MH i2c: 01 07 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: 01 07 00 53 86 00 00 00 00 00 FF 0F EE [13:37:55]process_action close_receipt done [13:37:55]requested_data is exist [13:37:55]produce_requested_data [13:37:55]requested_item fm.sn is exist - process it [13:37:55]wFMCommunicate request_size=4 [13:37:55]MH_SAM_APDU [13:37:55]CAPDU: 80 11 00 00 [13:37:55]Write to MH i2c: E2 08 00 54 86 80 11 00 00 00 00 00 00 54 [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 17 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 17 00 54 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [13:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:37:55]wFMCommunicate OK [13:37:55]requested_item fd.num is exist - process it [13:37:55]SAM_PROTO_GetFieldsCounters [13:37:55]wFMCommunicate request_size=4 [13:37:55]MH_SAM_APDU [13:37:55]CAPDU: 80 13 00 00 [13:37:55]Write to MH i2c: E2 08 00 55 86 80 13 00 00 00 00 00 00 57 [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 62 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 62 00 55 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B7 01 00 0E 04 04 00 88 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 8C [13:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B7 01 00 0E 04 04 00 88 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 [13:37:55]wFMCommunicate OK [13:37:55]SAM_PROTO_GetFieldsCounters done [13:37:55]requested_item shift.num is exist - process it [13:37:55]requested_item shift.opened is exist - process it [13:37:55]req_shift_opened [13:37:55]FM_GetShiftState [13:37:55]SAM_PROTO_GetShiftState [13:37:55]wFMCommunicate request_size=4 [13:37:55]MH_SAM_APDU [13:37:55]CAPDU: 80 13 01 00 [13:37:55]Write to MH i2c: E2 08 00 56 86 80 13 01 00 00 00 00 00 59 [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 0E 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 0E 00 56 86 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 77 [13:37:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:37:55]wFMCommunicate OK [13:37:55]SAM_PROTO_GetShiftState done [13:37:55]FM_GetShiftState done [13:37:55]req_shift_opened done [13:37:55]requested_item shift.open_date is exist - process it [13:37:55]req_shift_open_date [13:37:55]req_shift_open_date done [13:37:55]produce_requested_data done [13:37:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112512,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:37:55]process_action_free close_receipt [13:37:55]json_value_free [13:37:55]json_value_free done [13:37:55]process_json_proto returns [13:37:55]Send response to host [13:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112512,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:37:55]free response buf [13:37:55]execute_script done [13:37:55]execute_script returns [13:37:55]free content buf [13:37:55]Sock 7.Close socket [13:37:55]Sock 7.Thread stoped [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:27]accept exits with 9 [13:38:27]New connection [13:38:27]New thread 3066957156 created [13:38:27]Thread 3066813796 joined [13:38:27]Waiting for new connection... [13:38:27] Sock 9.Parse request [13:38:27]Sock 9.Check first char [13:38:27]Sock 9.First char is OK [13:38:27]request: POST /json_proto HTTP/1.0 [13:38:27]Method: POST [13:38:27]URL: /json_proto [13:38:27]Method is POST - this is cgi request [13:38:27]url: /json_proto [13:38:27]query_string will be loaded in cgi processing [13:38:27]execute_cgi json_proto POST (null) [13:38:27]execute_cgi path=json_proto method=POST [13:38:27]POST find Content-Length [13:38:27]Host: 172.17.59.68:8080 [13:38:27]Content-Length: 678 [13:38:27]Content-Type: application/json [13:38:27] [13:38:27]POST finish read [13:38:27]Found Content-Length = 678 [13:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.150, "sum" : 673.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 673.00, "payments": [ { "type": 0, "sum" : 673.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:27]execute_script... [13:38: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)321195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.150, "sum" : 673.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 673.00, "payments": [ { "type": 0, "sum" : 673.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:27]POST & json_proto [13:38:27]process_json_proto [13:38:27]json parsed OK: [13:38:27]protocol is kg_v1.0 [13:38:27]action value=close_receipt [13:38:27]process_action close_receipt [13:38:27]cmd_close_receipt [13:38:27]MH_GetDate [13:38:27]Write to MH i2c: F0 00 00 57 86 CC [13:38:27]Write i2c OK [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: F0 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: F0 09 00 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: F0 09 00 57 86 00 8D 25 78 66 BC EC 60 65 D2 [13:38:27]GetLastDocTimeStamp 1719149929 [13:38:27]current date 1719149965 [13:38:27]FM_GetShiftState [13:38:27]SAM_PROTO_GetShiftState [13:38:27]wFMCommunicate request_size=4 [13:38:27]MH_SAM_APDU [13:38:27]CAPDU: 80 13 01 00 [13:38:27]Write to MH i2c: E2 08 00 58 86 80 13 01 00 00 00 00 00 5B [13:38:27]Write i2c OK [13:38:27]MH_I2C_Read... [13:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:27]Read from MH i2c: E2 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: E2 0E 00 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: E2 0E 00 58 86 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 79 [13:38:27]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:38:27]wFMCommunicate OK [13:38:27]SAM_PROTO_GetShiftState done [13:38:27]FM_GetShiftState done [13:38:27]opened in 1719106490 [13:38:27]opened+sec_in_day 1719192890 [13:38:27]quantity*price = 67396 [13:38:27]sum+1 = 67397 [13:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.96 ИТОГО: 673.00 Внесено: 700.00 СДАЧА: 27.00 НСП 1% : 5.96 НДС 12% : 71.57 Наличными: 673.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 114 23.06.2024 13:39 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112513 ФПД: 127547014685068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133925&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112513&fm=127547014685068&tin=02508201610067®Number=0000000000092771&sum=67300 [13:38:28]StoreToDocumentArchive [13:38:28]shift 392 fd 112513 [13:38:28]save to /storage/0392/doc_00112513 [13:38:28]save last doc name /storage/0392/doc_00112513 to /storage/kkm_last_doc_name [13:38:28]save OK [13:38:28]Clear old archive folders... [13:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:28]tlvbuf is 011C72C0 [13:38:28]SAM_PROTO_ClearQueue [13:38:28]wFMCommunicate request_size=4 [13:38:28]MH_SAM_APDU [13:38:28]CAPDU: 80 09 00 00 [13:38:28]Write to MH i2c: E2 08 00 65 86 80 09 00 00 00 00 00 00 5D [13:38:28]Write i2c OK [13:38:28]MH_I2C_Read... [13:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:28]Read from MH i2c: E2 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 03 00 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 03 00 65 86 00 90 00 5F [13:38:28]RAPDU: 90 00 [13:38:28]wFMCommunicate OK [13:38:28]SAM_PROTO_ClearQueue done [13:38:28]KKMCreateOFDPacket [13:38:28]OFDProtocolAddRootSTLVToBuf [13:38:28]FM_MakeSignedData [13:38:28]FM_MakeSignedData [13:38:28]SAM_PROTO_SignData [13:38:28]wFMCommunicate request_size=4 [13:38:28]MH_SAM_APDU [13:38:28]CAPDU: 80 0D 01 02 [13:38:28]Write to MH i2c: E2 08 00 66 86 80 0D 01 02 00 00 00 00 65 [13:38:28]Write i2c OK [13:38:28]MH_I2C_Read... [13:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:29]Read from MH i2c: E2 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 03 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 03 00 66 86 00 90 00 60 [13:38:29]RAPDU: 90 00 [13:38:29]wFMCommunicate OK [13:38:29]wFMCommunicate request_size=255 [13:38:29]MH_SAM_APDU [13:38:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 44 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 E4 06 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 00 00 00 F4 03 04 00 8D 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B7 01 00 35 04 06 00 74 [13:38:29]Write to MH i2c: E2 02 01 67 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 44 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 E4 06 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 00 00 00 F4 03 04 00 8D 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B7 01 00 35 04 06 00 74 00 00 05 [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:29]Read from MH i2c: E2 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 03 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 03 00 67 86 00 90 00 61 [13:38:29]RAPDU: 90 00 [13:38:29]wFMCommunicate OK [13:38:29]wFMCommunicate request_size=10 [13:38:29]MH_SAM_APDU [13:38:29]CAPDU: 80 0D 02 02 05 00 DA 80 A1 8C [13:38:29]Write to MH i2c: E2 0D 00 68 86 80 0D 02 02 05 00 00 DA 80 A1 8C 00 00 F9 [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]OFD Sender: No OFD packet to send [13:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:29]Read from MH i2c: E2 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 03 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 03 00 68 86 00 90 00 62 [13:38:29]RAPDU: 90 00 [13:38:29]wFMCommunicate OK [13:38:29]wFMCommunicate request_size=4 [13:38:29]MH_SAM_APDU [13:38:29]CAPDU: 80 0D 03 02 [13:38:29]Write to MH i2c: E2 08 00 69 86 80 0D 03 02 00 00 00 00 6A [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:29]Read from MH i2c: E2 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 0B 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 0B 00 69 86 00 79 1B 95 7A B8 51 44 AF 90 00 0A [13:38:29]RAPDU: 79 1B 95 7A B8 51 44 AF 90 00 [13:38:29]wFMCommunicate OK [13:38:29]SAM_PROTO_SignData done [13:38:29]FM_MakeSignedData done [13:38:29]CreateOFDProtocolMessage [13:38:29]wFMCommunicate request_size=4 [13:38:29]MH_SAM_APDU [13:38:29]CAPDU: 80 11 00 00 [13:38:29]Write to MH i2c: E2 08 00 6A 86 80 11 00 00 00 00 00 00 6A [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:29]Read from MH i2c: E2 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 17 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 17 00 6A 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [13:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:38:29]wFMCommunicate OK [13:38:29]CreateOFDProtocolMessage done [13:38:29]OFDSenderStorePacket 112513 [13:38:29]StoreOFDPacket docnum=112513 [13:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5F F8 07 01 CF 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 35 FF 03 08 00 03 A6 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 44 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 E4 06 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 00 00 00 F4 03 04 00 8D 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B7 01 00 35 04 06 00 74 00 DA 80 A1 8C 79 1B 95 7A B8 51 44 AF [13:38:29]CheckFolder [13:38:29]dirname=/storage/ofd_packets [13:38:29]CheckFolder done [13:38:29]ProducePacketName [13:38:29]name=ofd_packets/00112513 [13:38:29]NVStorageSaveData ofd_packets/00112513 [13:38:29]File name is /storage/ofd_packets/00112513 [13:38:29]Write 301 bytes [13:38:29]NVStorageSaveData done [13:38:29]OFDSenderStorePacket done [13:38:29]KKMCreateOFDPacket done [13:38:29]NVStorageSaveData kkm_last_timestamp [13:38:29]File name is /storage/kkm_last_timestamp [13:38:29]Write 4 bytes [13:38:29]NVStorageSaveData done [13:38:29]ExternCall_PrintAddStr [13:38:29]wPrintStart [13:38:29]Write to MH i2c: 01 00 00 6B 86 F1 [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 07 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 07 00 6B 86 00 00 00 00 00 FF 0F 06 [13:38:29]RasterBufferAndPrint [13:38:29]line Счет N : (1)321195 [13:38:29]line ИНН: 02508201610067 [13:38:29]line Контрольно-Кассовый Чек [13:38:29]line ПРОДАЖА [13:38:29]line ТРК (МРК, ГНК) : 11 [13:38:29]line Товар: 2710124130 [13:38:29]line Аи-92-К-5 [13:38:29]line 10.150 * 66.40 [13:38:29]line = 673.96 [13:38:29]line НДС 12% НСП 1% [13:38:29]line > о реализуемом товаре [13:38:29]line ОКРУГЛЕНИЕ: -0.96 [13:38:29]line ИТОГО: 673.00 [13:38:29]line Внесено: 700.00 [13:38:29]line СДАЧА: 27.00 [13:38:29]line НСП 1% : 5.96 [13:38:29]line НДС 12% : 71.57 [13:38:29]line Наличными: 673.00 [13:38:29]line Безнал.: 0.00 [13:38:29]line Место: АЗС № 65 "Партнер Нефть" [13:38:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:38:29]line СНО: Общий режим [13:38:29]line Чек 114 23.06.2024 13:39 [13:38:29]line Смена: 392 ФФД: 1.0 [13:38:29]line ЗНМ: 0300000198 [13:38:29]line РНМ: 0000000000092771 [13:38:29]line Версия ККМ: 001 [13:38:29]line ФМ: 0000000000875083 [13:38:29]line ФД: 112513 [13:38:29]line ФПД: 127547014685068 [13:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133925&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112513&fm=127547014685068&tin=02508201610067®Number=0000000000092771&sum=67300 [13:38:29]written 0, free lines is 4095 [13:38:29]OFD Sender: Processing packet 112513 [packets to send 38, broken 37] [13:38:29]ProducePacketName [13:38:29]name=ofd_packets/00112513 [13:38:29]OFD Sender: To server: pG, [13:38:29]CommunicateWithHost lk.salyk.kg:30040 [13:38:29]ConnectInit lk.salyk.kg [13:38:29]Connected sock=10 [13:38:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5F F8 07 01 CF 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 35 FF 03 08 00 03 A6 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 44 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 E4 06 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 00 00 00 F4 03 04 00 8D 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B7 01 00 35 04 06 00 74 00 DA 80 A1 8C 79 1B 95 7A B8 51 44 AF [13:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 91 2D 47 00 5A FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B7 01 00 F4 03 04 00 79 BC 77 66 B6 04 01 00 00 18 1B C5 B0 2D B5 A5 46 [13:38:29]CommunicateWithHost err = 0 [13:38:29]CheckOFDResponse [13:38:29]1017 (14) - 77093643461234 [13:38:29]1041 (16) - 0000000000875083 [13:38:29]1040 (4) - 112513 [13:38:29]1012 (4) - 23.06.2024 06:11 [13:38:29]1206 (1) - 0 [13:38:29]OFD Sender: Remove packet 112513 [13:38:29]ProducePacketName [13:38:29]name=ofd_packets/00112513 [13:38:29]NVStorageDeleteData [13:38:29]Write to MH i2c: 01 00 00 96 86 1C [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 07 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 07 00 96 86 00 00 00 00 00 E4 0C 13 [13:38:29]RasterBufferAndPrint [13:38:29]line [13:38:29]line [13:38:29]line [13:38:29]line [13:38:29]line [13:38:29]written 0, free lines is 3307 [13:38:29]MH_Cut [13:38:29]Write to MH i2c: D1 01 00 9D 86 01 F5 [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: D1 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: D1 01 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: D1 01 00 9D 86 00 F4 [13:38:29]Write to MH i2c: 01 00 00 9E 86 24 [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:30]OFD Sender: No OFD packet to send [13:38:30]*** Cut start [13:38:30]*** Partial cut [13:38:30]*** CUTSNS_PIN = 1 [13:38:30]*** CUTSNS_PIN = 0 [13:38:30]*** Brake cut motor [13:38:31]Read from MH i2c: 01 [13:38:31]MH_I2C_Read... [13:38:31]*** Stop cut motor [13:38:31]*** Cut end [13:38:31]Read from MH i2c: 01 07 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 07 00 9E 86 00 00 00 00 00 FF 0F 39 [13:38:31]process_action close_receipt done [13:38:31]requested_data is exist [13:38:31]produce_requested_data [13:38:31]requested_item fm.sn is exist - process it [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 11 00 00 [13:38:31]Write to MH i2c: E2 08 00 9F 86 80 11 00 00 00 00 00 00 9F [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 17 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 17 00 9F 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F1 [13:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:38:31]wFMCommunicate OK [13:38:31]requested_item fd.num is exist - process it [13:38:31]SAM_PROTO_GetFieldsCounters [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 13 00 00 [13:38:31]Write to MH i2c: E2 08 00 A0 86 80 13 00 00 00 00 00 00 A2 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 62 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 62 00 A0 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 81 B7 01 00 0E 04 04 00 88 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 DB [13:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 81 B7 01 00 0E 04 04 00 88 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 [13:38:31]wFMCommunicate OK [13:38:31]SAM_PROTO_GetFieldsCounters done [13:38:31]requested_item shift.num is exist - process it [13:38:31]requested_item shift.opened is exist - process it [13:38:31]req_shift_opened [13:38:31]FM_GetShiftState [13:38:31]SAM_PROTO_GetShiftState [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 13 01 00 [13:38:31]Write to MH i2c: E2 08 00 A1 86 80 13 01 00 00 00 00 00 A4 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 0E 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 0E 00 A1 86 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C2 [13:38:31]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:38:31]wFMCommunicate OK [13:38:31]SAM_PROTO_GetShiftState done [13:38:31]FM_GetShiftState done [13:38:31]req_shift_opened done [13:38:31]requested_item shift.open_date is exist - process it [13:38:31]req_shift_open_date [13:38:31]req_shift_open_date done [13:38:31]produce_requested_data done [13:38:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112513,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:38:31]process_action_free close_receipt [13:38:31]json_value_free [13:38:31]json_value_free done [13:38:31]process_json_proto returns [13:38:31]Send response to host [13:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112513,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:38:31]free response buf [13:38:31]execute_script done [13:38:31]execute_script returns [13:38:31]free content buf [13:38:31]Sock 9.Close socket [13:38:31]Sock 9.Thread stoped [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:44]accept exits with 7 [13:38:44]New connection [13:38:44]New thread 3066813796 created [13:38:44]Thread 3066957156 joined [13:38:44]Waiting for new connection... [13:38:44] Sock 7.Parse request [13:38:44]Sock 7.Check first char [13:38:44]Sock 7.First char is OK [13:38:44]request: POST /json_proto HTTP/1.0 [13:38:44]Method: POST [13:38:44]URL: /json_proto [13:38:44]Method is POST - this is cgi request [13:38:44]url: /json_proto [13:38:44]query_string will be loaded in cgi processing [13:38:44]execute_cgi json_proto POST (null) [13:38:44]execute_cgi path=json_proto method=POST [13:38:44]POST find Content-Length [13:38:44]Host: 172.17.59.68:8080 [13:38:44]Content-Length: 808 [13:38:44]Content-Type: application/json [13:38:44] [13:38:44]POST finish read [13:38:44]Found Content-Length = 808 [13:38:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:44]execute_script... [13:38: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)321193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:44]POST & json_proto [13:38:44]process_json_proto [13:38:44]json parsed OK: [13:38:44]protocol is kg_v1.0 [13:38:44]action value=close_receipt [13:38:44]process_action close_receipt [13:38:44]cmd_close_receipt [13:38:44]MH_GetDate [13:38:44]Write to MH i2c: F0 00 00 A2 86 17 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: F0 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: F0 09 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: F0 09 00 A2 86 00 9E 25 78 66 BC EC 60 65 2E [13:38:44]GetLastDocTimeStamp 1719149965 [13:38:44]current date 1719149982 [13:38:44]FM_GetShiftState [13:38:44]SAM_PROTO_GetShiftState [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 13 01 00 [13:38:44]Write to MH i2c: E2 08 00 A3 86 80 13 01 00 00 00 00 00 A6 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:45]Read from MH i2c: E2 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 0E 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 0E 00 A3 86 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C4 [13:38:45]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:38:45]wFMCommunicate OK [13:38:45]SAM_PROTO_GetShiftState done [13:38:45]FM_GetShiftState done [13:38:45]opened in 1719106490 [13:38:45]opened+sec_in_day 1719192890 [13:38:45]quantity*price = 300034 [13:38:45]sum+1 = 300035 [13:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.34 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 0.00 Безнал.: 3000.34 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 115 23.06.2024 13:39 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112514 ФПД: 258928625269634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133942&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112514&fm=258928625269634&tin=02508201610067®Number=0000000000092771&sum=300034 [13:38:46]StoreToDocumentArchive [13:38:46]shift 392 fd 112514 [13:38:46]save to /storage/0392/doc_00112514 [13:38:46]save last doc name /storage/0392/doc_00112514 to /storage/kkm_last_doc_name [13:38:46]save OK [13:38:46]Clear old archive folders... [13:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:46]tlvbuf is 011C7E20 [13:38:46]SAM_PROTO_ClearQueue [13:38:46]wFMCommunicate request_size=4 [13:38:46]MH_SAM_APDU [13:38:46]CAPDU: 80 09 00 00 [13:38:46]Write to MH i2c: E2 08 00 B0 86 80 09 00 00 00 00 00 00 A8 [13:38:46]Write i2c OK [13:38:46]MH_I2C_Read... [13:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:46]Read from MH i2c: E2 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 03 00 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 03 00 B0 86 00 90 00 AA [13:38:46]RAPDU: 90 00 [13:38:46]wFMCommunicate OK [13:38:46]SAM_PROTO_ClearQueue done [13:38:46]KKMCreateOFDPacket [13:38:46]OFDProtocolAddRootSTLVToBuf [13:38:46]FM_MakeSignedData [13:38:46]FM_MakeSignedData [13:38:46]SAM_PROTO_SignData [13:38:46]wFMCommunicate request_size=4 [13:38:46]MH_SAM_APDU [13:38:46]CAPDU: 80 0D 01 02 [13:38:46]Write to MH i2c: E2 08 00 B1 86 80 0D 01 02 00 00 00 00 B0 [13:38:46]Write i2c OK [13:38:46]MH_I2C_Read... [13:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:46]Read from MH i2c: E2 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 03 00 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 03 00 B1 86 00 90 00 AB [13:38:46]RAPDU: 90 00 [13:38:46]wFMCommunicate OK [13:38:46]wFMCommunicate request_size=255 [13:38:46]MH_SAM_APDU [13:38: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 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 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 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9E 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B7 01 00 35 04 06 00 EB [13:38:46]Write to MH i2c: E2 02 01 B2 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 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 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9E 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B7 01 00 35 04 06 00 EB 00 00 D9 [13:38:46]Write i2c OK [13:38:46]MH_I2C_Read... [13:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:46]Read from MH i2c: E2 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 03 00 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 03 00 B2 86 00 90 00 AC [13:38:46]RAPDU: 90 00 [13:38:46]wFMCommunicate OK [13:38:46]wFMCommunicate request_size=10 [13:38:46]MH_SAM_APDU [13:38:46]CAPDU: 80 0D 02 02 05 7E 84 BB 3B 82 [13:38:46]Write to MH i2c: E2 0D 00 B3 86 80 0D 02 02 05 00 7E 84 BB 3B 82 00 00 37 [13:38:46]Write i2c OK [13:38:46]MH_I2C_Read... [13:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:46]Read from MH i2c: E2 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 03 00 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 03 00 B3 86 00 90 00 AD [13:38:46]RAPDU: 90 00 [13:38:46]wFMCommunicate OK [13:38:46]wFMCommunicate request_size=4 [13:38:46]MH_SAM_APDU [13:38:46]CAPDU: 80 0D 03 02 [13:38:46]Write to MH i2c: E2 08 00 B4 86 80 0D 03 02 00 00 00 00 B5 [13:38:46]Write i2c OK [13:38:46]MH_I2C_Read... [13:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:46]Read from MH i2c: E2 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 0B 00 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 0B 00 B4 86 00 60 0D E6 91 56 06 DB 92 90 00 63 [13:38:46]RAPDU: 60 0D E6 91 56 06 DB 92 90 00 [13:38:46]wFMCommunicate OK [13:38:46]SAM_PROTO_SignData done [13:38:46]FM_MakeSignedData done [13:38:46]CreateOFDProtocolMessage [13:38:46]wFMCommunicate request_size=4 [13:38:46]MH_SAM_APDU [13:38:46]CAPDU: 80 11 00 00 [13:38:46]Write to MH i2c: E2 08 00 B5 86 80 11 00 00 00 00 00 00 B5 [13:38:46]Write i2c OK [13:38:46]MH_I2C_Read... [13:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:46]Read from MH i2c: E2 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 17 00 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: E2 17 00 B5 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 07 [13:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:38:46]wFMCommunicate OK [13:38:46]CreateOFDProtocolMessage done [13:38:46]OFDSenderStorePacket 112514 [13:38:46]StoreOFDPacket docnum=112514 [13:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 45 C6 07 01 C4 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 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 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 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9E 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B7 01 00 35 04 06 00 EB 7E 84 BB 3B 82 60 0D E6 91 56 06 DB 92 [13:38:46]CheckFolder [13:38:46]dirname=/storage/ofd_packets [13:38:46]CheckFolder done [13:38:46]ProducePacketName [13:38:46]name=ofd_packets/00112514 [13:38:46]NVStorageSaveData ofd_packets/00112514 [13:38:46]File name is /storage/ofd_packets/00112514 [13:38:46]Write 301 bytes [13:38:46]NVStorageSaveData done [13:38:46]OFDSenderStorePacket done [13:38:46]KKMCreateOFDPacket done [13:38:46]NVStorageSaveData kkm_last_timestamp [13:38:46]File name is /storage/kkm_last_timestamp [13:38:46]Write 4 bytes [13:38:46]NVStorageSaveData done [13:38:46]ExternCall_PrintAddStr [13:38:46]wPrintStart [13:38:46]Write to MH i2c: 01 00 00 B6 86 3C [13:38:46]Write i2c OK [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: 01 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: 01 07 00 [13:38:46]MH_I2C_Read... [13:38:46]Read from MH i2c: 01 07 00 B6 86 00 00 00 00 00 FF 0F 51 [13:38:46]RasterBufferAndPrint [13:38:46]line Счет N : (1)321193 [13:38:46]line ИНН: 02508201610067 [13:38:46]line Контрольно-Кассовый Чек [13:38:46]line ПРОДАЖА [13:38:46]line ТРК (МРК, ГНК) : 12 [13:38:46]line Товар: 2710124500 [13:38:46]line Аи-95-К-5 [13:38:46]line 40.600 * 73.90 [13:38:46]line = 3000.34 [13:38:46]line НДС 12% НСП 1% [13:38:46]line > о реализуемом товаре [13:38:46]line ИТОГО: 3000.34 [13:38:46]line НСП 1% : 26.55 [13:38:46]line НДС 12% : 318.62 [13:38:46]line Наличными: 0.00 [13:38:46]line Безнал.: 3000.34 [13:38:46]line Место: АЗС № 65 "Партнер Нефть" [13:38:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:38:46]line СНО: Общий режим [13:38:46]line Чек 115 23.06.2024 13:39 [13:38:46]line Смена: 392 ФФД: 1.0 [13:38:46]line ЗНМ: 0300000198 [13:38:46]line РНМ: 0000000000092771 [13:38:46]line Версия ККМ: 001 [13:38:46]line Платежная система: О! деньги [13:38:46]line ФМ: 0000000000875083 [13:38:46]line ФД: 112514 [13:38:46]line ФПД: 258928625269634 [13:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T133942&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112514&fm=258928625269634&tin=02508201610067®Number=0000000000092771&sum=300034 [13:38:47]written 0, free lines is 4095 [13:38:47]OFD Sender: Processing packet 112514 [packets to send 38, broken 37] [13:38:47]ProducePacketName [13:38:47]name=ofd_packets/00112514 [13:38:47]OFD Sender: To server: pG, [13:38:47]CommunicateWithHost lk.salyk.kg:30040 [13:38:47]ConnectInit lk.salyk.kg [13:38:47]Connected sock=10 [13:38:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 45 C6 07 01 C4 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 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 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 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9E 25 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B7 01 00 35 04 06 00 EB 7E 84 BB 3B 82 60 0D E6 91 56 06 DB 92 [13:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 85 47 00 93 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B7 01 00 F4 03 04 00 8A BC 77 66 B6 04 01 00 00 3A 2E 86 34 8F 95 96 A8 [13:38:47]CommunicateWithHost err = 0 [13:38:47]CheckOFDResponse [13:38:47]1017 (14) - 77093643461234 [13:38:47]1041 (16) - 0000000000875083 [13:38:47]1040 (4) - 112514 [13:38:47]1012 (4) - 23.06.2024 06:11 [13:38:47]1206 (1) - 0 [13:38:47]OFD Sender: Remove packet 112514 [13:38:47]ProducePacketName [13:38:47]name=ofd_packets/00112514 [13:38:47]NVStorageDeleteData [13:38:47]Write to MH i2c: 01 00 00 E0 86 66 [13:38:47]Write i2c OK [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: 01 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: 01 07 00 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: 01 07 00 E0 86 00 00 00 00 00 FE 0C 77 [13:38:47]RasterBufferAndPrint [13:38:47]line [13:38:47]line [13:38:47]line [13:38:47]line [13:38:47]line [13:38:47]written 0, free lines is 3332 [13:38:47]MH_Cut [13:38:47]Write to MH i2c: D1 01 00 E7 86 01 3F [13:38:47]Write i2c OK [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: D1 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: D1 01 00 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: D1 01 00 E7 86 00 3E [13:38:47]Write to MH i2c: 01 00 00 E8 86 6E [13:38:47]Write i2c OK [13:38:47]MH_I2C_Read... [13:38:47]OFD Sender: No OFD packet to send [13:38:48]*** Cut start [13:38:48]*** Partial cut [13:38:48]*** CUTSNS_PIN = 1 [13:38:48]*** CUTSNS_PIN = 0 [13:38:48]*** Brake cut motor [13:38:48]Read from MH i2c: 01 [13:38:48]MH_I2C_Read... [13:38:48]*** Stop cut motor [13:38:48]*** Cut end [13:38:48]Read from MH i2c: 01 07 00 [13:38:48]MH_I2C_Read... [13:38:48]Read from MH i2c: 01 07 00 E8 86 00 00 00 00 00 FF 0F 83 [13:38:48]process_action close_receipt done [13:38:48]requested_data is exist [13:38:48]produce_requested_data [13:38:48]requested_item fm.sn is exist - process it [13:38:48]wFMCommunicate request_size=4 [13:38:48]MH_SAM_APDU [13:38:48]CAPDU: 80 11 00 00 [13:38:48]Write to MH i2c: E2 08 00 E9 86 80 11 00 00 00 00 00 00 E9 [13:38:48]Write i2c OK [13:38:48]MH_I2C_Read... [13:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:48]Read from MH i2c: E2 [13:38:48]MH_I2C_Read... [13:38:48]Read from MH i2c: E2 17 00 [13:38:48]MH_I2C_Read... [13:38:48]Read from MH i2c: E2 17 00 E9 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [13:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:38:48]wFMCommunicate OK [13:38:48]requested_item fd.num is exist - process it [13:38:48]SAM_PROTO_GetFieldsCounters [13:38:48]wFMCommunicate request_size=4 [13:38:48]MH_SAM_APDU [13:38:48]CAPDU: 80 13 00 00 [13:38:48]Write to MH i2c: E2 08 00 EA 86 80 13 00 00 00 00 00 00 EC [13:38:48]Write i2c OK [13:38:48]MH_I2C_Read... [13:38:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:48]Read from MH i2c: E2 [13:38:48]MH_I2C_Read... [13:38:48]Read from MH i2c: E2 62 00 [13:38:48]MH_I2C_Read... [13:38:48]Read from MH i2c: E2 62 00 EA 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 82 B7 01 00 0E 04 04 00 88 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 29 [13:38:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 82 B7 01 00 0E 04 04 00 88 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 [13:38:48]wFMCommunicate OK [13:38:48]SAM_PROTO_GetFieldsCounters done [13:38:48]requested_item shift.num is exist - process it [13:38:48]requested_item shift.opened is exist - process it [13:38:48]req_shift_opened [13:38:48]FM_GetShiftState [13:38:48]SAM_PROTO_GetShiftState [13:38:48]wFMCommunicate request_size=4 [13:38:48]MH_SAM_APDU [13:38:48]CAPDU: 80 13 01 00 [13:38:48]Write to MH i2c: E2 08 00 EB 86 80 13 01 00 00 00 00 00 EE [13:38:49]Write i2c OK [13:38:49]MH_I2C_Read... [13:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:49]Read from MH i2c: E2 [13:38:49]MH_I2C_Read... [13:38:49]Read from MH i2c: E2 0E 00 [13:38:49]MH_I2C_Read... [13:38:49]Read from MH i2c: E2 0E 00 EB 86 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0C [13:38:49]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:38:49]wFMCommunicate OK [13:38:49]SAM_PROTO_GetShiftState done [13:38:49]FM_GetShiftState done [13:38:49]req_shift_opened done [13:38:49]requested_item shift.open_date is exist - process it [13:38:49]req_shift_open_date [13:38:49]req_shift_open_date done [13:38:49]produce_requested_data done [13:38:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112514,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:38:49]process_action_free close_receipt [13:38:49]json_value_free [13:38:49]json_value_free done [13:38:49]process_json_proto returns [13:38:49]Send response to host [13:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112514,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:38:49]free response buf [13:38:49]execute_script done [13:38:49]execute_script returns [13:38:49]free content buf [13:38:49]Sock 7.Close socket [13:38:49]Sock 7.Thread stoped [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:29]accept exits with 9 [13:40:29]New connection [13:40:29]New thread 3066957156 created [13:40:29]Thread 3066813796 joined [13:40:29]Waiting for new connection... [13:40:29] Sock 9.Parse request [13:40:29]Sock 9.Check first char [13:40:29]Sock 9.First char is OK [13:40:29]request: POST /json_proto HTTP/1.0 [13:40:29]Method: POST [13:40:29]URL: /json_proto [13:40:29]Method is POST - this is cgi request [13:40:29]url: /json_proto [13:40:29]query_string will be loaded in cgi processing [13:40:29]execute_cgi json_proto POST (null) [13:40:29]execute_cgi path=json_proto method=POST [13:40:29]POST find Content-Length [13:40:29]Host: 172.17.59.68:8080 [13:40:29]Content-Length: 682 [13:40:29]Content-Type: application/json [13:40:29] [13:40:29]POST finish read [13:40:29]Found Content-Length = 682 [13:40:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:29]execute_script... [13:40: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)321196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:29]POST & json_proto [13:40:29]process_json_proto [13:40:29]json parsed OK: [13:40:29]protocol is kg_v1.0 [13:40:29]action value=close_receipt [13:40:29]process_action close_receipt [13:40:29]cmd_close_receipt [13:40:29]MH_GetDate [13:40:29]Write to MH i2c: F0 00 00 EC 86 61 [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: F0 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: F0 09 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: F0 09 00 EC 86 00 07 26 78 66 BC EC 60 65 E2 [13:40:29]GetLastDocTimeStamp 1719149982 [13:40:29]current date 1719150087 [13:40:29]FM_GetShiftState [13:40:29]SAM_PROTO_GetShiftState [13:40:29]wFMCommunicate request_size=4 [13:40:29]MH_SAM_APDU [13:40:29]CAPDU: 80 13 01 00 [13:40:29]Write to MH i2c: E2 08 00 ED 86 80 13 01 00 00 00 00 00 F0 [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:29]Read from MH i2c: E2 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 0E 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 0E 00 ED 86 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0E [13:40:29]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:40:29]wFMCommunicate OK [13:40:29]SAM_PROTO_GetShiftState done [13:40:29]FM_GetShiftState done [13:40:29]opened in 1719106490 [13:40:29]opened+sec_in_day 1719192890 [13:40:29]quantity*price = 100064 [13:40:29]sum+1 = 100066 [13:40:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 116 23.06.2024 13:41 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112515 ФПД: 247372169708047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134127&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112515&fm=247372169708047&tin=02508201610067®Number=0000000000092771&sum=100000 [13:40:30]StoreToDocumentArchive [13:40:30]shift 392 fd 112515 [13:40:30]save to /storage/0392/doc_00112515 [13:40:30]save last doc name /storage/0392/doc_00112515 to /storage/kkm_last_doc_name [13:40:30]save OK [13:40:30]Clear old archive folders... [13:40:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:30]tlvbuf is 01354200 [13:40:30]SAM_PROTO_ClearQueue [13:40:30]wFMCommunicate request_size=4 [13:40:30]MH_SAM_APDU [13:40:30]CAPDU: 80 09 00 00 [13:40:30]Write to MH i2c: E2 08 00 FA 86 80 09 00 00 00 00 00 00 F2 [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:30]Read from MH i2c: E2 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 03 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 03 00 FA 86 00 90 00 F4 [13:40:30]RAPDU: 90 00 [13:40:30]wFMCommunicate OK [13:40:30]SAM_PROTO_ClearQueue done [13:40:30]KKMCreateOFDPacket [13:40:30]OFDProtocolAddRootSTLVToBuf [13:40:30]FM_MakeSignedData [13:40:30]FM_MakeSignedData [13:40:30]SAM_PROTO_SignData [13:40:30]wFMCommunicate request_size=4 [13:40:30]MH_SAM_APDU [13:40:30]CAPDU: 80 0D 01 02 [13:40:30]Write to MH i2c: E2 08 00 FB 86 80 0D 01 02 00 00 00 00 FA [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:31]Read from MH i2c: E2 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 FB 86 00 90 00 F5 [13:40:31]RAPDU: 90 00 [13:40:31]wFMCommunicate OK [13:40:31]wFMCommunicate request_size=255 [13:40:31]MH_SAM_APDU [13:40:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 07 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B7 01 00 35 04 06 00 E0 [13:40:31]Write to MH i2c: E2 02 01 FC 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 07 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B7 01 00 35 04 06 00 E0 00 00 21 [13:40:31]Write i2c OK [13:40:31]MH_I2C_Read... [13:40:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:31]Read from MH i2c: E2 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 FC 86 00 90 00 F6 [13:40:31]RAPDU: 90 00 [13:40:31]wFMCommunicate OK [13:40:31]wFMCommunicate request_size=10 [13:40:31]MH_SAM_APDU [13:40:31]CAPDU: 80 0D 02 02 05 FB D2 4D 82 0F [13:40:31]Write to MH i2c: E2 0D 00 FD 86 80 0D 02 02 05 00 FB D2 4D 82 0F 00 00 B2 [13:40:31]Write i2c OK [13:40:31]MH_I2C_Read... [13:40:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:31]Read from MH i2c: E2 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 FD 86 00 90 00 F7 [13:40:31]RAPDU: 90 00 [13:40:31]wFMCommunicate OK [13:40:31]wFMCommunicate request_size=4 [13:40:31]MH_SAM_APDU [13:40:31]CAPDU: 80 0D 03 02 [13:40:31]Write to MH i2c: E2 08 00 FE 86 80 0D 03 02 00 00 00 00 FF [13:40:31]Write i2c OK [13:40:31]MH_I2C_Read... [13:40:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:31]Read from MH i2c: E2 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 0B 00 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 0B 00 FE 86 00 CD C4 01 3F DF 52 0B 38 90 00 45 [13:40:31]RAPDU: CD C4 01 3F DF 52 0B 38 90 00 [13:40:31]wFMCommunicate OK [13:40:31]SAM_PROTO_SignData done [13:40:31]FM_MakeSignedData done [13:40:31]CreateOFDProtocolMessage [13:40:31]wFMCommunicate request_size=4 [13:40:31]MH_SAM_APDU [13:40:31]CAPDU: 80 11 00 00 [13:40:31]Write to MH i2c: E2 08 00 FF 86 80 11 00 00 00 00 00 00 FF [13:40:31]Write i2c OK [13:40:31]MH_I2C_Read... [13:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:31]Read from MH i2c: E2 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 17 00 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 17 00 FF 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 51 [13:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:40:31]wFMCommunicate OK [13:40:31]CreateOFDProtocolMessage done [13:40:31]OFDSenderStorePacket 112515 [13:40:31]StoreOFDPacket docnum=112515 [13:40:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 31 07 01 42 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 07 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B7 01 00 35 04 06 00 E0 FB D2 4D 82 0F CD C4 01 3F DF 52 0B 38 [13:40:31]CheckFolder [13:40:31]dirname=/storage/ofd_packets [13:40:31]CheckFolder done [13:40:31]ProducePacketName [13:40:31]name=ofd_packets/00112515 [13:40:31]NVStorageSaveData ofd_packets/00112515 [13:40:31]File name is /storage/ofd_packets/00112515 [13:40:31]Write 301 bytes [13:40:31]NVStorageSaveData done [13:40:31]OFDSenderStorePacket done [13:40:31]KKMCreateOFDPacket done [13:40:31]NVStorageSaveData kkm_last_timestamp [13:40:31]File name is /storage/kkm_last_timestamp [13:40:31]Write 4 bytes [13:40:31]NVStorageSaveData done [13:40:31]ExternCall_PrintAddStr [13:40:31]wPrintStart [13:40:31]Write to MH i2c: 01 00 00 00 87 87 [13:40:31]Write i2c OK [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: 01 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: 01 07 00 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: 01 07 00 00 87 00 00 00 00 00 FF 0F 9C [13:40:31]RasterBufferAndPrint [13:40:31]line Счет N : (1)321196 [13:40:31]line ИНН: 02508201610067 [13:40:31]line Контрольно-Кассовый Чек [13:40:31]line ПРОДАЖА [13:40:31]line ТРК (МРК, ГНК) : 11 [13:40:31]line Товар: 2710124130 [13:40:31]line Аи-92-К-5 [13:40:31]line 15.070 * 66.40 [13:40:31]line = 1000.65 [13:40:31]line НДС 12% НСП 1% [13:40:31]line > о реализуемом товаре [13:40:31]line ОКРУГЛЕНИЕ: -0.65 [13:40:31]line ИТОГО: 1000.00 [13:40:31]line Внесено: 1000.00 [13:40:31]line СДАЧА: 0.00 [13:40:31]line НСП 1% : 8.85 [13:40:31]line НДС 12% : 106.26 [13:40:31]line Наличными: 1000.00 [13:40:31]line Безнал.: 0.00 [13:40:31]line Место: АЗС № 65 "Партнер Нефть" [13:40:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:40:31]line СНО: Общий режим [13:40:31]line Чек 116 23.06.2024 13:41 [13:40:31]line Смена: 392 ФФД: 1.0 [13:40:31]line ЗНМ: 0300000198 [13:40:31]line РНМ: 0000000000092771 [13:40:31]line Версия ККМ: 001 [13:40:31]line ФМ: 0000000000875083 [13:40:31]line ФД: 112515 [13:40:31]line ФПД: 247372169708047 [13:40:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134127&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112515&fm=247372169708047&tin=02508201610067®Number=0000000000092771&sum=100000 [13:40:31]OFD Sender: Processing packet 112515 [packets to send 38, broken 37] [13:40:31]ProducePacketName [13:40:31]name=ofd_packets/00112515 [13:40:31]OFD Sender: To server: pG, [13:40:31]CommunicateWithHost lk.salyk.kg:30040 [13:40:31]written 0, free lines is 4095 [13:40:31]ConnectInit lk.salyk.kg [13:40:31]Connected sock=10 [13:40:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 31 07 01 42 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 07 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B7 01 00 35 04 06 00 E0 FB D2 4D 82 0F CD C4 01 3F DF 52 0B 38 [13:40:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 18 43 47 00 49 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B7 01 00 F4 03 04 00 F3 BC 77 66 B6 04 01 00 00 40 77 1D 30 34 BB ED F7 [13:40:32]CommunicateWithHost err = 0 [13:40:32]CheckOFDResponse [13:40:32]1017 (14) - 77093643461234 [13:40:32]1041 (16) - 0000000000875083 [13:40:32]1040 (4) - 112515 [13:40:32]1012 (4) - 23.06.2024 06:13 [13:40:32]1206 (1) - 0 [13:40:32]OFD Sender: Remove packet 112515 [13:40:32]ProducePacketName [13:40:32]name=ofd_packets/00112515 [13:40:32]NVStorageDeleteData [13:40:32]Write to MH i2c: 01 00 00 2B 87 B2 [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: 01 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: 01 07 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: 01 07 00 2B 87 00 00 00 00 00 D9 0C 9E [13:40:32]RasterBufferAndPrint [13:40:32]line [13:40:32]line [13:40:32]line [13:40:32]line [13:40:32]line [13:40:32]written 0, free lines is 3297 [13:40:32]MH_Cut [13:40:32]Write to MH i2c: D1 01 00 32 87 01 8B [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: D1 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: D1 01 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: D1 01 00 32 87 00 8A [13:40:32]Write to MH i2c: 01 00 00 33 87 BA [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]OFD Sender: No OFD packet to send [13:40:33]*** Cut start [13:40:33]*** Partial cut [13:40:33]*** CUTSNS_PIN = 1 [13:40:33]*** CUTSNS_PIN = 0 [13:40:33]*** Brake cut motor [13:40:33]Read from MH i2c: 01 [13:40:33]MH_I2C_Read... [13:40:33]*** Stop cut motor [13:40:33]*** Cut end [13:40:33]Read from MH i2c: 01 07 00 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: 01 07 00 33 87 00 00 00 00 00 FF 0F CF [13:40:33]process_action close_receipt done [13:40:33]requested_data is exist [13:40:33]produce_requested_data [13:40:33]requested_item fm.sn is exist - process it [13:40:33]wFMCommunicate request_size=4 [13:40:33]MH_SAM_APDU [13:40:33]CAPDU: 80 11 00 00 [13:40:33]Write to MH i2c: E2 08 00 34 87 80 11 00 00 00 00 00 00 35 [13:40:33]Write i2c OK [13:40:33]MH_I2C_Read... [13:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:33]Read from MH i2c: E2 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: E2 17 00 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: E2 17 00 34 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 87 [13:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:40:33]wFMCommunicate OK [13:40:33]requested_item fd.num is exist - process it [13:40:33]SAM_PROTO_GetFieldsCounters [13:40:33]wFMCommunicate request_size=4 [13:40:33]MH_SAM_APDU [13:40:33]CAPDU: 80 13 00 00 [13:40:33]Write to MH i2c: E2 08 00 35 87 80 13 00 00 00 00 00 00 38 [13:40:33]Write i2c OK [13:40:33]MH_I2C_Read... [13:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:33]Read from MH i2c: E2 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: E2 62 00 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: E2 62 00 35 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 83 B7 01 00 0E 04 04 00 88 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 79 [13:40:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 83 B7 01 00 0E 04 04 00 88 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 [13:40:33]wFMCommunicate OK [13:40:33]SAM_PROTO_GetFieldsCounters done [13:40:33]requested_item shift.num is exist - process it [13:40:33]requested_item shift.opened is exist - process it [13:40:33]req_shift_opened [13:40:33]FM_GetShiftState [13:40:33]SAM_PROTO_GetShiftState [13:40:33]wFMCommunicate request_size=4 [13:40:33]MH_SAM_APDU [13:40:33]CAPDU: 80 13 01 00 [13:40:33]Write to MH i2c: E2 08 00 36 87 80 13 01 00 00 00 00 00 3A [13:40:33]Write i2c OK [13:40:33]MH_I2C_Read... [13:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:33]Read from MH i2c: E2 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: E2 0E 00 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: E2 0E 00 36 87 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 58 [13:40:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:40:33]wFMCommunicate OK [13:40:33]SAM_PROTO_GetShiftState done [13:40:33]FM_GetShiftState done [13:40:33]req_shift_opened done [13:40:33]requested_item shift.open_date is exist - process it [13:40:33]req_shift_open_date [13:40:33]req_shift_open_date done [13:40:33]produce_requested_data done [13:40:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112515,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:40:33]process_action_free close_receipt [13:40:33]json_value_free [13:40:33]json_value_free done [13:40:33]process_json_proto returns [13:40:33]Send response to host [13:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112515,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:40:33]free response buf [13:40:33]execute_script done [13:40:33]execute_script returns [13:40:33]free content buf [13:40:33]Sock 9.Close socket [13:40:33]Sock 9.Thread stoped [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]accept exits with 7 [13:41:17]New connection [13:41:17]New thread 3066813796 created [13:41:17]Thread 3066957156 joined [13:41:17]Waiting for new connection... [13:41:17] Sock 7.Parse request [13:41:17]Sock 7.Check first char [13:41:17]Sock 7.First char is OK [13:41:17]request: POST /json_proto HTTP/1.0 [13:41:17]Method: POST [13:41:17]URL: /json_proto [13:41:17]Method is POST - this is cgi request [13:41:17]url: /json_proto [13:41:17]query_string will be loaded in cgi processing [13:41:17]execute_cgi json_proto POST (null) [13:41:17]execute_cgi path=json_proto method=POST [13:41:17]POST find Content-Length [13:41:17]Host: 172.17.59.68:8080 [13:41:17]Content-Length: 682 [13:41:17]Content-Type: application/json [13:41:17] [13:41:17]POST finish read [13:41:17]Found Content-Length = 682 [13:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:17]execute_script... [13:41:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:17]POST & json_proto [13:41:17]process_json_proto [13:41:17]json parsed OK: [13:41:17]protocol is kg_v1.0 [13:41:17]action value=close_receipt [13:41:17]process_action close_receipt [13:41:17]cmd_close_receipt [13:41:17]MH_GetDate [13:41:17]Write to MH i2c: F0 00 00 37 87 AD [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: F0 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: F0 09 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: F0 09 00 37 87 00 36 26 78 66 BC EC 60 65 5D [13:41:17]GetLastDocTimeStamp 1719150087 [13:41:17]current date 1719150134 [13:41:17]FM_GetShiftState [13:41:17]SAM_PROTO_GetShiftState [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 13 01 00 [13:41:17]Write to MH i2c: E2 08 00 38 87 80 13 01 00 00 00 00 00 3C [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0E 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0E 00 38 87 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 5A [13:41:17]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:41:17]wFMCommunicate OK [13:41:17]SAM_PROTO_GetShiftState done [13:41:17]FM_GetShiftState done [13:41:17]opened in 1719106490 [13:41:17]opened+sec_in_day 1719192890 [13:41:17]quantity*price = 100064 [13:41:17]sum+1 = 100066 [13:41:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 117 23.06.2024 13:42 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112516 ФПД: 26145230969080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134214&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112516&fm=26145230969080&tin=02508201610067®Number=0000000000092771&sum=100000 [13:41:18]StoreToDocumentArchive [13:41:18]shift 392 fd 112516 [13:41:18]save to /storage/0392/doc_00112516 [13:41:18]save last doc name /storage/0392/doc_00112516 to /storage/kkm_last_doc_name [13:41:18]save OK [13:41:18]Clear old archive folders... [13:41:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:18]tlvbuf is B6F597E0 [13:41:18]SAM_PROTO_ClearQueue [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 09 00 00 [13:41:18]Write to MH i2c: E2 08 00 45 87 80 09 00 00 00 00 00 00 3E [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 45 87 00 90 00 40 [13:41:18]RAPDU: 90 00 [13:41:18]wFMCommunicate OK [13:41:18]SAM_PROTO_ClearQueue done [13:41:18]KKMCreateOFDPacket [13:41:18]OFDProtocolAddRootSTLVToBuf [13:41:18]FM_MakeSignedData [13:41:18]FM_MakeSignedData [13:41:18]SAM_PROTO_SignData [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 0D 01 02 [13:41:18]Write to MH i2c: E2 08 00 46 87 80 0D 01 02 00 00 00 00 46 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 46 87 00 90 00 41 [13:41:18]RAPDU: 90 00 [13:41:18]wFMCommunicate OK [13:41:18]wFMCommunicate request_size=255 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 36 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B7 01 00 35 04 06 00 17 [13:41:18]Write to MH i2c: E2 02 01 47 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 36 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B7 01 00 35 04 06 00 17 00 00 D5 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 47 87 00 90 00 42 [13:41:18]RAPDU: 90 00 [13:41:18]wFMCommunicate OK [13:41:18]wFMCommunicate request_size=10 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 0D 02 02 05 C7 69 34 58 F8 [13:41:18]Write to MH i2c: E2 0D 00 48 87 80 0D 02 02 05 00 C7 69 34 58 F8 00 00 07 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 48 87 00 90 00 43 [13:41:18]RAPDU: 90 00 [13:41:18]wFMCommunicate OK [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 0D 03 02 [13:41:18]Write to MH i2c: E2 08 00 49 87 80 0D 03 02 00 00 00 00 4B [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 0B 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 0B 00 49 87 00 F7 B3 20 C0 3D BC 65 A8 90 00 DC [13:41:18]RAPDU: F7 B3 20 C0 3D BC 65 A8 90 00 [13:41:18]wFMCommunicate OK [13:41:18]SAM_PROTO_SignData done [13:41:18]FM_MakeSignedData done [13:41:18]CreateOFDProtocolMessage [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 11 00 00 [13:41:18]Write to MH i2c: E2 08 00 4A 87 80 11 00 00 00 00 00 00 4B [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 17 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 17 00 4A 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9D [13:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:41:18]wFMCommunicate OK [13:41:18]CreateOFDProtocolMessage done [13:41:18]OFDSenderStorePacket 112516 [13:41:18]StoreOFDPacket docnum=112516 [13:41:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BD 9B 07 01 FE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 36 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B7 01 00 35 04 06 00 17 C7 69 34 58 F8 F7 B3 20 C0 3D BC 65 A8 [13:41:18]CheckFolder [13:41:18]dirname=/storage/ofd_packets [13:41:18]CheckFolder done [13:41:18]ProducePacketName [13:41:18]name=ofd_packets/00112516 [13:41:18]NVStorageSaveData ofd_packets/00112516 [13:41:18]File name is /storage/ofd_packets/00112516 [13:41:18]Write 301 bytes [13:41:18]NVStorageSaveData done [13:41:18]OFDSenderStorePacket done [13:41:18]KKMCreateOFDPacket done [13:41:18]NVStorageSaveData kkm_last_timestamp [13:41:18]File name is /storage/kkm_last_timestamp [13:41:18]Write 4 bytes [13:41:18]NVStorageSaveData done [13:41:18]ExternCall_PrintAddStr [13:41:18]wPrintStart [13:41:18]Write to MH i2c: 01 00 00 4B 87 D2 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 07 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 07 00 4B 87 00 00 00 00 00 FF 0F E7 [13:41:18]RasterBufferAndPrint [13:41:18]line Счет N : (1)321197 [13:41:18]line ИНН: 02508201610067 [13:41:18]line Контрольно-Кассовый Чек [13:41:18]line ПРОДАЖА [13:41:18]line ТРК (МРК, ГНК) : 11 [13:41:18]line Товар: 2710124130 [13:41:18]line Аи-92-К-5 [13:41:18]line 15.070 * 66.40 [13:41:18]line = 1000.65 [13:41:18]line НДС 12% НСП 1% [13:41:18]line > о реализуемом товаре [13:41:18]line ОКРУГЛЕНИЕ: -0.65 [13:41:18]line ИТОГО: 1000.00 [13:41:18]line Внесено: 1000.00 [13:41:18]line СДАЧА: 0.00 [13:41:18]line НСП 1% : 8.85 [13:41:18]line НДС 12% : 106.26 [13:41:18]line Наличными: 1000.00 [13:41:18]line Безнал.: 0.00 [13:41:18]line Место: АЗС № 65 "Партнер Нефть" [13:41:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:41:18]line СНО: Общий режим [13:41:18]line Чек 117 23.06.2024 13:42 [13:41:18]line Смена: 392 ФФД: 1.0 [13:41:18]line ЗНМ: 0300000198 [13:41:18]line РНМ: 0000000000092771 [13:41:18]line Версия ККМ: 001 [13:41:18]line ФМ: 0000000000875083 [13:41:18]line ФД: 112516 [13:41:18]line ФПД: 26145230969080 [13:41:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134214&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112516&fm=26145230969080&tin=02508201610067®Number=0000000000092771&sum=100000 [13:41:19]OFD Sender: Processing packet 112516 [packets to send 38, broken 37] [13:41:19]ProducePacketName [13:41:19]name=ofd_packets/00112516 [13:41:19]OFD Sender: To server: pG, [13:41:19]CommunicateWithHost lk.salyk.kg:30040 [13:41:19]ConnectInit lk.salyk.kg [13:41:19]written 0, free lines is 4095 [13:41:19]Connected sock=10 [13:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BD 9B 07 01 FE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 36 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B7 01 00 35 04 06 00 17 C7 69 34 58 F8 F7 B3 20 C0 3D BC 65 A8 [13:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8F 99 47 00 BE 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B7 01 00 F4 03 04 00 22 BD 77 66 B6 04 01 00 00 47 C3 C8 F5 DF 46 47 1B [13:41:19]CommunicateWithHost err = 0 [13:41:19]CheckOFDResponse [13:41:19]1017 (14) - 77093643461234 [13:41:19]1041 (16) - 0000000000875083 [13:41:19]1040 (4) - 112516 [13:41:19]1012 (4) - 23.06.2024 06:13 [13:41:19]1206 (1) - 0 [13:41:19]OFD Sender: Remove packet 112516 [13:41:19]ProducePacketName [13:41:19]name=ofd_packets/00112516 [13:41:19]NVStorageDeleteData [13:41:19]Write to MH i2c: 01 00 00 76 87 FD [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 07 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 07 00 76 87 00 00 00 00 00 E2 0C F2 [13:41:19]RasterBufferAndPrint [13:41:19]line [13:41:19]line [13:41:19]line [13:41:19]line [13:41:19]line [13:41:19]written 0, free lines is 3307 [13:41:19]MH_Cut [13:41:19]Write to MH i2c: D1 01 00 7D 87 01 D6 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: D1 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: D1 01 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: D1 01 00 7D 87 00 D5 [13:41:19]Write to MH i2c: 01 00 00 7E 87 05 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]OFD Sender: No OFD packet to send [13:41:20]*** Cut start [13:41:20]*** Partial cut [13:41:20]*** CUTSNS_PIN = 1 [13:41:20]*** CUTSNS_PIN = 0 [13:41:20]*** Brake cut motor [13:41:20]Read from MH i2c: 01 [13:41:20]MH_I2C_Read... [13:41:20]*** Stop cut motor [13:41:20]*** Cut end [13:41:20]Read from MH i2c: 01 07 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: 01 07 00 7E 87 00 00 00 00 00 FF 0F 1A [13:41:20]process_action close_receipt done [13:41:20]requested_data is exist [13:41:20]produce_requested_data [13:41:20]requested_item fm.sn is exist - process it [13:41:20]wFMCommunicate request_size=4 [13:41:20]MH_SAM_APDU [13:41:20]CAPDU: 80 11 00 00 [13:41:20]Write to MH i2c: E2 08 00 7F 87 80 11 00 00 00 00 00 00 80 [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:20]Read from MH i2c: E2 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 17 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 17 00 7F 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [13:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:41:20]wFMCommunicate OK [13:41:20]requested_item fd.num is exist - process it [13:41:20]SAM_PROTO_GetFieldsCounters [13:41:20]wFMCommunicate request_size=4 [13:41:20]MH_SAM_APDU [13:41:20]CAPDU: 80 13 00 00 [13:41:20]Write to MH i2c: E2 08 00 80 87 80 13 00 00 00 00 00 00 83 [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:21]Read from MH i2c: E2 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 62 00 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 62 00 80 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 84 B7 01 00 0E 04 04 00 88 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 C8 [13:41:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 84 B7 01 00 0E 04 04 00 88 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 [13:41:21]wFMCommunicate OK [13:41:21]SAM_PROTO_GetFieldsCounters done [13:41:21]requested_item shift.num is exist - process it [13:41:21]requested_item shift.opened is exist - process it [13:41:21]req_shift_opened [13:41:21]FM_GetShiftState [13:41:21]SAM_PROTO_GetShiftState [13:41:21]wFMCommunicate request_size=4 [13:41:21]MH_SAM_APDU [13:41:21]CAPDU: 80 13 01 00 [13:41:21]Write to MH i2c: E2 08 00 81 87 80 13 01 00 00 00 00 00 85 [13:41:21]Write i2c OK [13:41:21]MH_I2C_Read... [13:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:21]Read from MH i2c: E2 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 0E 00 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 0E 00 81 87 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A3 [13:41:21]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:41:21]wFMCommunicate OK [13:41:21]SAM_PROTO_GetShiftState done [13:41:21]FM_GetShiftState done [13:41:21]req_shift_opened done [13:41:21]requested_item shift.open_date is exist - process it [13:41:21]req_shift_open_date [13:41:21]req_shift_open_date done [13:41:21]produce_requested_data done [13:41:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112516,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:41:21]process_action_free close_receipt [13:41:21]json_value_free [13:41:21]json_value_free done [13:41:21]process_json_proto returns [13:41:21]Send response to host [13:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112516,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:41:21]free response buf [13:41:21]execute_script done [13:41:21]execute_script returns [13:41:21]free content buf [13:41:21]Sock 7.Close socket [13:41:21]Sock 7.Thread stoped [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:16]accept exits with 9 [13:43:16]New connection [13:43:16]New thread 3066957156 created [13:43:16]Thread 3066813796 joined [13:43:16]Waiting for new connection... [13:43:16] Sock 9.Parse request [13:43:16]Sock 9.Check first char [13:43:16]Sock 9.First char is OK [13:43:16]request: POST /json_proto HTTP/1.0 [13:43:16]Method: POST [13:43:16]URL: /json_proto [13:43:16]Method is POST - this is cgi request [13:43:16]url: /json_proto [13:43:16]query_string will be loaded in cgi processing [13:43:16]execute_cgi json_proto POST (null) [13:43:16]execute_cgi path=json_proto method=POST [13:43:16]POST find Content-Length [13:43:16]Host: 172.17.59.68:8080 [13:43:16]Content-Length: 677 [13:43:16]Content-Type: application/json [13:43:16] [13:43:16]POST finish read [13:43:16]Found Content-Length = 677 [13:43:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:16]execute_script... [13:43: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)321198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:16]POST & json_proto [13:43:16]process_json_proto [13:43:16]json parsed OK: [13:43:16]protocol is kg_v1.0 [13:43:16]action value=close_receipt [13:43:16]process_action close_receipt [13:43:16]cmd_close_receipt [13:43:16]MH_GetDate [13:43:16]Write to MH i2c: F0 00 00 82 87 F8 [13:43:16]Write i2c OK [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: F0 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: F0 09 00 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: F0 09 00 82 87 00 AE 26 78 66 BC EC 60 65 20 [13:43:16]GetLastDocTimeStamp 1719150134 [13:43:16]current date 1719150254 [13:43:16]FM_GetShiftState [13:43:16]SAM_PROTO_GetShiftState [13:43:16]wFMCommunicate request_size=4 [13:43:16]MH_SAM_APDU [13:43:16]CAPDU: 80 13 01 00 [13:43:16]Write to MH i2c: E2 08 00 83 87 80 13 01 00 00 00 00 00 87 [13:43:16]Write i2c OK [13:43:16]MH_I2C_Read... [13:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:16]Read from MH i2c: E2 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: E2 0E 00 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: E2 0E 00 83 87 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A5 [13:43:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:43:16]wFMCommunicate OK [13:43:16]SAM_PROTO_GetShiftState done [13:43:16]FM_GetShiftState done [13:43:16]opened in 1719106490 [13:43:16]opened+sec_in_day 1719192890 [13:43:16]quantity*price = 10026 [13:43:16]sum+1 = 10027 [13:43:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 118 23.06.2024 13:44 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112517 ФПД: 255931300881815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134414&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112517&fm=255931300881815&tin=02508201610067®Number=0000000000092771&sum=10000 [13:43:17]StoreToDocumentArchive [13:43:17]shift 392 fd 112517 [13:43:17]save to /storage/0392/doc_00112517 [13:43:17]save last doc name /storage/0392/doc_00112517 to /storage/kkm_last_doc_name [13:43:17]save OK [13:43:17]Clear old archive folders... [13:43:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:17]tlvbuf is 011EBD00 [13:43:17]SAM_PROTO_ClearQueue [13:43:17]wFMCommunicate request_size=4 [13:43:17]MH_SAM_APDU [13:43:17]CAPDU: 80 09 00 00 [13:43:17]Write to MH i2c: E2 08 00 90 87 80 09 00 00 00 00 00 00 89 [13:43:17]Write i2c OK [13:43:17]MH_I2C_Read... [13:43:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:17]Read from MH i2c: E2 [13:43:17]MH_I2C_Read... [13:43:17]Read from MH i2c: E2 03 00 [13:43:17]MH_I2C_Read... [13:43:17]Read from MH i2c: E2 03 00 90 87 00 90 00 8B [13:43:17]RAPDU: 90 00 [13:43:17]wFMCommunicate OK [13:43:17]SAM_PROTO_ClearQueue done [13:43:17]KKMCreateOFDPacket [13:43:17]OFDProtocolAddRootSTLVToBuf [13:43:17]FM_MakeSignedData [13:43:17]FM_MakeSignedData [13:43:17]SAM_PROTO_SignData [13:43:17]wFMCommunicate request_size=4 [13:43:17]MH_SAM_APDU [13:43:17]CAPDU: 80 0D 01 02 [13:43:17]Write to MH i2c: E2 08 00 91 87 80 0D 01 02 00 00 00 00 91 [13:43:17]Write i2c OK [13:43:17]MH_I2C_Read... [13:43:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:17]Read from MH i2c: E2 [13:43:17]MH_I2C_Read... [13:43:17]Read from MH i2c: E2 03 00 [13:43:17]MH_I2C_Read... [13:43:17]Read from MH i2c: E2 03 00 91 87 00 90 00 8C [13:43:17]RAPDU: 90 00 [13:43:17]wFMCommunicate OK [13:43:17]wFMCommunicate request_size=255 [13:43:17]MH_SAM_APDU [13:43:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 AE 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B7 01 00 35 04 06 00 E8 [13:43:17]Write to MH i2c: E2 02 01 92 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 AE 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B7 01 00 35 04 06 00 E8 00 00 AA [13:43:17]Write i2c OK [13:43:17]MH_I2C_Read... [13:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:18]Read from MH i2c: E2 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: E2 03 00 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: E2 03 00 92 87 00 90 00 8D [13:43:18]RAPDU: 90 00 [13:43:18]wFMCommunicate OK [13:43:18]wFMCommunicate request_size=10 [13:43:18]MH_SAM_APDU [13:43:18]CAPDU: 80 0D 02 02 05 C4 A6 46 A5 97 [13:43:18]Write to MH i2c: E2 0D 00 93 87 80 0D 02 02 05 00 C4 A6 46 A5 97 00 00 8A [13:43:18]Write i2c OK [13:43:18]MH_I2C_Read... [13:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:18]Read from MH i2c: E2 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: E2 03 00 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: E2 03 00 93 87 00 90 00 8E [13:43:18]RAPDU: 90 00 [13:43:18]wFMCommunicate OK [13:43:18]wFMCommunicate request_size=4 [13:43:18]MH_SAM_APDU [13:43:18]CAPDU: 80 0D 03 02 [13:43:18]Write to MH i2c: E2 08 00 94 87 80 0D 03 02 00 00 00 00 96 [13:43:18]Write i2c OK [13:43:18]MH_I2C_Read... [13:43:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:18]Read from MH i2c: E2 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: E2 0B 00 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: E2 0B 00 94 87 00 76 6E 2A B7 53 D6 A5 F9 90 00 23 [13:43:18]RAPDU: 76 6E 2A B7 53 D6 A5 F9 90 00 [13:43:18]wFMCommunicate OK [13:43:18]SAM_PROTO_SignData done [13:43:18]FM_MakeSignedData done [13:43:18]CreateOFDProtocolMessage [13:43:18]wFMCommunicate request_size=4 [13:43:18]MH_SAM_APDU [13:43:18]CAPDU: 80 11 00 00 [13:43:18]Write to MH i2c: E2 08 00 95 87 80 11 00 00 00 00 00 00 96 [13:43:18]Write i2c OK [13:43:18]MH_I2C_Read... [13:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:18]Read from MH i2c: E2 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: E2 17 00 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: E2 17 00 95 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [13:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:43:18]wFMCommunicate OK [13:43:18]CreateOFDProtocolMessage done [13:43:18]OFDSenderStorePacket 112517 [13:43:18]StoreOFDPacket docnum=112517 [13:43:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 0B 07 01 F3 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 AE 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B7 01 00 35 04 06 00 E8 C4 A6 46 A5 97 76 6E 2A B7 53 D6 A5 F9 [13:43:18]CheckFolder [13:43:18]dirname=/storage/ofd_packets [13:43:18]CheckFolder done [13:43:18]ProducePacketName [13:43:18]name=ofd_packets/00112517 [13:43:18]NVStorageSaveData ofd_packets/00112517 [13:43:18]File name is /storage/ofd_packets/00112517 [13:43:18]Write 301 bytes [13:43:18]NVStorageSaveData done [13:43:18]OFDSenderStorePacket done [13:43:18]KKMCreateOFDPacket done [13:43:18]NVStorageSaveData kkm_last_timestamp [13:43:18]File name is /storage/kkm_last_timestamp [13:43:18]Write 4 bytes [13:43:18]NVStorageSaveData done [13:43:18]ExternCall_PrintAddStr [13:43:18]wPrintStart [13:43:18]Write to MH i2c: 01 00 00 96 87 1D [13:43:18]Write i2c OK [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: 01 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: 01 07 00 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: 01 07 00 96 87 00 00 00 00 00 FF 0F 32 [13:43:18]RasterBufferAndPrint [13:43:18]line Счет N : (1)321198 [13:43:18]line ИНН: 02508201610067 [13:43:18]line Контрольно-Кассовый Чек [13:43:18]line ПРОДАЖА [13:43:18]line ТРК (МРК, ГНК) : 11 [13:43:18]line Товар: 2710124130 [13:43:18]line Аи-92-К-5 [13:43:18]line 1.510 * 66.40 [13:43:18]line = 100.26 [13:43:18]line НДС 12% НСП 1% [13:43:18]line > о реализуемом товаре [13:43:18]line ОКРУГЛЕНИЕ: -0.26 [13:43:18]line ИТОГО: 100.00 [13:43:18]line Внесено: 100.00 [13:43:18]line СДАЧА: 0.00 [13:43:18]line НСП 1% : 0.89 [13:43:18]line НДС 12% : 10.65 [13:43:18]line Наличными: 100.00 [13:43:18]line Безнал.: 0.00 [13:43:18]line Место: АЗС № 65 "Партнер Нефть" [13:43:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:43:18]line СНО: Общий режим [13:43:18]line Чек 118 23.06.2024 13:44 [13:43:18]line Смена: 392 ФФД: 1.0 [13:43:18]line ЗНМ: 0300000198 [13:43:18]line РНМ: 0000000000092771 [13:43:18]line Версия ККМ: 001 [13:43:18]line ФМ: 0000000000875083 [13:43:18]line ФД: 112517 [13:43:18]line ФПД: 255931300881815 [13:43:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134414&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112517&fm=255931300881815&tin=02508201610067®Number=0000000000092771&sum=10000 [13:43:18]OFD Sender: Processing packet 112517 [packets to send 38, broken 37] [13:43:18]ProducePacketName [13:43:18]name=ofd_packets/00112517 [13:43:18]OFD Sender: To server: pG, [13:43:18]CommunicateWithHost lk.salyk.kg:30040 [13:43:18]ConnectInit lk.salyk.kg [13:43:18]written 0, free lines is 4095 [13:43:18]Connected sock=10 [13:43:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 0B 07 01 F3 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 AE 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B7 01 00 35 04 06 00 E8 C4 A6 46 A5 97 76 6E 2A B7 53 D6 A5 F9 [13:43:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BC 2E 47 00 B3 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B7 01 00 F4 03 04 00 9A BD 77 66 B6 04 01 00 00 C2 83 33 25 96 3A 68 2F [13:43:18]CommunicateWithHost err = 0 [13:43:18]CheckOFDResponse [13:43:18]1017 (14) - 77093643461234 [13:43:18]1041 (16) - 0000000000875083 [13:43:18]1040 (4) - 112517 [13:43:18]1012 (4) - 23.06.2024 06:15 [13:43:18]1206 (1) - 0 [13:43:18]OFD Sender: Remove packet 112517 [13:43:18]ProducePacketName [13:43:18]name=ofd_packets/00112517 [13:43:18]NVStorageDeleteData [13:43:18]Write to MH i2c: 01 00 00 C1 87 48 [13:43:18]Write i2c OK [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: 01 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: 01 07 00 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: 01 07 00 C1 87 00 00 00 00 00 CE 0C 29 [13:43:18]RasterBufferAndPrint [13:43:18]line [13:43:18]line [13:43:18]line [13:43:18]line [13:43:18]line [13:43:18]written 0, free lines is 3284 [13:43:18]MH_Cut [13:43:18]Write to MH i2c: D1 01 00 C8 87 01 21 [13:43:18]Write i2c OK [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: D1 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: D1 01 00 [13:43:18]MH_I2C_Read... [13:43:18]Read from MH i2c: D1 01 00 C8 87 00 20 [13:43:18]Write to MH i2c: 01 00 00 C9 87 50 [13:43:18]Write i2c OK [13:43:18]MH_I2C_Read... [13:43:19]OFD Sender: No OFD packet to send [13:43:19]*** Cut start [13:43:19]*** Partial cut [13:43:19]*** CUTSNS_PIN = 1 [13:43:19]*** CUTSNS_PIN = 0 [13:43:19]*** Brake cut motor [13:43:20]Read from MH i2c: 01 [13:43:20]MH_I2C_Read... [13:43:20]*** Stop cut motor [13:43:20]*** Cut end [13:43:20]Read from MH i2c: 01 07 00 [13:43:20]MH_I2C_Read... [13:43:20]Read from MH i2c: 01 07 00 C9 87 00 00 00 00 00 FF 0F 65 [13:43:20]process_action close_receipt done [13:43:20]requested_data is exist [13:43:20]produce_requested_data [13:43:20]requested_item fm.sn is exist - process it [13:43:20]wFMCommunicate request_size=4 [13:43:20]MH_SAM_APDU [13:43:20]CAPDU: 80 11 00 00 [13:43:20]Write to MH i2c: E2 08 00 CA 87 80 11 00 00 00 00 00 00 CB [13:43:20]Write i2c OK [13:43:20]MH_I2C_Read... [13:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:20]Read from MH i2c: E2 [13:43:20]MH_I2C_Read... [13:43:20]Read from MH i2c: E2 17 00 [13:43:20]MH_I2C_Read... [13:43:20]Read from MH i2c: E2 17 00 CA 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1D [13:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:43:20]wFMCommunicate OK [13:43:20]requested_item fd.num is exist - process it [13:43:20]SAM_PROTO_GetFieldsCounters [13:43:20]wFMCommunicate request_size=4 [13:43:20]MH_SAM_APDU [13:43:20]CAPDU: 80 13 00 00 [13:43:20]Write to MH i2c: E2 08 00 CB 87 80 13 00 00 00 00 00 00 CE [13:43:20]Write i2c OK [13:43:20]MH_I2C_Read... [13:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:20]Read from MH i2c: E2 [13:43:20]MH_I2C_Read... [13:43:20]Read from MH i2c: E2 62 00 [13:43:20]MH_I2C_Read... [13:43:20]Read from MH i2c: E2 62 00 CB 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 85 B7 01 00 0E 04 04 00 88 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 17 [13:43:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 85 B7 01 00 0E 04 04 00 88 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 [13:43:20]wFMCommunicate OK [13:43:20]SAM_PROTO_GetFieldsCounters done [13:43:20]requested_item shift.num is exist - process it [13:43:20]requested_item shift.opened is exist - process it [13:43:20]req_shift_opened [13:43:20]FM_GetShiftState [13:43:20]SAM_PROTO_GetShiftState [13:43:20]wFMCommunicate request_size=4 [13:43:20]MH_SAM_APDU [13:43:20]CAPDU: 80 13 01 00 [13:43:20]Write to MH i2c: E2 08 00 CC 87 80 13 01 00 00 00 00 00 D0 [13:43:20]Write i2c OK [13:43:20]MH_I2C_Read... [13:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:20]Read from MH i2c: E2 [13:43:20]MH_I2C_Read... [13:43:20]Read from MH i2c: E2 0E 00 [13:43:20]MH_I2C_Read... [13:43:20]Read from MH i2c: E2 0E 00 CC 87 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EE [13:43:20]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:43:20]wFMCommunicate OK [13:43:20]SAM_PROTO_GetShiftState done [13:43:20]FM_GetShiftState done [13:43:20]req_shift_opened done [13:43:20]requested_item shift.open_date is exist - process it [13:43:20]req_shift_open_date [13:43:20]req_shift_open_date done [13:43:20]produce_requested_data done [13:43:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112517,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:43:20]process_action_free close_receipt [13:43:20]json_value_free [13:43:20]json_value_free done [13:43:20]process_json_proto returns [13:43:20]Send response to host [13:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112517,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:43:20]free response buf [13:43:20]execute_script done [13:43:20]execute_script returns [13:43:20]free content buf [13:43:20]Sock 9.Close socket [13:43:20]Sock 9.Thread stoped [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:27]accept exits with 7 [13:44:27]New connection [13:44:27]New thread 3066813796 created [13:44:27]Thread 3066957156 joined [13:44:27]Waiting for new connection... [13:44:27] Sock 7.Parse request [13:44:27]Sock 7.Check first char [13:44:27]Sock 7.First char is OK [13:44:27]request: POST /json_proto HTTP/1.0 [13:44:27]Method: POST [13:44:27]URL: /json_proto [13:44:27]Method is POST - this is cgi request [13:44:27]url: /json_proto [13:44:27]query_string will be loaded in cgi processing [13:44:27]execute_cgi json_proto POST (null) [13:44:27]execute_cgi path=json_proto method=POST [13:44:27]POST find Content-Length [13:44:27]Host: 172.17.59.68:8080 [13:44:27]Content-Length: 805 [13:44:27]Content-Type: application/json [13:44:27] [13:44:27]POST finish read [13:44:27]Found Content-Length = 805 [13:44:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:27]execute_script... [13:44: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)321199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:27]POST & json_proto [13:44:27]process_json_proto [13:44:27]json parsed OK: [13:44:27]protocol is kg_v1.0 [13:44:27]action value=close_receipt [13:44:27]process_action close_receipt [13:44:27]cmd_close_receipt [13:44:27]MH_GetDate [13:44:27]Write to MH i2c: F0 00 00 CD 87 43 [13:44:27]Write i2c OK [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: F0 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: F0 09 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: F0 09 00 CD 87 00 F5 26 78 66 BC EC 60 65 B2 [13:44:27]GetLastDocTimeStamp 1719150254 [13:44:27]current date 1719150325 [13:44:27]FM_GetShiftState [13:44:27]SAM_PROTO_GetShiftState [13:44:27]wFMCommunicate request_size=4 [13:44:27]MH_SAM_APDU [13:44:27]CAPDU: 80 13 01 00 [13:44:27]Write to MH i2c: E2 08 00 CE 87 80 13 01 00 00 00 00 00 D2 [13:44:27]Write i2c OK [13:44:27]MH_I2C_Read... [13:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:27]Read from MH i2c: E2 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 0E 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 0E 00 CE 87 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F0 [13:44:27]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:44:27]wFMCommunicate OK [13:44:27]SAM_PROTO_GetShiftState done [13:44:27]FM_GetShiftState done [13:44:27]opened in 1719106490 [13:44:27]opened+sec_in_day 1719192890 [13:44:27]quantity*price = 30012 [13:44:27]sum+1 = 30014 [13:44:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 119 23.06.2024 13:45 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112518 ФПД: 73820246488165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134525&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112518&fm=73820246488165&tin=02508201610067®Number=0000000000092771&sum=30013 [13:44:29]StoreToDocumentArchive [13:44:29]shift 392 fd 112518 [13:44:29]save to /storage/0392/doc_00112518 [13:44:29]save last doc name /storage/0392/doc_00112518 to /storage/kkm_last_doc_name [13:44:29]save OK [13:44:29]Clear old archive folders... [13:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:29]tlvbuf is 011EBEE0 [13:44:29]SAM_PROTO_ClearQueue [13:44:29]wFMCommunicate request_size=4 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 09 00 00 [13:44:29]Write to MH i2c: E2 08 00 DB 87 80 09 00 00 00 00 00 00 D4 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 03 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 03 00 DB 87 00 90 00 D6 [13:44:29]RAPDU: 90 00 [13:44:29]wFMCommunicate OK [13:44:29]SAM_PROTO_ClearQueue done [13:44:29]KKMCreateOFDPacket [13:44:29]OFDProtocolAddRootSTLVToBuf [13:44:29]FM_MakeSignedData [13:44:29]FM_MakeSignedData [13:44:29]SAM_PROTO_SignData [13:44:29]wFMCommunicate request_size=4 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 0D 01 02 [13:44:29]Write to MH i2c: E2 08 00 DC 87 80 0D 01 02 00 00 00 00 DC [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 03 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 03 00 DC 87 00 90 00 D7 [13:44:29]RAPDU: 90 00 [13:44:29]wFMCommunicate OK [13:44:29]wFMCommunicate request_size=255 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F5 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B7 01 00 35 04 06 00 43 [13:44:29]Write to MH i2c: E2 02 01 DD 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F5 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B7 01 00 35 04 06 00 43 00 00 C2 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]OFD Sender: No OFD packet to send [13:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 03 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 03 00 DD 87 00 90 00 D8 [13:44:29]RAPDU: 90 00 [13:44:29]wFMCommunicate OK [13:44:29]wFMCommunicate request_size=10 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 0D 02 02 05 23 9D 91 B4 65 [13:44:29]Write to MH i2c: E2 0D 00 DE 87 80 0D 02 02 05 00 23 9D 91 B4 65 00 00 53 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 03 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 03 00 DE 87 00 90 00 D9 [13:44:29]RAPDU: 90 00 [13:44:29]wFMCommunicate OK [13:44:29]wFMCommunicate request_size=4 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 0D 03 02 [13:44:29]Write to MH i2c: E2 08 00 DF 87 80 0D 03 02 00 00 00 00 E1 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 0B 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 0B 00 DF 87 00 B8 D6 EA EB 56 F7 81 07 90 00 1A [13:44:29]RAPDU: B8 D6 EA EB 56 F7 81 07 90 00 [13:44:29]wFMCommunicate OK [13:44:29]SAM_PROTO_SignData done [13:44:29]FM_MakeSignedData done [13:44:29]CreateOFDProtocolMessage [13:44:29]wFMCommunicate request_size=4 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 11 00 00 [13:44:29]Write to MH i2c: E2 08 00 E0 87 80 11 00 00 00 00 00 00 E1 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 17 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 17 00 E0 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 33 [13:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:44:29]wFMCommunicate OK [13:44:29]CreateOFDProtocolMessage done [13:44:29]OFDSenderStorePacket 112518 [13:44:29]StoreOFDPacket docnum=112518 [13:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F5 68 07 01 3D BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F5 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B7 01 00 35 04 06 00 43 23 9D 91 B4 65 B8 D6 EA EB 56 F7 81 07 [13:44:29]CheckFolder [13:44:29]dirname=/storage/ofd_packets [13:44:29]CheckFolder done [13:44:29]ProducePacketName [13:44:29]name=ofd_packets/00112518 [13:44:29]NVStorageSaveData ofd_packets/00112518 [13:44:29]File name is /storage/ofd_packets/00112518 [13:44:29]Write 301 bytes [13:44:29]NVStorageSaveData done [13:44:29]OFDSenderStorePacket done [13:44:29]KKMCreateOFDPacket done [13:44:29]NVStorageSaveData kkm_last_timestamp [13:44:29]File name is /storage/kkm_last_timestamp [13:44:29]Write 4 bytes [13:44:29]NVStorageSaveData done [13:44:29]ExternCall_PrintAddStr [13:44:29]wPrintStart [13:44:29]Write to MH i2c: 01 00 00 E1 87 68 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: 01 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: 01 07 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: 01 07 00 E1 87 00 00 00 00 00 FF 0F 7D [13:44:29]RasterBufferAndPrint [13:44:29]line Счет N : (1)321199 [13:44:29]line ИНН: 02508201610067 [13:44:29]line Контрольно-Кассовый Чек [13:44:29]line ПРОДАЖА [13:44:29]line ТРК (МРК, ГНК) : 11 [13:44:29]line Товар: 2710124130 [13:44:29]line Аи-92-К-5 [13:44:29]line 4.520 * 66.40 [13:44:29]line = 300.13 [13:44:29]line НДС 12% НСП 1% [13:44:29]line > о реализуемом товаре [13:44:29]line ИТОГО: 300.13 [13:44:29]line НСП 1% : 2.66 [13:44:29]line НДС 12% : 31.87 [13:44:29]line Наличными: 0.00 [13:44:29]line Безнал.: 300.13 [13:44:29]line Место: АЗС № 65 "Партнер Нефть" [13:44:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:44:29]line СНО: Общий режим [13:44:29]line Чек 119 23.06.2024 13:45 [13:44:29]line Смена: 392 ФФД: 1.0 [13:44:29]line ЗНМ: 0300000198 [13:44:29]line РНМ: 0000000000092771 [13:44:29]line Версия ККМ: 001 [13:44:29]line Платежная система: О! деньги [13:44:29]line ФМ: 0000000000875083 [13:44:29]line ФД: 112518 [13:44:29]line ФПД: 73820246488165 [13:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134525&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112518&fm=73820246488165&tin=02508201610067®Number=0000000000092771&sum=30013 [13:44:29]OFD Sender: Processing packet 112518 [packets to send 38, broken 37] [13:44:29]ProducePacketName [13:44:29]name=ofd_packets/00112518 [13:44:29]OFD Sender: To server: pG, [13:44:29]CommunicateWithHost lk.salyk.kg:30040 [13:44:29]ConnectInit lk.salyk.kg [13:44:29]written 0, free lines is 4095 [13:44:29]Connected sock=10 [13:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F5 68 07 01 3D BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F5 26 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B7 01 00 35 04 06 00 43 23 9D 91 B4 65 B8 D6 EA EB 56 F7 81 07 [13:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2C 6A 47 00 91 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B7 01 00 F4 03 04 00 E1 BD 77 66 B6 04 01 00 00 3B 2D 95 5A F1 64 31 EE [13:44:30]CommunicateWithHost err = 0 [13:44:30]CheckOFDResponse [13:44:30]1017 (14) - 77093643461234 [13:44:30]1041 (16) - 0000000000875083 [13:44:30]1040 (4) - 112518 [13:44:30]1012 (4) - 23.06.2024 06:17 [13:44:30]1206 (1) - 0 [13:44:30]OFD Sender: Remove packet 112518 [13:44:30]ProducePacketName [13:44:30]name=ofd_packets/00112518 [13:44:30]NVStorageDeleteData [13:44:30]Write to MH i2c: 01 00 00 0B 88 93 [13:44:30]Write i2c OK [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: 01 [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: 01 07 00 [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: 01 07 00 0B 88 00 00 00 00 00 E4 0C 8A [13:44:30]RasterBufferAndPrint [13:44:30]line [13:44:30]line [13:44:30]line [13:44:30]line [13:44:30]line [13:44:30]written 0, free lines is 3307 [13:44:30]MH_Cut [13:44:30]Write to MH i2c: D1 01 00 12 88 01 6C [13:44:30]Write i2c OK [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: D1 [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: D1 01 00 [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: D1 01 00 12 88 00 6B [13:44:30]Write to MH i2c: 01 00 00 13 88 9B [13:44:30]Write i2c OK [13:44:30]MH_I2C_Read... [13:44:30]OFD Sender: No OFD packet to send [13:44:31]*** Cut start [13:44:31]*** Partial cut [13:44:31]*** CUTSNS_PIN = 1 [13:44:31]*** CUTSNS_PIN = 0 [13:44:31]*** Brake cut motor [13:44:31]Read from MH i2c: 01 [13:44:31]MH_I2C_Read... [13:44:31]*** Stop cut motor [13:44:31]*** Cut end [13:44:31]Read from MH i2c: 01 07 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: 01 07 00 13 88 00 00 00 00 00 FF 0F B0 [13:44:31]process_action close_receipt done [13:44:31]requested_data is exist [13:44:31]produce_requested_data [13:44:31]requested_item fm.sn is exist - process it [13:44:31]wFMCommunicate request_size=4 [13:44:31]MH_SAM_APDU [13:44:31]CAPDU: 80 11 00 00 [13:44:31]Write to MH i2c: E2 08 00 14 88 80 11 00 00 00 00 00 00 16 [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 17 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 17 00 14 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 68 [13:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:44:31]wFMCommunicate OK [13:44:31]requested_item fd.num is exist - process it [13:44:31]SAM_PROTO_GetFieldsCounters [13:44:31]wFMCommunicate request_size=4 [13:44:31]MH_SAM_APDU [13:44:31]CAPDU: 80 13 00 00 [13:44:31]Write to MH i2c: E2 08 00 15 88 80 13 00 00 00 00 00 00 19 [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 62 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 62 00 15 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B7 01 00 0E 04 04 00 88 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 66 [13:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B7 01 00 0E 04 04 00 88 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 [13:44:31]wFMCommunicate OK [13:44:31]SAM_PROTO_GetFieldsCounters done [13:44:31]requested_item shift.num is exist - process it [13:44:31]requested_item shift.opened is exist - process it [13:44:31]req_shift_opened [13:44:31]FM_GetShiftState [13:44:31]SAM_PROTO_GetShiftState [13:44:31]wFMCommunicate request_size=4 [13:44:31]MH_SAM_APDU [13:44:31]CAPDU: 80 13 01 00 [13:44:31]Write to MH i2c: E2 08 00 16 88 80 13 01 00 00 00 00 00 1B [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 0E 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 0E 00 16 88 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 39 [13:44:31]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:44:31]wFMCommunicate OK [13:44:31]SAM_PROTO_GetShiftState done [13:44:31]FM_GetShiftState done [13:44:31]req_shift_opened done [13:44:31]requested_item shift.open_date is exist - process it [13:44:31]req_shift_open_date [13:44:31]req_shift_open_date done [13:44:31]produce_requested_data done [13:44:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112518,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:44:31]process_action_free close_receipt [13:44:31]json_value_free [13:44:31]json_value_free done [13:44:31]process_json_proto returns [13:44:31]Send response to host [13:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112518,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:44:31]free response buf [13:44:31]execute_script done [13:44:31]execute_script returns [13:44:31]free content buf [13:44:31]Sock 7.Close socket [13:44:31]Sock 7.Thread stoped [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:17]accept exits with 9 [13:45:17]New connection [13:45:17]New thread 3066957156 created [13:45:17]Thread 3066813796 joined [13:45:17]Waiting for new connection... [13:45:17] Sock 9.Parse request [13:45:17]Sock 9.Check first char [13:45:17]Sock 9.First char is OK [13:45:17]request: POST /json_proto HTTP/1.0 [13:45:17]Method: POST [13:45:17]URL: /json_proto [13:45:17]Method is POST - this is cgi request [13:45:17]url: /json_proto [13:45:17]query_string will be loaded in cgi processing [13:45:17]execute_cgi json_proto POST (null) [13:45:17]execute_cgi path=json_proto method=POST [13:45:17]POST find Content-Length [13:45:17]Host: 172.17.59.68:8080 [13:45:17]Content-Length: 678 [13:45:17]Content-Type: application/json [13:45:17] [13:45:17]POST finish read [13:45:17]Found Content-Length = 678 [13:45:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:45:17]execute_script... [13:45: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)321200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:45:17]POST & json_proto [13:45:17]process_json_proto [13:45:17]json parsed OK: [13:45:17]protocol is kg_v1.0 [13:45:17]action value=close_receipt [13:45:17]process_action close_receipt [13:45:17]cmd_close_receipt [13:45:17]MH_GetDate [13:45:17]Write to MH i2c: F0 00 00 17 88 8E [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: F0 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: F0 09 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: F0 09 00 17 88 00 27 27 78 66 BC EC 60 65 30 [13:45:17]GetLastDocTimeStamp 1719150325 [13:45:17]current date 1719150375 [13:45:17]FM_GetShiftState [13:45:17]SAM_PROTO_GetShiftState [13:45:17]wFMCommunicate request_size=4 [13:45:17]MH_SAM_APDU [13:45:17]CAPDU: 80 13 01 00 [13:45:17]Write to MH i2c: E2 08 00 18 88 80 13 01 00 00 00 00 00 1D [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:17]Read from MH i2c: E2 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 0E 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 0E 00 18 88 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3B [13:45:17]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:45:17]wFMCommunicate OK [13:45:17]SAM_PROTO_GetShiftState done [13:45:17]FM_GetShiftState done [13:45:17]opened in 1719106490 [13:45:17]opened+sec_in_day 1719192890 [13:45:17]quantity*price = 70052 [13:45:17]sum+1 = 70053 [13:45:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 120 23.06.2024 13:46 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112519 ФПД: 53455519639828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134615&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112519&fm=53455519639828&tin=02508201610067®Number=0000000000092771&sum=70000 [13:45:18]StoreToDocumentArchive [13:45:18]shift 392 fd 112519 [13:45:18]save to /storage/0392/doc_00112519 [13:45:18]save last doc name /storage/0392/doc_00112519 to /storage/kkm_last_doc_name [13:45:18]save OK [13:45:18]Clear old archive folders... [13:45:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:18]tlvbuf is 011F1DF0 [13:45:18]SAM_PROTO_ClearQueue [13:45:18]wFMCommunicate request_size=4 [13:45:18]MH_SAM_APDU [13:45:18]CAPDU: 80 09 00 00 [13:45:18]Write to MH i2c: E2 08 00 25 88 80 09 00 00 00 00 00 00 1F [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:18]Read from MH i2c: E2 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 03 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 03 00 25 88 00 90 00 21 [13:45:18]RAPDU: 90 00 [13:45:18]wFMCommunicate OK [13:45:18]SAM_PROTO_ClearQueue done [13:45:18]KKMCreateOFDPacket [13:45:18]OFDProtocolAddRootSTLVToBuf [13:45:18]FM_MakeSignedData [13:45:18]FM_MakeSignedData [13:45:18]SAM_PROTO_SignData [13:45:18]wFMCommunicate request_size=4 [13:45:18]MH_SAM_APDU [13:45:18]CAPDU: 80 0D 01 02 [13:45:18]Write to MH i2c: E2 08 00 26 88 80 0D 01 02 00 00 00 00 27 [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:18]Read from MH i2c: E2 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 03 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 03 00 26 88 00 90 00 22 [13:45:18]RAPDU: 90 00 [13:45:18]wFMCommunicate OK [13:45:18]wFMCommunicate request_size=255 [13:45:18]MH_SAM_APDU [13:45: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 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 78 00 00 00 F4 03 04 00 27 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B7 01 00 35 04 06 00 30 [13:45:18]Write to MH i2c: E2 02 01 27 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 78 00 00 00 F4 03 04 00 27 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B7 01 00 35 04 06 00 30 00 00 89 [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 27 88 00 90 00 23 [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]wFMCommunicate request_size=10 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 0D 02 02 05 9E 15 42 69 14 [13:45:19]Write to MH i2c: E2 0D 00 28 88 80 0D 02 02 05 00 9E 15 42 69 14 00 00 A6 [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 28 88 00 90 00 24 [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 0D 03 02 [13:45:19]Write to MH i2c: E2 08 00 29 88 80 0D 03 02 00 00 00 00 2C [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 0B 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 0B 00 29 88 00 38 48 00 C8 A6 CF 87 3A 90 00 AB [13:45:19]RAPDU: 38 48 00 C8 A6 CF 87 3A 90 00 [13:45:19]wFMCommunicate OK [13:45:19]SAM_PROTO_SignData done [13:45:19]FM_MakeSignedData done [13:45:19]CreateOFDProtocolMessage [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 11 00 00 [13:45:19]Write to MH i2c: E2 08 00 2A 88 80 11 00 00 00 00 00 00 2C [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 17 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 17 00 2A 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7E [13:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:45:19]wFMCommunicate OK [13:45:19]CreateOFDProtocolMessage done [13:45:19]OFDSenderStorePacket 112519 [13:45:19]StoreOFDPacket docnum=112519 [13:45:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 40 07 01 E9 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 78 00 00 00 F4 03 04 00 27 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B7 01 00 35 04 06 00 30 9E 15 42 69 14 38 48 00 C8 A6 CF 87 3A [13:45:19]CheckFolder [13:45:19]dirname=/storage/ofd_packets [13:45:19]CheckFolder done [13:45:19]ProducePacketName [13:45:19]name=ofd_packets/00112519 [13:45:19]NVStorageSaveData ofd_packets/00112519 [13:45:19]File name is /storage/ofd_packets/00112519 [13:45:19]Write 301 bytes [13:45:19]NVStorageSaveData done [13:45:19]OFDSenderStorePacket done [13:45:19]KKMCreateOFDPacket done [13:45:19]NVStorageSaveData kkm_last_timestamp [13:45:19]File name is /storage/kkm_last_timestamp [13:45:19]Write 4 bytes [13:45:19]NVStorageSaveData done [13:45:19]ExternCall_PrintAddStr [13:45:19]wPrintStart [13:45:19]Write to MH i2c: 01 00 00 2B 88 B3 [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: 01 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: 01 07 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: 01 07 00 2B 88 00 00 00 00 00 FF 0F C8 [13:45:19]RasterBufferAndPrint [13:45:19]line Счет N : (1)321200 [13:45:19]line ИНН: 02508201610067 [13:45:19]line Контрольно-Кассовый Чек [13:45:19]line ПРОДАЖА [13:45:19]line ТРК (МРК, ГНК) : 11 [13:45:19]line Товар: 2710124130 [13:45:19]line Аи-92-К-5 [13:45:19]line 10.550 * 66.40 [13:45:19]line = 700.52 [13:45:19]line НДС 12% НСП 1% [13:45:19]line > о реализуемом товаре [13:45:19]line ОКРУГЛЕНИЕ: -0.52 [13:45:19]line ИТОГО: 700.00 [13:45:19]line Внесено: 700.00 [13:45:19]line СДАЧА: 0.00 [13:45:19]line НСП 1% : 6.20 [13:45:19]line НДС 12% : 74.39 [13:45:19]line Наличными: 700.00 [13:45:19]line Безнал.: 0.00 [13:45:19]line Место: АЗС № 65 "Партнер Нефть" [13:45:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:45:19]line СНО: Общий режим [13:45:19]line Чек 120 23.06.2024 13:46 [13:45:19]line Смена: 392 ФФД: 1.0 [13:45:19]line ЗНМ: 0300000198 [13:45:19]line РНМ: 0000000000092771 [13:45:19]line Версия ККМ: 001 [13:45:19]line ФМ: 0000000000875083 [13:45:19]line ФД: 112519 [13:45:19]line ФПД: 53455519639828 [13:45:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134615&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112519&fm=53455519639828&tin=02508201610067®Number=0000000000092771&sum=70000 [13:45:19]OFD Sender: Processing packet 112519 [packets to send 38, broken 37] [13:45:19]ProducePacketName [13:45:19]name=ofd_packets/00112519 [13:45:19]OFD Sender: To server: pG, [13:45:19]CommunicateWithHost lk.salyk.kg:30040 [13:45:19]ConnectInit lk.salyk.kg [13:45:19]written 0, free lines is 4095 [13:45:19]Connected sock=10 [13:45:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 40 07 01 E9 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 78 00 00 00 F4 03 04 00 27 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B7 01 00 35 04 06 00 30 9E 15 42 69 14 38 48 00 C8 A6 CF 87 3A [13:45:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 40 D7 47 00 9A F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B7 01 00 F4 03 04 00 13 BE 77 66 B6 04 01 00 00 FB 1B BC 1A FF EE E4 98 [13:45:19]CommunicateWithHost err = 0 [13:45:19]CheckOFDResponse [13:45:19]1017 (14) - 77093643461234 [13:45:19]1041 (16) - 0000000000875083 [13:45:19]1040 (4) - 112519 [13:45:19]1012 (4) - 23.06.2024 06:17 [13:45:19]1206 (1) - 0 [13:45:19]OFD Sender: Remove packet 112519 [13:45:19]ProducePacketName [13:45:19]name=ofd_packets/00112519 [13:45:19]NVStorageDeleteData [13:45:20]Write to MH i2c: 01 00 00 56 88 DE [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 56 88 00 00 00 00 00 CD 0C BE [13:45:20]RasterBufferAndPrint [13:45:20]line [13:45:20]line [13:45:20]line [13:45:20]line [13:45:20]line [13:45:20]written 0, free lines is 3286 [13:45:20]MH_Cut [13:45:20]Write to MH i2c: D1 01 00 5D 88 01 B7 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: D1 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: D1 01 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: D1 01 00 5D 88 00 B6 [13:45:20]Write to MH i2c: 01 00 00 5E 88 E6 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]OFD Sender: No OFD packet to send [13:45:20]*** Cut start [13:45:20]*** Partial cut [13:45:20]*** CUTSNS_PIN = 1 [13:45:20]*** CUTSNS_PIN = 0 [13:45:21]*** Brake cut motor [13:45:21]Read from MH i2c: 01 [13:45:21]MH_I2C_Read... [13:45:21]*** Stop cut motor [13:45:21]*** Cut end [13:45:21]Read from MH i2c: 01 07 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: 01 07 00 5E 88 00 00 00 00 00 FF 0F FB [13:45:21]process_action close_receipt done [13:45:21]requested_data is exist [13:45:21]produce_requested_data [13:45:21]requested_item fm.sn is exist - process it [13:45:21]wFMCommunicate request_size=4 [13:45:21]MH_SAM_APDU [13:45:21]CAPDU: 80 11 00 00 [13:45:21]Write to MH i2c: E2 08 00 5F 88 80 11 00 00 00 00 00 00 61 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:21]Read from MH i2c: E2 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 17 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 17 00 5F 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [13:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:45:21]wFMCommunicate OK [13:45:21]requested_item fd.num is exist - process it [13:45:21]SAM_PROTO_GetFieldsCounters [13:45:21]wFMCommunicate request_size=4 [13:45:21]MH_SAM_APDU [13:45:21]CAPDU: 80 13 00 00 [13:45:21]Write to MH i2c: E2 08 00 60 88 80 13 00 00 00 00 00 00 64 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:21]Read from MH i2c: E2 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 62 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 62 00 60 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B7 01 00 0E 04 04 00 88 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 B5 [13:45:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B7 01 00 0E 04 04 00 88 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 [13:45:21]wFMCommunicate OK [13:45:21]SAM_PROTO_GetFieldsCounters done [13:45:21]requested_item shift.num is exist - process it [13:45:21]requested_item shift.opened is exist - process it [13:45:21]req_shift_opened [13:45:21]FM_GetShiftState [13:45:21]SAM_PROTO_GetShiftState [13:45:21]wFMCommunicate request_size=4 [13:45:21]MH_SAM_APDU [13:45:21]CAPDU: 80 13 01 00 [13:45:21]Write to MH i2c: E2 08 00 61 88 80 13 01 00 00 00 00 00 66 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:21]Read from MH i2c: E2 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 0E 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 0E 00 61 88 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 84 [13:45:21]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:45:21]wFMCommunicate OK [13:45:21]SAM_PROTO_GetShiftState done [13:45:21]FM_GetShiftState done [13:45:21]req_shift_opened done [13:45:21]requested_item shift.open_date is exist - process it [13:45:21]req_shift_open_date [13:45:21]req_shift_open_date done [13:45:21]produce_requested_data done [13:45:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112519,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:45:21]process_action_free close_receipt [13:45:21]json_value_free [13:45:21]json_value_free done [13:45:21]process_json_proto returns [13:45:21]Send response to host [13:45:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112519,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:45:21]free response buf [13:45:21]execute_script done [13:45:21]execute_script returns [13:45:21]free content buf [13:45:21]Sock 9.Close socket [13:45:21]Sock 9.Thread stoped [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:45:57]accept exits with 7 [13:45:57]New connection [13:45:57]New thread 3066813796 created [13:45:57]Thread 3066957156 joined [13:45:57]Waiting for new connection... [13:45:57] Sock 7.Parse request [13:45:57]Sock 7.Check first char [13:45:57]Sock 7.First char is OK [13:45:57]request: POST /json_proto HTTP/1.0 [13:45:57]Method: POST [13:45:57]URL: /json_proto [13:45:57]Method is POST - this is cgi request [13:45:57]url: /json_proto [13:45:57]query_string will be loaded in cgi processing [13:45:57]execute_cgi json_proto POST (null) [13:45:57]execute_cgi path=json_proto method=POST [13:45:57]POST find Content-Length [13:45:57]Host: 172.17.59.68:8080 [13:45:57]Content-Length: 678 [13:45:57]Content-Type: application/json [13:45:57] [13:45:57]POST finish read [13:45:57]Found Content-Length = 678 [13:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:45:57]execute_script... [13:45: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)321201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:45:57]POST & json_proto [13:45:57]process_json_proto [13:45:57]json parsed OK: [13:45:57]protocol is kg_v1.0 [13:45:57]action value=close_receipt [13:45:57]process_action close_receipt [13:45:57]cmd_close_receipt [13:45:57]MH_GetDate [13:45:57]Write to MH i2c: F0 00 00 62 88 D9 [13:45:57]Write i2c OK [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: F0 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: F0 09 00 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: F0 09 00 62 88 00 4F 27 78 66 BC EC 60 65 A3 [13:45:57]GetLastDocTimeStamp 1719150375 [13:45:57]current date 1719150415 [13:45:57]FM_GetShiftState [13:45:57]SAM_PROTO_GetShiftState [13:45:57]wFMCommunicate request_size=4 [13:45:57]MH_SAM_APDU [13:45:57]CAPDU: 80 13 01 00 [13:45:57]Write to MH i2c: E2 08 00 63 88 80 13 01 00 00 00 00 00 68 [13:45:57]Write i2c OK [13:45:57]MH_I2C_Read... [13:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:57]Read from MH i2c: E2 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 0E 00 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 0E 00 63 88 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 86 [13:45:57]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:45:57]wFMCommunicate OK [13:45:57]SAM_PROTO_GetShiftState done [13:45:57]FM_GetShiftState done [13:45:57]opened in 1719106490 [13:45:57]opened+sec_in_day 1719192890 [13:45:57]quantity*price = 70052 [13:45:57]sum+1 = 70053 [13:45:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 121 23.06.2024 13:46 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112520 ФПД: 190668138639400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134655&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112520&fm=190668138639400&tin=02508201610067®Number=0000000000092771&sum=70000 [13:45:58]StoreToDocumentArchive [13:45:58]shift 392 fd 112520 [13:45:58]save to /storage/0392/doc_00112520 [13:45:58]save last doc name /storage/0392/doc_00112520 to /storage/kkm_last_doc_name [13:45:58]save OK [13:45:58]Clear old archive folders... [13:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:58]tlvbuf is 013A4140 [13:45:58]SAM_PROTO_ClearQueue [13:45:58]wFMCommunicate request_size=4 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 09 00 00 [13:45:58]Write to MH i2c: E2 08 00 70 88 80 09 00 00 00 00 00 00 6A [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 70 88 00 90 00 6C [13:45:58]RAPDU: 90 00 [13:45:58]wFMCommunicate OK [13:45:58]SAM_PROTO_ClearQueue done [13:45:58]KKMCreateOFDPacket [13:45:58]OFDProtocolAddRootSTLVToBuf [13:45:58]FM_MakeSignedData [13:45:58]FM_MakeSignedData [13:45:58]SAM_PROTO_SignData [13:45:58]wFMCommunicate request_size=4 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 0D 01 02 [13:45:58]Write to MH i2c: E2 08 00 71 88 80 0D 01 02 00 00 00 00 72 [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 71 88 00 90 00 6D [13:45:58]RAPDU: 90 00 [13:45:58]wFMCommunicate OK [13:45:58]wFMCommunicate request_size=255 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 79 00 00 00 F4 03 04 00 4F 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B7 01 00 35 04 06 00 AD [13:45:58]Write to MH i2c: E2 02 01 72 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 79 00 00 00 F4 03 04 00 4F 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B7 01 00 35 04 06 00 AD 00 00 7B [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 72 88 00 90 00 6E [13:45:58]RAPDU: 90 00 [13:45:58]wFMCommunicate OK [13:45:58]wFMCommunicate request_size=10 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 0D 02 02 05 69 62 AC 70 28 [13:45:58]Write to MH i2c: E2 0D 00 73 88 80 0D 02 02 05 00 69 62 AC 70 28 00 00 8E [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 73 88 00 90 00 6F [13:45:58]RAPDU: 90 00 [13:45:58]wFMCommunicate OK [13:45:58]wFMCommunicate request_size=4 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 0D 03 02 [13:45:58]Write to MH i2c: E2 08 00 74 88 80 0D 03 02 00 00 00 00 77 [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 0B 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 0B 00 74 88 00 C3 6E 39 97 B8 7F CD 7E 90 00 FB [13:45:58]RAPDU: C3 6E 39 97 B8 7F CD 7E 90 00 [13:45:58]wFMCommunicate OK [13:45:58]SAM_PROTO_SignData done [13:45:58]FM_MakeSignedData done [13:45:58]CreateOFDProtocolMessage [13:45:58]wFMCommunicate request_size=4 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 11 00 00 [13:45:58]Write to MH i2c: E2 08 00 75 88 80 11 00 00 00 00 00 00 77 [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 17 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 17 00 75 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C9 [13:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:45:58]wFMCommunicate OK [13:45:58]CreateOFDProtocolMessage done [13:45:58]OFDSenderStorePacket 112520 [13:45:58]StoreOFDPacket docnum=112520 [13:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD BB 07 01 0F 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 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 79 00 00 00 F4 03 04 00 4F 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B7 01 00 35 04 06 00 AD 69 62 AC 70 28 C3 6E 39 97 B8 7F CD 7E [13:45:58]CheckFolder [13:45:58]dirname=/storage/ofd_packets [13:45:58]CheckFolder done [13:45:58]ProducePacketName [13:45:58]name=ofd_packets/00112520 [13:45:58]NVStorageSaveData ofd_packets/00112520 [13:45:58]File name is /storage/ofd_packets/00112520 [13:45:58]Write 301 bytes [13:45:58]NVStorageSaveData done [13:45:58]OFDSenderStorePacket done [13:45:58]KKMCreateOFDPacket done [13:45:58]NVStorageSaveData kkm_last_timestamp [13:45:58]File name is /storage/kkm_last_timestamp [13:45:58]Write 4 bytes [13:45:58]NVStorageSaveData done [13:45:58]ExternCall_PrintAddStr [13:45:58]wPrintStart [13:45:58]Write to MH i2c: 01 00 00 76 88 FE [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: 01 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: 01 07 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: 01 07 00 76 88 00 00 00 00 00 FF 0F 13 [13:45:58]RasterBufferAndPrint [13:45:58]line Счет N : (1)321201 [13:45:58]line ИНН: 02508201610067 [13:45:58]line Контрольно-Кассовый Чек [13:45:58]line ПРОДАЖА [13:45:58]line ТРК (МРК, ГНК) : 11 [13:45:58]line Товар: 2710124130 [13:45:58]line Аи-92-К-5 [13:45:58]line 10.550 * 66.40 [13:45:58]line = 700.52 [13:45:58]line НДС 12% НСП 1% [13:45:58]line > о реализуемом товаре [13:45:58]line ОКРУГЛЕНИЕ: -0.52 [13:45:58]line ИТОГО: 700.00 [13:45:58]line Внесено: 700.00 [13:45:58]line СДАЧА: 0.00 [13:45:58]line НСП 1% : 6.20 [13:45:58]line НДС 12% : 74.39 [13:45:58]line Наличными: 700.00 [13:45:58]line Безнал.: 0.00 [13:45:58]line Место: АЗС № 65 "Партнер Нефть" [13:45:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:45:58]line СНО: Общий режим [13:45:58]line Чек 121 23.06.2024 13:46 [13:45:58]line Смена: 392 ФФД: 1.0 [13:45:58]line ЗНМ: 0300000198 [13:45:58]line РНМ: 0000000000092771 [13:45:58]line Версия ККМ: 001 [13:45:58]line ФМ: 0000000000875083 [13:45:58]line ФД: 112520 [13:45:58]line ФПД: 190668138639400 [13:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134655&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112520&fm=190668138639400&tin=02508201610067®Number=0000000000092771&sum=70000 [13:45:59]OFD Sender: Processing packet 112520 [packets to send 38, broken 37] [13:45:59]ProducePacketName [13:45:59]name=ofd_packets/00112520 [13:45:59]OFD Sender: To server: pG, [13:45:59]CommunicateWithHost lk.salyk.kg:30040 [13:45:59]ConnectInit lk.salyk.kg [13:45:59]written 0, free lines is 4095 [13:45:59]Connected sock=10 [13:45:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD BB 07 01 0F 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 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 79 00 00 00 F4 03 04 00 4F 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B7 01 00 35 04 06 00 AD 69 62 AC 70 28 C3 6E 39 97 B8 7F CD 7E [13:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FD 6A 47 00 1B 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B7 01 00 F4 03 04 00 3A BE 77 66 B6 04 01 00 00 6C 70 84 AD A5 7B 73 DB [13:45:59]CommunicateWithHost err = 0 [13:45:59]CheckOFDResponse [13:45:59]1017 (14) - 77093643461234 [13:45:59]1041 (16) - 0000000000875083 [13:45:59]1040 (4) - 112520 [13:45:59]1012 (4) - 23.06.2024 06:18 [13:45:59]1206 (1) - 0 [13:45:59]OFD Sender: Remove packet 112520 [13:45:59]ProducePacketName [13:45:59]name=ofd_packets/00112520 [13:45:59]NVStorageDeleteData [13:45:59]Write to MH i2c: 01 00 00 A1 88 29 [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: 01 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: 01 07 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: 01 07 00 A1 88 00 00 00 00 00 EB 0C 27 [13:45:59]RasterBufferAndPrint [13:45:59]line [13:45:59]line [13:45:59]line [13:45:59]line [13:45:59]line [13:45:59]written 0, free lines is 3313 [13:45:59]MH_Cut [13:45:59]Write to MH i2c: D1 01 00 A8 88 01 02 [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: D1 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: D1 01 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: D1 01 00 A8 88 00 01 [13:45:59]Write to MH i2c: 01 00 00 A9 88 31 [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]OFD Sender: No OFD packet to send [13:46:00]*** Cut start [13:46:00]*** Partial cut [13:46:00]*** CUTSNS_PIN = 1 [13:46:00]*** CUTSNS_PIN = 0 [13:46:00]*** Brake cut motor [13:46:00]Read from MH i2c: 01 [13:46:00]MH_I2C_Read... [13:46:00]*** Stop cut motor [13:46:00]*** Cut end [13:46:00]Read from MH i2c: 01 07 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: 01 07 00 A9 88 00 00 00 00 00 FF 0F 46 [13:46:00]process_action close_receipt done [13:46:00]requested_data is exist [13:46:00]produce_requested_data [13:46:00]requested_item fm.sn is exist - process it [13:46:00]wFMCommunicate request_size=4 [13:46:00]MH_SAM_APDU [13:46:00]CAPDU: 80 11 00 00 [13:46:00]Write to MH i2c: E2 08 00 AA 88 80 11 00 00 00 00 00 00 AC [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 [13:46:00]MH_I2C_Read... [13:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:00]Read from MH i2c: E2 17 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 17 00 AA 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [13:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:46:00]wFMCommunicate OK [13:46:00]requested_item fd.num is exist - process it [13:46:00]SAM_PROTO_GetFieldsCounters [13:46:00]wFMCommunicate request_size=4 [13:46:00]MH_SAM_APDU [13:46:00]CAPDU: 80 13 00 00 [13:46:00]Write to MH i2c: E2 08 00 AB 88 80 13 00 00 00 00 00 00 AF [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 62 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 62 00 AB 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B7 01 00 0E 04 04 00 88 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 04 [13:46:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B7 01 00 0E 04 04 00 88 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 [13:46:01]wFMCommunicate OK [13:46:01]SAM_PROTO_GetFieldsCounters done [13:46:01]requested_item shift.num is exist - process it [13:46:01]requested_item shift.opened is exist - process it [13:46:01]req_shift_opened [13:46:01]FM_GetShiftState [13:46:01]SAM_PROTO_GetShiftState [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 13 01 00 [13:46:01]Write to MH i2c: E2 08 00 AC 88 80 13 01 00 00 00 00 00 B1 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 0E 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 0E 00 AC 88 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CF [13:46:01]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:46:01]wFMCommunicate OK [13:46:01]SAM_PROTO_GetShiftState done [13:46:01]FM_GetShiftState done [13:46:01]req_shift_opened done [13:46:01]requested_item shift.open_date is exist - process it [13:46:01]req_shift_open_date [13:46:01]req_shift_open_date done [13:46:01]produce_requested_data done [13:46:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112520,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:46:01]process_action_free close_receipt [13:46:01]json_value_free [13:46:01]json_value_free done [13:46:01]process_json_proto returns [13:46:01]Send response to host [13:46:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112520,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:46:01]free response buf [13:46:01]execute_script done [13:46:01]execute_script returns [13:46:01]free content buf [13:46:01]Sock 7.Close socket [13:46:01]Sock 7.Thread stoped [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:57]accept exits with 9 [13:46:57]New connection [13:46:57]New thread 3066957156 created [13:46:57]Thread 3066813796 joined [13:46:57]Waiting for new connection... [13:46:57] Sock 9.Parse request [13:46:57]Sock 9.Check first char [13:46:57]Sock 9.First char is OK [13:46:57]request: POST /json_proto HTTP/1.0 [13:46:57]Method: POST [13:46:57]URL: /json_proto [13:46:57]Method is POST - this is cgi request [13:46:57]url: /json_proto [13:46:57]query_string will be loaded in cgi processing [13:46:57]execute_cgi json_proto POST (null) [13:46:57]execute_cgi path=json_proto method=POST [13:46:57]POST find Content-Length [13:46:57]Host: 172.17.59.68:8080 [13:46:57]Content-Length: 677 [13:46:57]Content-Type: application/json [13:46:57] [13:46:57]POST finish read [13:46:57]Found Content-Length = 677 [13:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:46:57]execute_script... [13:46:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:46:57]POST & json_proto [13:46:57]process_json_proto [13:46:57]json parsed OK: [13:46:57]protocol is kg_v1.0 [13:46:57]action value=close_receipt [13:46:57]process_action close_receipt [13:46:57]cmd_close_receipt [13:46:57]MH_GetDate [13:46:57]Write to MH i2c: F0 00 00 AD 88 24 [13:46:57]Write i2c OK [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: F0 [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: F0 09 00 [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: F0 09 00 AD 88 00 8B 27 78 66 BC EC 60 65 2A [13:46:57]GetLastDocTimeStamp 1719150415 [13:46:57]current date 1719150475 [13:46:57]FM_GetShiftState [13:46:57]SAM_PROTO_GetShiftState [13:46:57]wFMCommunicate request_size=4 [13:46:57]MH_SAM_APDU [13:46:57]CAPDU: 80 13 01 00 [13:46:57]Write to MH i2c: E2 08 00 AE 88 80 13 01 00 00 00 00 00 B3 [13:46:57]Write i2c OK [13:46:57]MH_I2C_Read... [13:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:57]Read from MH i2c: E2 [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: E2 0E 00 [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: E2 0E 00 AE 88 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D1 [13:46:57]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:46:57]wFMCommunicate OK [13:46:57]SAM_PROTO_GetShiftState done [13:46:57]FM_GetShiftState done [13:46:57]opened in 1719106490 [13:46:57]opened+sec_in_day 1719192890 [13:46:57]quantity*price = 50065 [13:46:57]sum+1 = 50067 [13:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 122 23.06.2024 13:47 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112521 ФПД: 230238287072813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134755&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112521&fm=230238287072813&tin=02508201610067®Number=0000000000092771&sum=50000 [13:46:58]StoreToDocumentArchive [13:46:58]shift 392 fd 112521 [13:46:58]save to /storage/0392/doc_00112521 [13:46:58]save last doc name /storage/0392/doc_00112521 to /storage/kkm_last_doc_name [13:46:58]save OK [13:46:58]Clear old archive folders... [13:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:58]tlvbuf is 01201340 [13:46:58]SAM_PROTO_ClearQueue [13:46:58]wFMCommunicate request_size=4 [13:46:58]MH_SAM_APDU [13:46:58]CAPDU: 80 09 00 00 [13:46:58]Write to MH i2c: E2 08 00 BB 88 80 09 00 00 00 00 00 00 B5 [13:46:58]Write i2c OK [13:46:58]MH_I2C_Read... [13:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:59]Read from MH i2c: E2 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 03 00 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 03 00 BB 88 00 90 00 B7 [13:46:59]RAPDU: 90 00 [13:46:59]wFMCommunicate OK [13:46:59]SAM_PROTO_ClearQueue done [13:46:59]KKMCreateOFDPacket [13:46:59]OFDProtocolAddRootSTLVToBuf [13:46:59]FM_MakeSignedData [13:46:59]FM_MakeSignedData [13:46:59]SAM_PROTO_SignData [13:46:59]wFMCommunicate request_size=4 [13:46:59]MH_SAM_APDU [13:46:59]CAPDU: 80 0D 01 02 [13:46:59]Write to MH i2c: E2 08 00 BC 88 80 0D 01 02 00 00 00 00 BD [13:46:59]Write i2c OK [13:46:59]MH_I2C_Read... [13:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:59]Read from MH i2c: E2 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 03 00 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 03 00 BC 88 00 90 00 B8 [13:46:59]RAPDU: 90 00 [13:46:59]wFMCommunicate OK [13:46:59]wFMCommunicate request_size=255 [13:46:59]MH_SAM_APDU [13:46:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 8B 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B7 01 00 35 04 06 00 D1 [13:46:59]Write to MH i2c: E2 02 01 BD 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 8B 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B7 01 00 35 04 06 00 D1 00 00 16 [13:46:59]Write i2c OK [13:46:59]MH_I2C_Read... [13:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:59]Read from MH i2c: E2 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 03 00 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 03 00 BD 88 00 90 00 B9 [13:46:59]RAPDU: 90 00 [13:46:59]wFMCommunicate OK [13:46:59]wFMCommunicate request_size=10 [13:46:59]MH_SAM_APDU [13:46:59]CAPDU: 80 0D 02 02 05 66 87 50 8E 2D [13:46:59]Write to MH i2c: E2 0D 00 BE 88 80 0D 02 02 05 00 66 87 50 8E 2D 00 00 C2 [13:46:59]Write i2c OK [13:46:59]MH_I2C_Read... [13:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:59]Read from MH i2c: E2 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 03 00 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 03 00 BE 88 00 90 00 BA [13:46:59]RAPDU: 90 00 [13:46:59]wFMCommunicate OK [13:46:59]wFMCommunicate request_size=4 [13:46:59]MH_SAM_APDU [13:46:59]CAPDU: 80 0D 03 02 [13:46:59]Write to MH i2c: E2 08 00 BF 88 80 0D 03 02 00 00 00 00 C2 [13:46:59]Write i2c OK [13:46:59]MH_I2C_Read... [13:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:59]Read from MH i2c: E2 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 0B 00 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 0B 00 BF 88 00 DD 38 A6 C2 6A B9 9D 02 90 00 02 [13:46:59]RAPDU: DD 38 A6 C2 6A B9 9D 02 90 00 [13:46:59]wFMCommunicate OK [13:46:59]SAM_PROTO_SignData done [13:46:59]FM_MakeSignedData done [13:46:59]CreateOFDProtocolMessage [13:46:59]wFMCommunicate request_size=4 [13:46:59]MH_SAM_APDU [13:46:59]CAPDU: 80 11 00 00 [13:46:59]Write to MH i2c: E2 08 00 C0 88 80 11 00 00 00 00 00 00 C2 [13:46:59]Write i2c OK [13:46:59]MH_I2C_Read... [13:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:59]Read from MH i2c: E2 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 17 00 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: E2 17 00 C0 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 14 [13:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:46:59]wFMCommunicate OK [13:46:59]CreateOFDProtocolMessage done [13:46:59]OFDSenderStorePacket 112521 [13:46:59]StoreOFDPacket docnum=112521 [13:46:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A8 63 07 01 7E 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 8B 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B7 01 00 35 04 06 00 D1 66 87 50 8E 2D DD 38 A6 C2 6A B9 9D 02 [13:46:59]CheckFolder [13:46:59]dirname=/storage/ofd_packets [13:46:59]CheckFolder done [13:46:59]ProducePacketName [13:46:59]name=ofd_packets/00112521 [13:46:59]NVStorageSaveData ofd_packets/00112521 [13:46:59]File name is /storage/ofd_packets/00112521 [13:46:59]Write 301 bytes [13:46:59]NVStorageSaveData done [13:46:59]OFDSenderStorePacket done [13:46:59]KKMCreateOFDPacket done [13:46:59]NVStorageSaveData kkm_last_timestamp [13:46:59]File name is /storage/kkm_last_timestamp [13:46:59]Write 4 bytes [13:46:59]NVStorageSaveData done [13:46:59]ExternCall_PrintAddStr [13:46:59]wPrintStart [13:46:59]Write to MH i2c: 01 00 00 C1 88 49 [13:46:59]Write i2c OK [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: 01 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: 01 07 00 [13:46:59]MH_I2C_Read... [13:46:59]Read from MH i2c: 01 07 00 C1 88 00 00 00 00 00 FF 0F 5E [13:46:59]RasterBufferAndPrint [13:46:59]line Счет N : (1)321202 [13:46:59]line ИНН: 02508201610067 [13:46:59]line Контрольно-Кассовый Чек [13:46:59]line ПРОДАЖА [13:46:59]line ТРК (МРК, ГНК) : 11 [13:46:59]line Товар: 2710124130 [13:46:59]line Аи-92-К-5 [13:46:59]line 7.540 * 66.40 [13:46:59]line = 500.66 [13:46:59]line НДС 12% НСП 1% [13:46:59]line > о реализуемом товаре [13:46:59]line ОКРУГЛЕНИЕ: -0.66 [13:46:59]line ИТОГО: 500.00 [13:46:59]line Внесено: 500.00 [13:46:59]line СДАЧА: 0.00 [13:46:59]line НСП 1% : 4.43 [13:46:59]line НДС 12% : 53.17 [13:46:59]line Наличными: 500.00 [13:46:59]line Безнал.: 0.00 [13:46:59]line Место: АЗС № 65 "Партнер Нефть" [13:46:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:46:59]line СНО: Общий режим [13:46:59]line Чек 122 23.06.2024 13:47 [13:46:59]line Смена: 392 ФФД: 1.0 [13:46:59]line ЗНМ: 0300000198 [13:46:59]line РНМ: 0000000000092771 [13:46:59]line Версия ККМ: 001 [13:46:59]line ФМ: 0000000000875083 [13:46:59]line ФД: 112521 [13:46:59]line ФПД: 230238287072813 [13:46:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T134755&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112521&fm=230238287072813&tin=02508201610067®Number=0000000000092771&sum=50000 [13:46:59]OFD Sender: Processing packet 112521 [packets to send 38, broken 37] [13:46:59]ProducePacketName [13:46:59]name=ofd_packets/00112521 [13:46:59]OFD Sender: To server: pG, [13:46:59]CommunicateWithHost lk.salyk.kg:30040 [13:46:59]ConnectInit lk.salyk.kg [13:46:59]written 0, free lines is 4095 [13:46:59]Connected sock=10 [13:46:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A8 63 07 01 7E 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 00 00 00 F4 03 04 00 8B 27 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B7 01 00 35 04 06 00 D1 66 87 50 8E 2D DD 38 A6 C2 6A B9 9D 02 [13:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7E FE 47 00 FE C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B7 01 00 F4 03 04 00 77 BE 77 66 B6 04 01 00 00 89 43 5B CF 1A 19 E3 42 [13:47:00]CommunicateWithHost err = 0 [13:47:00]CheckOFDResponse [13:47:00]1017 (14) - 77093643461234 [13:47:00]1041 (16) - 0000000000875083 [13:47:00]1040 (4) - 112521 [13:47:00]1012 (4) - 23.06.2024 06:19 [13:47:00]1206 (1) - 0 [13:47:00]OFD Sender: Remove packet 112521 [13:47:00]ProducePacketName [13:47:00]name=ofd_packets/00112521 [13:47:00]NVStorageDeleteData [13:47:00]Write to MH i2c: 01 00 00 EC 88 74 [13:47:00]Write i2c OK [13:47:00]MH_I2C_Read... [13:47:00]Read from MH i2c: 01 [13:47:00]MH_I2C_Read... [13:47:00]Read from MH i2c: 01 07 00 [13:47:00]MH_I2C_Read... [13:47:00]Read from MH i2c: 01 07 00 EC 88 00 00 00 00 00 D0 0C 57 [13:47:00]RasterBufferAndPrint [13:47:00]line [13:47:00]line [13:47:00]line [13:47:00]line [13:47:00]line [13:47:00]written 0, free lines is 3287 [13:47:00]MH_Cut [13:47:00]Write to MH i2c: D1 01 00 F3 88 01 4D [13:47:00]Write i2c OK [13:47:00]MH_I2C_Read... [13:47:00]Read from MH i2c: D1 [13:47:00]MH_I2C_Read... [13:47:00]Read from MH i2c: D1 01 00 [13:47:00]MH_I2C_Read... [13:47:00]Read from MH i2c: D1 01 00 F3 88 00 4C [13:47:00]Write to MH i2c: 01 00 00 F4 88 7C [13:47:00]Write i2c OK [13:47:00]MH_I2C_Read... [13:47:00]OFD Sender: No OFD packet to send [13:47:01]*** Cut start [13:47:01]*** Partial cut [13:47:01]*** CUTSNS_PIN = 1 [13:47:01]*** CUTSNS_PIN = 0 [13:47:01]*** Brake cut motor [13:47:01]Read from MH i2c: 01 [13:47:01]MH_I2C_Read... [13:47:01]*** Stop cut motor [13:47:01]*** Cut end [13:47:01]Read from MH i2c: 01 07 00 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: 01 07 00 F4 88 00 00 00 00 00 FF 0F 91 [13:47:01]process_action close_receipt done [13:47:01]requested_data is exist [13:47:01]produce_requested_data [13:47:01]requested_item fm.sn is exist - process it [13:47:01]wFMCommunicate request_size=4 [13:47:01]MH_SAM_APDU [13:47:01]CAPDU: 80 11 00 00 [13:47:01]Write to MH i2c: E2 08 00 F5 88 80 11 00 00 00 00 00 00 F7 [13:47:01]Write i2c OK [13:47:01]MH_I2C_Read... [13:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:01]Read from MH i2c: E2 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: E2 17 00 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: E2 17 00 F5 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 49 [13:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:47:01]wFMCommunicate OK [13:47:01]requested_item fd.num is exist - process it [13:47:01]SAM_PROTO_GetFieldsCounters [13:47:01]wFMCommunicate request_size=4 [13:47:01]MH_SAM_APDU [13:47:01]CAPDU: 80 13 00 00 [13:47:01]Write to MH i2c: E2 08 00 F6 88 80 13 00 00 00 00 00 00 FA [13:47:01]Write i2c OK [13:47:01]MH_I2C_Read... [13:47:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:01]Read from MH i2c: E2 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: E2 62 00 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: E2 62 00 F6 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 89 B7 01 00 0E 04 04 00 88 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 53 [13:47:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 89 B7 01 00 0E 04 04 00 88 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 [13:47:01]wFMCommunicate OK [13:47:01]SAM_PROTO_GetFieldsCounters done [13:47:01]requested_item shift.num is exist - process it [13:47:01]requested_item shift.opened is exist - process it [13:47:01]req_shift_opened [13:47:01]FM_GetShiftState [13:47:01]SAM_PROTO_GetShiftState [13:47:01]wFMCommunicate request_size=4 [13:47:01]MH_SAM_APDU [13:47:01]CAPDU: 80 13 01 00 [13:47:01]Write to MH i2c: E2 08 00 F7 88 80 13 01 00 00 00 00 00 FC [13:47:01]Write i2c OK [13:47:01]MH_I2C_Read... [13:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:01]Read from MH i2c: E2 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: E2 0E 00 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: E2 0E 00 F7 88 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 1A [13:47:01]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:47:01]wFMCommunicate OK [13:47:01]SAM_PROTO_GetShiftState done [13:47:01]FM_GetShiftState done [13:47:01]req_shift_opened done [13:47:01]requested_item shift.open_date is exist - process it [13:47:01]req_shift_open_date [13:47:01]req_shift_open_date done [13:47:01]produce_requested_data done [13:47:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112521,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:47:01]process_action_free close_receipt [13:47:01]json_value_free [13:47:01]json_value_free done [13:47:01]process_json_proto returns [13:47:01]Send response to host [13:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112521,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:47:01]free response buf [13:47:01]execute_script done [13:47:01]execute_script returns [13:47:01]free content buf [13:47:01]Sock 9.Close socket [13:47:01]Sock 9.Thread stoped [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:12]accept exits with 7 [13:49:12]New connection [13:49:12]New thread 3066813796 created [13:49:12]Thread 3066957156 joined [13:49:12]Waiting for new connection... [13:49:12] Sock 7.Parse request [13:49:12]Sock 7.Check first char [13:49:12]Sock 7.First char is OK [13:49:12]request: POST /json_proto HTTP/1.0 [13:49:12]Method: POST [13:49:12]URL: /json_proto [13:49:12]Method is POST - this is cgi request [13:49:12]url: /json_proto [13:49:12]query_string will be loaded in cgi processing [13:49:12]execute_cgi json_proto POST (null) [13:49:12]execute_cgi path=json_proto method=POST [13:49:12]POST find Content-Length [13:49:12]Host: 172.17.59.68:8080 [13:49:12]Content-Length: 679 [13:49:12]Content-Type: application/json [13:49:12] [13:49:12]POST finish read [13:49:12]Found Content-Length = 679 [13:49:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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:49:12]execute_script... [13:49:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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:49:12]POST & json_proto [13:49:12]process_json_proto [13:49:12]json parsed OK: [13:49:12]protocol is kg_v1.0 [13:49:12]action value=close_receipt [13:49:12]process_action close_receipt [13:49:12]cmd_close_receipt [13:49:12]MH_GetDate [13:49:12]Write to MH i2c: F0 00 00 F8 88 6F [13:49:12]Write i2c OK [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: F0 [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: F0 09 00 [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: F0 09 00 F8 88 00 12 28 78 66 BC EC 60 65 FD [13:49:12]GetLastDocTimeStamp 1719150475 [13:49:12]current date 1719150610 [13:49:12]FM_GetShiftState [13:49:12]SAM_PROTO_GetShiftState [13:49:12]wFMCommunicate request_size=4 [13:49:12]MH_SAM_APDU [13:49:12]CAPDU: 80 13 01 00 [13:49:12]Write to MH i2c: E2 08 00 F9 88 80 13 01 00 00 00 00 00 FE [13:49:12]Write i2c OK [13:49:12]MH_I2C_Read... [13:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:12]Read from MH i2c: E2 [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: E2 0E 00 [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: E2 0E 00 F9 88 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 1C [13:49:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:49:12]wFMCommunicate OK [13:49:12]SAM_PROTO_GetShiftState done [13:49:12]FM_GetShiftState done [13:49:12]opened in 1719106490 [13:49:12]opened+sec_in_day 1719192890 [13:49:12]quantity*price = 200037 [13:49:12]sum+1 = 200039 [13:49:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 123 23.06.2024 13:50 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112522 ФПД: 23377407381522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135010&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112522&fm=23377407381522&tin=02508201610067®Number=0000000000092771&sum=200000 [13:49:13]StoreToDocumentArchive [13:49:13]shift 392 fd 112522 [13:49:13]save to /storage/0392/doc_00112522 [13:49:13]save last doc name /storage/0392/doc_00112522 to /storage/kkm_last_doc_name [13:49:13]save OK [13:49:13]Clear old archive folders... [13:49:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:49:13]tlvbuf is 0131BE90 [13:49:13]SAM_PROTO_ClearQueue [13:49:13]wFMCommunicate request_size=4 [13:49:13]MH_SAM_APDU [13:49:13]CAPDU: 80 09 00 00 [13:49:13]Write to MH i2c: E2 08 00 06 89 80 09 00 00 00 00 00 00 01 [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 06 89 00 90 00 03 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]SAM_PROTO_ClearQueue done [13:49:14]KKMCreateOFDPacket [13:49:14]OFDProtocolAddRootSTLVToBuf [13:49:14]FM_MakeSignedData [13:49:14]FM_MakeSignedData [13:49:14]SAM_PROTO_SignData [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 01 02 [13:49:14]Write to MH i2c: E2 08 00 07 89 80 0D 01 02 00 00 00 00 09 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 07 89 00 90 00 04 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=255 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 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 7B 00 00 00 F4 03 04 00 12 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B7 01 00 35 04 06 00 15 42 FA 10 [13:49:14]Write to MH i2c: E2 02 01 08 89 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 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 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 7B 00 00 00 F4 03 04 00 12 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B7 01 00 35 04 06 00 15 42 FA 10 00 00 A9 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 08 89 00 90 00 05 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=7 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 02 02 02 10 12 [13:49:14]Write to MH i2c: E2 0A 00 09 89 80 0D 02 02 02 00 10 12 00 00 32 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 09 89 00 90 00 06 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 03 02 [13:49:14]Write to MH i2c: E2 08 00 0A 89 80 0D 03 02 00 00 00 00 0E [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 0B 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 0B 00 0A 89 00 78 DA 13 DB 40 87 58 61 90 00 CF [13:49:14]RAPDU: 78 DA 13 DB 40 87 58 61 90 00 [13:49:14]wFMCommunicate OK [13:49:14]SAM_PROTO_SignData done [13:49:14]FM_MakeSignedData done [13:49:14]CreateOFDProtocolMessage [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 11 00 00 [13:49:14]Write to MH i2c: E2 08 00 0B 89 80 11 00 00 00 00 00 00 0E [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 17 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 17 00 0B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 60 [13:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:49:14]wFMCommunicate OK [13:49:14]CreateOFDProtocolMessage done [13:49:14]OFDSenderStorePacket 112522 [13:49:14]StoreOFDPacket docnum=112522 [13:49:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 2B 4F 04 01 1D 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 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 7B 00 00 00 F4 03 04 00 12 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B7 01 00 35 04 06 00 15 42 FA 10 10 12 78 DA 13 DB 40 87 58 61 [13:49:14]CheckFolder [13:49:14]dirname=/storage/ofd_packets [13:49:14]CheckFolder done [13:49:14]ProducePacketName [13:49:14]name=ofd_packets/00112522 [13:49:14]NVStorageSaveData ofd_packets/00112522 [13:49:14]File name is /storage/ofd_packets/00112522 [13:49:14]Write 298 bytes [13:49:14]NVStorageSaveData done [13:49:14]OFDSenderStorePacket done [13:49:14]KKMCreateOFDPacket done [13:49:14]NVStorageSaveData kkm_last_timestamp [13:49:14]File name is /storage/kkm_last_timestamp [13:49:14]Write 4 bytes [13:49:14]NVStorageSaveData done [13:49:14]ExternCall_PrintAddStr [13:49:14]wPrintStart [13:49:14]Write to MH i2c: 01 00 00 0C 89 95 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 07 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 07 00 0C 89 00 00 00 00 00 FF 0F AA [13:49:14]RasterBufferAndPrint [13:49:14]line Счет N : (1)321203 [13:49:14]line ИНН: 02508201610067 [13:49:14]line Контрольно-Кассовый Чек [13:49:14]line ПРОДАЖА [13:49:14]line ТРК (МРК, ГНК) : 22 [13:49:14]line Товар: 2710194210 [13:49:14]line ДТ-К-5 [13:49:14]line 27.440 * 72.90 [13:49:14]line = 2000.38 [13:49:14]line НДС 12% НСП 1% [13:49:14]line > о реализуемом товаре [13:49:14]line ОКРУГЛЕНИЕ: -0.38 [13:49:14]line ИТОГО: 2000.00 [13:49:14]line Внесено: 2000.00 [13:49:14]line СДАЧА: 0.00 [13:49:14]line НСП 1% : 17.70 [13:49:14]line НДС 12% : 212.43 [13:49:14]line Наличными: 2000.00 [13:49:14]line Безнал.: 0.00 [13:49:14]line Место: АЗС № 65 "Партнер Нефть" [13:49:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:49:14]line СНО: Общий режим [13:49:14]line Чек 123 23.06.2024 13:50 [13:49:14]line Смена: 392 ФФД: 1.0 [13:49:14]line ЗНМ: 0300000198 [13:49:14]line РНМ: 0000000000092771 [13:49:14]line Версия ККМ: 001 [13:49:14]line ФМ: 0000000000875083 [13:49:14]line ФД: 112522 [13:49:14]line ФПД: 23377407381522 [13:49:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135010&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112522&fm=23377407381522&tin=02508201610067®Number=0000000000092771&sum=200000 [13:49:14]OFD Sender: Processing packet 112522 [packets to send 38, broken 37] [13:49:14]ProducePacketName [13:49:14]name=ofd_packets/00112522 [13:49:14]OFD Sender: To server: pG, [13:49:14]CommunicateWithHost lk.salyk.kg:30040 [13:49:14]ConnectInit lk.salyk.kg [13:49:14]written 0, free lines is 4095 [13:49:14]Connected sock=10 [13:49:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 2B 4F 04 01 1D 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 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 7B 00 00 00 F4 03 04 00 12 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B7 01 00 35 04 06 00 15 42 FA 10 10 12 78 DA 13 DB 40 87 58 61 [13:49:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 67 39 47 00 39 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B7 01 00 F4 03 04 00 FE BE 77 66 B6 04 01 00 00 5D FA EB 8B BF B2 BD 1A [13:49:15]CommunicateWithHost err = 0 [13:49:15]CheckOFDResponse [13:49:15]1017 (14) - 77093643461234 [13:49:15]1041 (16) - 0000000000875083 [13:49:15]1040 (4) - 112522 [13:49:15]1012 (4) - 23.06.2024 06:21 [13:49:15]1206 (1) - 0 [13:49:15]OFD Sender: Remove packet 112522 [13:49:15]ProducePacketName [13:49:15]name=ofd_packets/00112522 [13:49:15]NVStorageDeleteData [13:49:15]Write to MH i2c: 01 00 00 37 89 C0 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 37 89 00 00 00 00 00 D1 0C A4 [13:49:15]RasterBufferAndPrint [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]written 0, free lines is 3288 [13:49:15]MH_Cut [13:49:15]Write to MH i2c: D1 01 00 3E 89 01 99 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 01 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 01 00 3E 89 00 98 [13:49:15]Write to MH i2c: 01 00 00 3F 89 C8 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]OFD Sender: No OFD packet to send [13:49:16]*** Cut start [13:49:16]*** Partial cut [13:49:16]*** CUTSNS_PIN = 1 [13:49:16]*** CUTSNS_PIN = 0 [13:49:16]*** Brake cut motor [13:49:16]Read from MH i2c: 01 [13:49:16]MH_I2C_Read... [13:49:16]*** Stop cut motor [13:49:16]*** Cut end [13:49:16]Read from MH i2c: 01 07 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: 01 07 00 3F 89 00 00 00 00 00 FF 0F DD [13:49:16]process_action close_receipt done [13:49:16]requested_data is exist [13:49:16]produce_requested_data [13:49:16]requested_item fm.sn is exist - process it [13:49:16]wFMCommunicate request_size=4 [13:49:16]MH_SAM_APDU [13:49:16]CAPDU: 80 11 00 00 [13:49:16]Write to MH i2c: E2 08 00 40 89 80 11 00 00 00 00 00 00 43 [13:49:16]Write i2c OK [13:49:16]MH_I2C_Read... [13:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:16]Read from MH i2c: E2 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 17 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 17 00 40 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [13:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:49:16]wFMCommunicate OK [13:49:16]requested_item fd.num is exist - process it [13:49:16]SAM_PROTO_GetFieldsCounters [13:49:16]wFMCommunicate request_size=4 [13:49:16]MH_SAM_APDU [13:49:16]CAPDU: 80 13 00 00 [13:49:16]Write to MH i2c: E2 08 00 41 89 80 13 00 00 00 00 00 00 46 [13:49:16]Write i2c OK [13:49:16]MH_I2C_Read... [13:49:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:16]Read from MH i2c: E2 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 62 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 62 00 41 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8A B7 01 00 0E 04 04 00 88 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 A3 [13:49:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8A B7 01 00 0E 04 04 00 88 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 [13:49:16]wFMCommunicate OK [13:49:16]SAM_PROTO_GetFieldsCounters done [13:49:16]requested_item shift.num is exist - process it [13:49:16]requested_item shift.opened is exist - process it [13:49:16]req_shift_opened [13:49:16]FM_GetShiftState [13:49:16]SAM_PROTO_GetShiftState [13:49:16]wFMCommunicate request_size=4 [13:49:16]MH_SAM_APDU [13:49:16]CAPDU: 80 13 01 00 [13:49:16]Write to MH i2c: E2 08 00 42 89 80 13 01 00 00 00 00 00 48 [13:49:16]Write i2c OK [13:49:16]MH_I2C_Read... [13:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:16]Read from MH i2c: E2 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 0E 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 0E 00 42 89 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 66 [13:49:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:49:16]wFMCommunicate OK [13:49:16]SAM_PROTO_GetShiftState done [13:49:16]FM_GetShiftState done [13:49:16]req_shift_opened done [13:49:16]requested_item shift.open_date is exist - process it [13:49:16]req_shift_open_date [13:49:16]req_shift_open_date done [13:49:16]produce_requested_data done [13:49:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112522,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:49:16]process_action_free close_receipt [13:49:16]json_value_free [13:49:16]json_value_free done [13:49:16]process_json_proto returns [13:49:16]Send response to host [13:49:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112522,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:49:16]free response buf [13:49:16]execute_script done [13:49:16]execute_script returns [13:49:16]free content buf [13:49:16]Sock 7.Close socket [13:49:16]Sock 7.Thread stoped [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:25]accept exits with 9 [13:49:25]New connection [13:49:25]New thread 3066957156 created [13:49:25]Thread 3066813796 joined [13:49:25]Waiting for new connection... [13:49:25] Sock 9.Parse request [13:49:25]Sock 9.Check first char [13:49:25]Sock 9.First char is OK [13:49:25]request: POST /json_proto HTTP/1.0 [13:49:25]Method: POST [13:49:25]URL: /json_proto [13:49:25]Method is POST - this is cgi request [13:49:25]url: /json_proto [13:49:25]query_string will be loaded in cgi processing [13:49:25]execute_cgi json_proto POST (null) [13:49:25]execute_cgi path=json_proto method=POST [13:49:25]POST find Content-Length [13:49:25]Host: 172.17.59.68:8080 [13:49:25]Content-Length: 682 [13:49:25]Content-Type: application/json [13:49:25] [13:49:25]POST finish read [13:49:25]Found Content-Length = 682 [13:49:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:25]execute_script... [13:49: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)321204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:25]POST & json_proto [13:49:25]process_json_proto [13:49:25]json parsed OK: [13:49:25]protocol is kg_v1.0 [13:49:25]action value=close_receipt [13:49:25]process_action close_receipt [13:49:25]cmd_close_receipt [13:49:25]MH_GetDate [13:49:25]Write to MH i2c: F0 00 00 43 89 BB [13:49:25]Write i2c OK [13:49:25]MH_I2C_Read... [13:49:25]Read from MH i2c: F0 [13:49:25]MH_I2C_Read... [13:49:25]Read from MH i2c: F0 09 00 [13:49:25]MH_I2C_Read... [13:49:25]Read from MH i2c: F0 09 00 43 89 00 1F 28 78 66 BC EC 60 65 56 [13:49:25]GetLastDocTimeStamp 1719150610 [13:49:25]current date 1719150623 [13:49:25]FM_GetShiftState [13:49:25]SAM_PROTO_GetShiftState [13:49:25]wFMCommunicate request_size=4 [13:49:25]MH_SAM_APDU [13:49:25]CAPDU: 80 13 01 00 [13:49:25]Write to MH i2c: E2 08 00 44 89 80 13 01 00 00 00 00 00 4A [13:49:25]Write i2c OK [13:49:25]MH_I2C_Read... [13:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:25]Read from MH i2c: E2 [13:49:25]MH_I2C_Read... [13:49:25]Read from MH i2c: E2 0E 00 [13:49:25]MH_I2C_Read... [13:49:25]Read from MH i2c: E2 0E 00 44 89 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 68 [13:49:25]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:49:25]wFMCommunicate OK [13:49:25]SAM_PROTO_GetShiftState done [13:49:25]FM_GetShiftState done [13:49:25]opened in 1719106490 [13:49:25]opened+sec_in_day 1719192890 [13:49:25]quantity*price = 100064 [13:49:25]sum+1 = 100066 [13:49:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 124 23.06.2024 13:50 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112523 ФПД: 146375337859776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135023&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112523&fm=146375337859776&tin=02508201610067®Number=0000000000092771&sum=100000 [13:49:26]StoreToDocumentArchive [13:49:26]shift 392 fd 112523 [13:49:26]save to /storage/0392/doc_00112523 [13:49:26]save last doc name /storage/0392/doc_00112523 to /storage/kkm_last_doc_name [13:49:26]save OK [13:49:26]Clear old archive folders... [13:49:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:26]tlvbuf is 013228F0 [13:49:26]SAM_PROTO_ClearQueue [13:49:26]wFMCommunicate request_size=4 [13:49:26]MH_SAM_APDU [13:49:26]CAPDU: 80 09 00 00 [13:49:26]Write to MH i2c: E2 08 00 51 89 80 09 00 00 00 00 00 00 4C [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 51 89 00 90 00 4E [13:49:27]RAPDU: 90 00 [13:49:27]wFMCommunicate OK [13:49:27]SAM_PROTO_ClearQueue done [13:49:27]KKMCreateOFDPacket [13:49:27]OFDProtocolAddRootSTLVToBuf [13:49:27]FM_MakeSignedData [13:49:27]FM_MakeSignedData [13:49:27]SAM_PROTO_SignData [13:49:27]wFMCommunicate request_size=4 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 0D 01 02 [13:49:27]Write to MH i2c: E2 08 00 52 89 80 0D 01 02 00 00 00 00 54 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 52 89 00 90 00 4F [13:49:27]RAPDU: 90 00 [13:49:27]wFMCommunicate OK [13:49:27]wFMCommunicate request_size=255 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 1F 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B7 01 00 35 04 06 00 85 [13:49:27]Write to MH i2c: E2 02 01 53 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 1F 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B7 01 00 35 04 06 00 85 00 00 4A [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 53 89 00 90 00 50 [13:49:27]RAPDU: 90 00 [13:49:27]wFMCommunicate OK [13:49:27]wFMCommunicate request_size=10 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 0D 02 02 05 20 AA 04 5A C0 [13:49:27]Write to MH i2c: E2 0D 00 54 89 80 0D 02 02 05 00 20 AA 04 5A C0 00 00 49 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 54 89 00 90 00 51 [13:49:27]RAPDU: 90 00 [13:49:27]wFMCommunicate OK [13:49:27]wFMCommunicate request_size=4 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 0D 03 02 [13:49:27]Write to MH i2c: E2 08 00 55 89 80 0D 03 02 00 00 00 00 59 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 0B 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 0B 00 55 89 00 BA A4 66 E0 73 A1 EC 94 90 00 92 [13:49:27]RAPDU: BA A4 66 E0 73 A1 EC 94 90 00 [13:49:27]wFMCommunicate OK [13:49:27]SAM_PROTO_SignData done [13:49:27]FM_MakeSignedData done [13:49:27]CreateOFDProtocolMessage [13:49:27]wFMCommunicate request_size=4 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 11 00 00 [13:49:27]Write to MH i2c: E2 08 00 56 89 80 11 00 00 00 00 00 00 59 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 17 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 17 00 56 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AB [13:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:49:27]wFMCommunicate OK [13:49:27]CreateOFDProtocolMessage done [13:49:27]OFDSenderStorePacket 112523 [13:49:27]StoreOFDPacket docnum=112523 [13:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3A 89 07 01 74 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 1F 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B7 01 00 35 04 06 00 85 20 AA 04 5A C0 BA A4 66 E0 73 A1 EC 94 [13:49:27]CheckFolder [13:49:27]dirname=/storage/ofd_packets [13:49:27]CheckFolder done [13:49:27]ProducePacketName [13:49:27]name=ofd_packets/00112523 [13:49:27]NVStorageSaveData ofd_packets/00112523 [13:49:27]File name is /storage/ofd_packets/00112523 [13:49:27]Write 301 bytes [13:49:27]NVStorageSaveData done [13:49:27]OFDSenderStorePacket done [13:49:27]KKMCreateOFDPacket done [13:49:27]NVStorageSaveData kkm_last_timestamp [13:49:27]File name is /storage/kkm_last_timestamp [13:49:27]Write 4 bytes [13:49:27]NVStorageSaveData done [13:49:27]ExternCall_PrintAddStr [13:49:27]wPrintStart [13:49:27]Write to MH i2c: 01 00 00 57 89 E0 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 07 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 07 00 57 89 00 00 00 00 00 FF 0F F5 [13:49:27]RasterBufferAndPrint [13:49:27]line Счет N : (1)321204 [13:49:27]line ИНН: 02508201610067 [13:49:27]line Контрольно-Кассовый Чек [13:49:27]line ПРОДАЖА [13:49:27]line ТРК (МРК, ГНК) : 11 [13:49:27]line Товар: 2710124130 [13:49:27]line Аи-92-К-5 [13:49:27]line 15.070 * 66.40 [13:49:27]line = 1000.65 [13:49:27]line НДС 12% НСП 1% [13:49:27]line > о реализуемом товаре [13:49:27]line ОКРУГЛЕНИЕ: -0.65 [13:49:27]line ИТОГО: 1000.00 [13:49:27]line Внесено: 1000.00 [13:49:27]line СДАЧА: 0.00 [13:49:27]line НСП 1% : 8.85 [13:49:27]line НДС 12% : 106.26 [13:49:27]line Наличными: 1000.00 [13:49:27]line Безнал.: 0.00 [13:49:27]line Место: АЗС № 65 "Партнер Нефть" [13:49:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:49:27]line СНО: Общий режим [13:49:27]line Чек 124 23.06.2024 13:50 [13:49:27]line Смена: 392 ФФД: 1.0 [13:49:27]line ЗНМ: 0300000198 [13:49:27]line РНМ: 0000000000092771 [13:49:27]line Версия ККМ: 001 [13:49:27]line ФМ: 0000000000875083 [13:49:27]line ФД: 112523 [13:49:27]line ФПД: 146375337859776 [13:49:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135023&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112523&fm=146375337859776&tin=02508201610067®Number=0000000000092771&sum=100000 [13:49:27]written 0, free lines is 4095 [13:49:27]OFD Sender: Processing packet 112523 [packets to send 38, broken 37] [13:49:27]ProducePacketName [13:49:27]name=ofd_packets/00112523 [13:49:27]OFD Sender: To server: pG, [13:49:27]CommunicateWithHost lk.salyk.kg:30040 [13:49:27]ConnectInit lk.salyk.kg [13:49:27]Connected sock=10 [13:49:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3A 89 07 01 74 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 1F 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B7 01 00 35 04 06 00 85 20 AA 04 5A C0 BA A4 66 E0 73 A1 EC 94 [13:49:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 81 E9 47 00 52 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B7 01 00 F4 03 04 00 0B BF 77 66 B6 04 01 00 00 7A 1C C8 0A E4 6D D4 2B [13:49:27]CommunicateWithHost err = 0 [13:49:27]CheckOFDResponse [13:49:27]1017 (14) - 77093643461234 [13:49:27]1041 (16) - 0000000000875083 [13:49:27]1040 (4) - 112523 [13:49:27]1012 (4) - 23.06.2024 06:22 [13:49:27]1206 (1) - 0 [13:49:27]OFD Sender: Remove packet 112523 [13:49:27]ProducePacketName [13:49:27]name=ofd_packets/00112523 [13:49:27]NVStorageDeleteData [13:49:27]Write to MH i2c: 01 00 00 82 89 0B [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 [13:49:27]MH_I2C_Read... [13:49:28]Read from MH i2c: 01 07 00 [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: 01 07 00 82 89 00 00 00 00 00 E4 0C 02 [13:49:28]RasterBufferAndPrint [13:49:28]line [13:49:28]line [13:49:28]line [13:49:28]line [13:49:28]line [13:49:28]written 0, free lines is 3309 [13:49:28]MH_Cut [13:49:28]Write to MH i2c: D1 01 00 89 89 01 E4 [13:49:28]Write i2c OK [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: D1 [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: D1 01 00 [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: D1 01 00 89 89 00 E3 [13:49:28]Write to MH i2c: 01 00 00 8A 89 13 [13:49:28]Write i2c OK [13:49:28]MH_I2C_Read... [13:49:28]OFD Sender: No OFD packet to send [13:49:28]*** Cut start [13:49:28]*** Partial cut [13:49:28]*** CUTSNS_PIN = 1 [13:49:28]*** CUTSNS_PIN = 0 [13:49:28]*** Brake cut motor [13:49:29]Read from MH i2c: 01 [13:49:29]MH_I2C_Read... [13:49:29]*** Stop cut motor [13:49:29]*** Cut end [13:49:29]Read from MH i2c: 01 07 00 [13:49:29]MH_I2C_Read... [13:49:29]Read from MH i2c: 01 07 00 8A 89 00 00 00 00 00 FF 0F 28 [13:49:29]process_action close_receipt done [13:49:29]requested_data is exist [13:49:29]produce_requested_data [13:49:29]requested_item fm.sn is exist - process it [13:49:29]wFMCommunicate request_size=4 [13:49:29]MH_SAM_APDU [13:49:29]CAPDU: 80 11 00 00 [13:49:29]Write to MH i2c: E2 08 00 8B 89 80 11 00 00 00 00 00 00 8E [13:49:29]Write i2c OK [13:49:29]MH_I2C_Read... [13:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:29]Read from MH i2c: E2 [13:49:29]MH_I2C_Read... [13:49:29]Read from MH i2c: E2 17 00 [13:49:29]MH_I2C_Read... [13:49:29]Read from MH i2c: E2 17 00 8B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [13:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:49:29]wFMCommunicate OK [13:49:29]requested_item fd.num is exist - process it [13:49:29]SAM_PROTO_GetFieldsCounters [13:49:29]wFMCommunicate request_size=4 [13:49:29]MH_SAM_APDU [13:49:29]CAPDU: 80 13 00 00 [13:49:29]Write to MH i2c: E2 08 00 8C 89 80 13 00 00 00 00 00 00 91 [13:49:29]Write i2c OK [13:49:29]MH_I2C_Read... [13:49:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:29]Read from MH i2c: E2 [13:49:29]MH_I2C_Read... [13:49:29]Read from MH i2c: E2 62 00 [13:49:29]MH_I2C_Read... [13:49:29]Read from MH i2c: E2 62 00 8C 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8B B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [13:49:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8B B7 01 00 0E 04 04 00 88 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 [13:49:29]wFMCommunicate OK [13:49:29]SAM_PROTO_GetFieldsCounters done [13:49:29]requested_item shift.num is exist - process it [13:49:29]requested_item shift.opened is exist - process it [13:49:29]req_shift_opened [13:49:29]FM_GetShiftState [13:49:29]SAM_PROTO_GetShiftState [13:49:29]wFMCommunicate request_size=4 [13:49:29]MH_SAM_APDU [13:49:29]CAPDU: 80 13 01 00 [13:49:29]Write to MH i2c: E2 08 00 8D 89 80 13 01 00 00 00 00 00 93 [13:49:29]Write i2c OK [13:49:29]MH_I2C_Read... [13:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:29]Read from MH i2c: E2 [13:49:29]MH_I2C_Read... [13:49:29]Read from MH i2c: E2 0E 00 [13:49:29]MH_I2C_Read... [13:49:29]Read from MH i2c: E2 0E 00 8D 89 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B1 [13:49:29]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:49:29]wFMCommunicate OK [13:49:29]SAM_PROTO_GetShiftState done [13:49:29]FM_GetShiftState done [13:49:29]req_shift_opened done [13:49:29]requested_item shift.open_date is exist - process it [13:49:29]req_shift_open_date [13:49:29]req_shift_open_date done [13:49:29]produce_requested_data done [13:49:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112523,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:49:29]process_action_free close_receipt [13:49:29]json_value_free [13:49:29]json_value_free done [13:49:29]process_json_proto returns [13:49:29]Send response to host [13:49:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112523,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:49:29]free response buf [13:49:29]execute_script done [13:49:29]execute_script returns [13:49:29]free content buf [13:49:29]Sock 9.Close socket [13:49:29]Sock 9.Thread stoped [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]accept exits with 7 [13:51:23]New connection [13:51:23]New thread 3066813796 created [13:51:23]Thread 3066957156 joined [13:51:23]Waiting for new connection... [13:51:23] Sock 7.Parse request [13:51:23]Sock 7.Check first char [13:51:23]Sock 7.First char is OK [13:51:23]request: POST /json_proto HTTP/1.0 [13:51:23]Method: POST [13:51:23]URL: /json_proto [13:51:23]Method is POST - this is cgi request [13:51:23]url: /json_proto [13:51:23]query_string will be loaded in cgi processing [13:51:23]execute_cgi json_proto POST (null) [13:51:23]execute_cgi path=json_proto method=POST [13:51:23]POST find Content-Length [13:51:23]Host: 172.17.59.68:8080 [13:51:23]Content-Length: 677 [13:51:23]Content-Type: application/json [13:51:23] [13:51:23]POST finish read [13:51:23]Found Content-Length = 677 [13:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [13:51:23]execute_script... [13:51: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)321206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [13:51:23]POST & json_proto [13:51:23]process_json_proto [13:51:23]json parsed OK: [13:51:23]protocol is kg_v1.0 [13:51:23]action value=close_receipt [13:51:23]process_action close_receipt [13:51:23]cmd_close_receipt [13:51:23]MH_GetDate [13:51:23]Write to MH i2c: F0 00 00 8E 89 06 [13:51:23]Write i2c OK [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: F0 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: F0 09 00 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: F0 09 00 8E 89 00 95 28 78 66 BC EC 60 65 17 [13:51:23]GetLastDocTimeStamp 1719150623 [13:51:23]current date 1719150741 [13:51:23]FM_GetShiftState [13:51:23]SAM_PROTO_GetShiftState [13:51:23]wFMCommunicate request_size=4 [13:51:23]MH_SAM_APDU [13:51:23]CAPDU: 80 13 01 00 [13:51:23]Write to MH i2c: E2 08 00 8F 89 80 13 01 00 00 00 00 00 95 [13:51:23]Write i2c OK [13:51:23]MH_I2C_Read... [13:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:23]Read from MH i2c: E2 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: E2 0E 00 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: E2 0E 00 8F 89 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B3 [13:51:23]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:51:23]wFMCommunicate OK [13:51:23]SAM_PROTO_GetShiftState done [13:51:23]FM_GetShiftState done [13:51:23]opened in 1719106490 [13:51:23]opened+sec_in_day 1719192890 [13:51:23]quantity*price = 40039 [13:51:23]sum+1 = 40040 [13:51:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 125 23.06.2024 13:52 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112524 ФПД: 151006678018591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135221&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112524&fm=151006678018591&tin=02508201610067®Number=0000000000092771&sum=40000 [13:51:24]StoreToDocumentArchive [13:51:24]shift 392 fd 112524 [13:51:24]save to /storage/0392/doc_00112524 [13:51:24]save last doc name /storage/0392/doc_00112524 to /storage/kkm_last_doc_name [13:51:24]save OK [13:51:24]Clear old archive folders... [13:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:24]tlvbuf is 011553D0 [13:51:24]SAM_PROTO_ClearQueue [13:51:24]wFMCommunicate request_size=4 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 09 00 00 [13:51:24]Write to MH i2c: E2 08 00 9C 89 80 09 00 00 00 00 00 00 97 [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 9C 89 00 90 00 99 [13:51:24]RAPDU: 90 00 [13:51:24]wFMCommunicate OK [13:51:24]SAM_PROTO_ClearQueue done [13:51:24]KKMCreateOFDPacket [13:51:24]OFDProtocolAddRootSTLVToBuf [13:51:24]FM_MakeSignedData [13:51:24]FM_MakeSignedData [13:51:24]SAM_PROTO_SignData [13:51:24]wFMCommunicate request_size=4 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 0D 01 02 [13:51:24]Write to MH i2c: E2 08 00 9D 89 80 0D 01 02 00 00 00 00 9F [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 9D 89 00 90 00 9A [13:51:24]RAPDU: 90 00 [13:51:24]wFMCommunicate OK [13:51:24]wFMCommunicate request_size=255 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 7D 00 00 00 F4 03 04 00 95 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B7 01 00 35 04 06 00 89 [13:51:24]Write to MH i2c: E2 02 01 9E 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 7D 00 00 00 F4 03 04 00 95 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B7 01 00 35 04 06 00 89 00 00 8F [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 9E 89 00 90 00 9B [13:51:24]RAPDU: 90 00 [13:51:24]wFMCommunicate OK [13:51:24]wFMCommunicate request_size=10 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 0D 02 02 05 56 FB 66 EA 1F [13:51:24]Write to MH i2c: E2 0D 00 9F 89 80 0D 02 02 05 00 56 FB 66 EA 1F 00 00 6C [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 9F 89 00 90 00 9C [13:51:24]RAPDU: 90 00 [13:51:24]wFMCommunicate OK [13:51:24]wFMCommunicate request_size=4 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 0D 03 02 [13:51:24]Write to MH i2c: E2 08 00 A0 89 80 0D 03 02 00 00 00 00 A4 [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:25]Read from MH i2c: E2 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 0B 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 0B 00 A0 89 00 03 AF 0E 74 89 F6 BF 95 90 00 AC [13:51:25]RAPDU: 03 AF 0E 74 89 F6 BF 95 90 00 [13:51:25]wFMCommunicate OK [13:51:25]SAM_PROTO_SignData done [13:51:25]FM_MakeSignedData done [13:51:25]CreateOFDProtocolMessage [13:51:25]wFMCommunicate request_size=4 [13:51:25]MH_SAM_APDU [13:51:25]CAPDU: 80 11 00 00 [13:51:25]Write to MH i2c: E2 08 00 A1 89 80 11 00 00 00 00 00 00 A4 [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:25]Read from MH i2c: E2 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 17 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 17 00 A1 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [13:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:25]wFMCommunicate OK [13:51:25]CreateOFDProtocolMessage done [13:51:25]OFDSenderStorePacket 112524 [13:51:25]StoreOFDPacket docnum=112524 [13:51:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 FD 07 01 0C E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 7D 00 00 00 F4 03 04 00 95 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B7 01 00 35 04 06 00 89 56 FB 66 EA 1F 03 AF 0E 74 89 F6 BF 95 [13:51:25]CheckFolder [13:51:25]dirname=/storage/ofd_packets [13:51:25]CheckFolder done [13:51:25]ProducePacketName [13:51:25]name=ofd_packets/00112524 [13:51:25]NVStorageSaveData ofd_packets/00112524 [13:51:25]File name is /storage/ofd_packets/00112524 [13:51:25]Write 301 bytes [13:51:25]NVStorageSaveData done [13:51:25]OFDSenderStorePacket done [13:51:25]KKMCreateOFDPacket done [13:51:25]NVStorageSaveData kkm_last_timestamp [13:51:25]File name is /storage/kkm_last_timestamp [13:51:25]Write 4 bytes [13:51:25]NVStorageSaveData done [13:51:25]ExternCall_PrintAddStr [13:51:25]wPrintStart [13:51:25]Write to MH i2c: 01 00 00 A2 89 2B [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 07 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 07 00 A2 89 00 00 00 00 00 FF 0F 40 [13:51:25]RasterBufferAndPrint [13:51:25]line Счет N : (1)321206 [13:51:25]line ИНН: 02508201610067 [13:51:25]line Контрольно-Кассовый Чек [13:51:25]line ПРОДАЖА [13:51:25]line ТРК (МРК, ГНК) : 11 [13:51:25]line Товар: 2710124130 [13:51:25]line Аи-92-К-5 [13:51:25]line 6.030 * 66.40 [13:51:25]line = 400.39 [13:51:25]line НДС 12% НСП 1% [13:51:25]line > о реализуемом товаре [13:51:25]line ОКРУГЛЕНИЕ: -0.39 [13:51:25]line ИТОГО: 400.00 [13:51:25]line Внесено: 400.00 [13:51:25]line СДАЧА: 0.00 [13:51:25]line НСП 1% : 3.54 [13:51:25]line НДС 12% : 42.52 [13:51:25]line Наличными: 400.00 [13:51:25]line Безнал.: 0.00 [13:51:25]line Место: АЗС № 65 "Партнер Нефть" [13:51:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:51:25]line СНО: Общий режим [13:51:25]line Чек 125 23.06.2024 13:52 [13:51:25]line Смена: 392 ФФД: 1.0 [13:51:25]line ЗНМ: 0300000198 [13:51:25]line РНМ: 0000000000092771 [13:51:25]line Версия ККМ: 001 [13:51:25]line ФМ: 0000000000875083 [13:51:25]line ФД: 112524 [13:51:25]line ФПД: 151006678018591 [13:51:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135221&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112524&fm=151006678018591&tin=02508201610067®Number=0000000000092771&sum=40000 [13:51:25]OFD Sender: Processing packet 112524 [packets to send 38, broken 37] [13:51:25]ProducePacketName [13:51:25]name=ofd_packets/00112524 [13:51:25]OFD Sender: To server: pG, [13:51:25]CommunicateWithHost lk.salyk.kg:30040 [13:51:25]ConnectInit lk.salyk.kg [13:51:25]written 0, free lines is 4095 [13:51:25]Connected sock=10 [13:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 FD 07 01 0C E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 7D 00 00 00 F4 03 04 00 95 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B7 01 00 35 04 06 00 89 56 FB 66 EA 1F 03 AF 0E 74 89 F6 BF 95 [13:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D 81 47 00 85 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B7 01 00 F4 03 04 00 81 BF 77 66 B6 04 01 00 00 D1 EB 72 3C E1 21 78 A0 [13:51:25]CommunicateWithHost err = 0 [13:51:25]CheckOFDResponse [13:51:25]1017 (14) - 77093643461234 [13:51:25]1041 (16) - 0000000000875083 [13:51:25]1040 (4) - 112524 [13:51:25]1012 (4) - 23.06.2024 06:24 [13:51:25]1206 (1) - 0 [13:51:25]OFD Sender: Remove packet 112524 [13:51:25]ProducePacketName [13:51:25]name=ofd_packets/00112524 [13:51:25]NVStorageDeleteData [13:51:25]Write to MH i2c: 01 00 00 CD 89 56 [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 07 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 07 00 CD 89 00 00 00 00 00 D5 0C 3E [13:51:25]RasterBufferAndPrint [13:51:25]line [13:51:25]line [13:51:25]line [13:51:25]line [13:51:25]line [13:51:25]written 0, free lines is 3293 [13:51:25]MH_Cut [13:51:25]Write to MH i2c: D1 01 00 D4 89 01 2F [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: D1 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: D1 01 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: D1 01 00 D4 89 00 2E [13:51:25]Write to MH i2c: 01 00 00 D5 89 5E [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:26]OFD Sender: No OFD packet to send [13:51:26]*** Cut start [13:51:26]*** Partial cut [13:51:26]*** CUTSNS_PIN = 1 [13:51:26]*** CUTSNS_PIN = 0 [13:51:26]*** Brake cut motor [13:51:27]Read from MH i2c: 01 [13:51:27]MH_I2C_Read... [13:51:27]*** Stop cut motor [13:51:27]*** Cut end [13:51:27]Read from MH i2c: 01 07 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: 01 07 00 D5 89 00 00 00 00 00 FF 0F 73 [13:51:27]process_action close_receipt done [13:51:27]requested_data is exist [13:51:27]produce_requested_data [13:51:27]requested_item fm.sn is exist - process it [13:51:27]wFMCommunicate request_size=4 [13:51:27]MH_SAM_APDU [13:51:27]CAPDU: 80 11 00 00 [13:51:27]Write to MH i2c: E2 08 00 D6 89 80 11 00 00 00 00 00 00 D9 [13:51:27]Write i2c OK [13:51:27]MH_I2C_Read... [13:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:27]Read from MH i2c: E2 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 17 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 17 00 D6 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2B [13:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:27]wFMCommunicate OK [13:51:27]requested_item fd.num is exist - process it [13:51:27]SAM_PROTO_GetFieldsCounters [13:51:27]wFMCommunicate request_size=4 [13:51:27]MH_SAM_APDU [13:51:27]CAPDU: 80 13 00 00 [13:51:27]Write to MH i2c: E2 08 00 D7 89 80 13 00 00 00 00 00 00 DC [13:51:27]Write i2c OK [13:51:27]MH_I2C_Read... [13:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:27]Read from MH i2c: E2 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 62 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 62 00 D7 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8C B7 01 00 0E 04 04 00 88 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 41 [13:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8C B7 01 00 0E 04 04 00 88 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 [13:51:27]wFMCommunicate OK [13:51:27]SAM_PROTO_GetFieldsCounters done [13:51:27]requested_item shift.num is exist - process it [13:51:27]requested_item shift.opened is exist - process it [13:51:27]req_shift_opened [13:51:27]FM_GetShiftState [13:51:27]SAM_PROTO_GetShiftState [13:51:27]wFMCommunicate request_size=4 [13:51:27]MH_SAM_APDU [13:51:27]CAPDU: 80 13 01 00 [13:51:27]Write to MH i2c: E2 08 00 D8 89 80 13 01 00 00 00 00 00 DE [13:51:27]Write i2c OK [13:51:27]MH_I2C_Read... [13:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:27]Read from MH i2c: E2 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 0E 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 0E 00 D8 89 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FC [13:51:27]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:51:27]wFMCommunicate OK [13:51:27]SAM_PROTO_GetShiftState done [13:51:27]FM_GetShiftState done [13:51:27]req_shift_opened done [13:51:27]requested_item shift.open_date is exist - process it [13:51:27]req_shift_open_date [13:51:27]req_shift_open_date done [13:51:27]produce_requested_data done [13:51:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112524,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:51:27]process_action_free close_receipt [13:51:27]json_value_free [13:51:27]json_value_free done [13:51:27]process_json_proto returns [13:51:27]Send response to host [13:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112524,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:51:27]free response buf [13:51:27]execute_script done [13:51:27]execute_script returns [13:51:27]free content buf [13:51:27]Sock 7.Close socket [13:51:27]Sock 7.Thread stoped [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:40]accept exits with 9 [13:51:40]New connection [13:51:40]New thread 3066957156 created [13:51:40]Thread 3066813796 joined [13:51:40]Waiting for new connection... [13:51:40] Sock 9.Parse request [13:51:40]Sock 9.Check first char [13:51:40]Sock 9.First char is OK [13:51:40]request: POST /json_proto HTTP/1.0 [13:51:40]Method: POST [13:51:40]URL: /json_proto [13:51:40]Method is POST - this is cgi request [13:51:40]url: /json_proto [13:51:40]query_string will be loaded in cgi processing [13:51:40]execute_cgi json_proto POST (null) [13:51:40]execute_cgi path=json_proto method=POST [13:51:40]POST find Content-Length [13:51:40]Host: 172.17.59.68:8080 [13:51:40]Content-Length: 679 [13:51:40]Content-Type: application/json [13:51:40] [13:51:40]POST finish read [13:51:40]Found Content-Length = 679 [13:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 19.210, "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" ] } } [13:51:40]execute_script... [13:51: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)321205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 19.210, "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" ] } } [13:51:40]POST & json_proto [13:51:40]process_json_proto [13:51:40]json parsed OK: [13:51:40]protocol is kg_v1.0 [13:51:40]action value=close_receipt [13:51:40]process_action close_receipt [13:51:40]cmd_close_receipt [13:51:40]MH_GetDate [13:51:40]Write to MH i2c: F0 00 00 D9 89 51 [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: F0 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: F0 09 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: F0 09 00 D9 89 00 A6 28 78 66 BC EC 60 65 73 [13:51:40]GetLastDocTimeStamp 1719150741 [13:51:40]current date 1719150758 [13:51:40]FM_GetShiftState [13:51:40]SAM_PROTO_GetShiftState [13:51:40]wFMCommunicate request_size=4 [13:51:40]MH_SAM_APDU [13:51:40]CAPDU: 80 13 01 00 [13:51:40]Write to MH i2c: E2 08 00 DA 89 80 13 01 00 00 00 00 00 E0 [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 0E 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 0E 00 DA 89 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FE [13:51:40]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:51:40]wFMCommunicate OK [13:51:40]SAM_PROTO_GetShiftState done [13:51:40]FM_GetShiftState done [13:51:40]opened in 1719106490 [13:51:40]opened+sec_in_day 1719192890 [13:51:40]quantity*price = 140040 [13:51:40]sum+1 = 140042 [13:51:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 126 23.06.2024 13:52 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112525 ФПД: 39931776551371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135238&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112525&fm=39931776551371&tin=02508201610067®Number=0000000000092771&sum=140000 [13:51:41]StoreToDocumentArchive [13:51:41]shift 392 fd 112525 [13:51:41]save to /storage/0392/doc_00112525 [13:51:41]save last doc name /storage/0392/doc_00112525 to /storage/kkm_last_doc_name [13:51:41]save OK [13:51:41]Clear old archive folders... [13:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:51:41]tlvbuf is 01234020 [13:51:41]SAM_PROTO_ClearQueue [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 09 00 00 [13:51:41]Write to MH i2c: E2 08 00 E7 89 80 09 00 00 00 00 00 00 E2 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 E7 89 00 90 00 E4 [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]SAM_PROTO_ClearQueue done [13:51:41]KKMCreateOFDPacket [13:51:41]OFDProtocolAddRootSTLVToBuf [13:51:41]FM_MakeSignedData [13:51:41]FM_MakeSignedData [13:51:41]SAM_PROTO_SignData [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 0D 01 02 [13:51:41]Write to MH i2c: E2 08 00 E8 89 80 0D 01 02 00 00 00 00 EA [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 E8 89 00 90 00 E5 [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]wFMCommunicate request_size=255 [13:51:41]MH_SAM_APDU [13:51: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 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 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 7E 00 00 00 F4 03 04 00 A6 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B7 01 00 35 04 06 00 24 51 57 5B [13:51:41]Write to MH i2c: E2 02 01 E9 89 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 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 7E 00 00 00 F4 03 04 00 A6 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B7 01 00 35 04 06 00 24 51 57 5B 00 00 B4 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 E9 89 00 90 00 E6 [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]wFMCommunicate request_size=7 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 0D 02 02 02 49 CB [13:51:41]Write to MH i2c: E2 0A 00 EA 89 80 0D 02 02 02 00 49 CB 00 00 05 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 EA 89 00 90 00 E7 [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 0D 03 02 [13:51:41]Write to MH i2c: E2 08 00 EB 89 80 0D 03 02 00 00 00 00 EF [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 0B 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 0B 00 EB 89 00 46 2C 88 E9 CA F4 76 C0 90 00 C7 [13:51:41]RAPDU: 46 2C 88 E9 CA F4 76 C0 90 00 [13:51:41]wFMCommunicate OK [13:51:41]SAM_PROTO_SignData done [13:51:41]FM_MakeSignedData done [13:51:41]CreateOFDProtocolMessage [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 11 00 00 [13:51:41]Write to MH i2c: E2 08 00 EC 89 80 11 00 00 00 00 00 00 EF [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 17 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 17 00 EC 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 41 [13:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:41]wFMCommunicate OK [13:51:41]CreateOFDProtocolMessage done [13:51:41]OFDSenderStorePacket 112525 [13:51:41]StoreOFDPacket docnum=112525 [13:51:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E2 EA 04 01 15 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 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 7E 00 00 00 F4 03 04 00 A6 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B7 01 00 35 04 06 00 24 51 57 5B 49 CB 46 2C 88 E9 CA F4 76 C0 [13:51:41]CheckFolder [13:51:41]dirname=/storage/ofd_packets [13:51:41]CheckFolder done [13:51:41]ProducePacketName [13:51:41]name=ofd_packets/00112525 [13:51:41]NVStorageSaveData ofd_packets/00112525 [13:51:41]File name is /storage/ofd_packets/00112525 [13:51:41]Write 298 bytes [13:51:41]NVStorageSaveData done [13:51:41]OFDSenderStorePacket done [13:51:41]KKMCreateOFDPacket done [13:51:41]NVStorageSaveData kkm_last_timestamp [13:51:41]File name is /storage/kkm_last_timestamp [13:51:41]Write 4 bytes [13:51:41]NVStorageSaveData done [13:51:41]ExternCall_PrintAddStr [13:51:41]wPrintStart [13:51:41]Write to MH i2c: 01 00 00 ED 89 76 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 07 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 07 00 ED 89 00 00 00 00 00 FF 0F 8B [13:51:41]RasterBufferAndPrint [13:51:41]line Счет N : (1)321205 [13:51:41]line ИНН: 02508201610067 [13:51:41]line Контрольно-Кассовый Чек [13:51:41]line ПРОДАЖА [13:51:41]line ТРК (МРК, ГНК) : 22 [13:51:41]line Товар: 2710194210 [13:51:41]line ДТ-К-5 [13:51:41]line 19.210 * 72.90 [13:51:41]line = 1400.41 [13:51:41]line НДС 12% НСП 1% [13:51:41]line > о реализуемом товаре [13:51:41]line ОКРУГЛЕНИЕ: -0.41 [13:51:41]line ИТОГО: 1400.00 [13:51:41]line Внесено: 1400.00 [13:51:41]line СДАЧА: 0.00 [13:51:41]line НСП 1% : 12.39 [13:51:41]line НДС 12% : 148.72 [13:51:41]line Наличными: 1400.00 [13:51:41]line Безнал.: 0.00 [13:51:41]line Место: АЗС № 65 "Партнер Нефть" [13:51:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:51:41]line СНО: Общий режим [13:51:41]line Чек 126 23.06.2024 13:52 [13:51:41]line Смена: 392 ФФД: 1.0 [13:51:41]line ЗНМ: 0300000198 [13:51:41]line РНМ: 0000000000092771 [13:51:41]line Версия ККМ: 001 [13:51:41]line ФМ: 0000000000875083 [13:51:41]line ФД: 112525 [13:51:41]line ФПД: 39931776551371 [13:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135238&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112525&fm=39931776551371&tin=02508201610067®Number=0000000000092771&sum=140000 [13:51:42]OFD Sender: Processing packet 112525 [packets to send 38, broken 37] [13:51:42]ProducePacketName [13:51:42]name=ofd_packets/00112525 [13:51:42]OFD Sender: To server: pG, [13:51:42]CommunicateWithHost lk.salyk.kg:30040 [13:51:42]ConnectInit lk.salyk.kg [13:51:42]written 0, free lines is 4095 [13:51:42]Connected sock=7 [13:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E2 EA 04 01 15 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 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 7E 00 00 00 F4 03 04 00 A6 28 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B7 01 00 35 04 06 00 24 51 57 5B 49 CB 46 2C 88 E9 CA F4 76 C0 [13:51:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BF 05 47 00 B9 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B7 01 00 F4 03 04 00 91 BF 77 66 B6 04 01 00 00 47 98 40 1B 78 42 6D 61 [13:51:42]CommunicateWithHost err = 0 [13:51:42]CheckOFDResponse [13:51:42]1017 (14) - 77093643461234 [13:51:42]1041 (16) - 0000000000875083 [13:51:42]1040 (4) - 112525 [13:51:42]1012 (4) - 23.06.2024 06:24 [13:51:42]1206 (1) - 0 [13:51:42]OFD Sender: Remove packet 112525 [13:51:42]ProducePacketName [13:51:42]name=ofd_packets/00112525 [13:51:42]NVStorageDeleteData [13:51:42]Write to MH i2c: 01 00 00 18 8A A2 [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: 01 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: 01 07 00 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: 01 07 00 18 8A 00 00 00 00 00 D4 0C 89 [13:51:42]RasterBufferAndPrint [13:51:42]line [13:51:42]line [13:51:42]line [13:51:42]line [13:51:42]line [13:51:42]written 0, free lines is 3292 [13:51:42]MH_Cut [13:51:42]Write to MH i2c: D1 01 00 1F 8A 01 7B [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: D1 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: D1 01 00 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: D1 01 00 1F 8A 00 7A [13:51:42]Write to MH i2c: 01 00 00 20 8A AA [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:43]OFD Sender: No OFD packet to send [13:51:43]*** Cut start [13:51:43]*** Partial cut [13:51:43]*** CUTSNS_PIN = 1 [13:51:43]*** CUTSNS_PIN = 0 [13:51:43]*** Brake cut motor [13:51:43]Read from MH i2c: 01 [13:51:44]MH_I2C_Read... [13:51:44]*** Stop cut motor [13:51:44]*** Cut end [13:51:44]Read from MH i2c: 01 07 00 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: 01 07 00 20 8A 00 00 00 00 00 FF 0F BF [13:51:44]process_action close_receipt done [13:51:44]requested_data is exist [13:51:44]produce_requested_data [13:51:44]requested_item fm.sn is exist - process it [13:51:44]wFMCommunicate request_size=4 [13:51:44]MH_SAM_APDU [13:51:44]CAPDU: 80 11 00 00 [13:51:44]Write to MH i2c: E2 08 00 21 8A 80 11 00 00 00 00 00 00 25 [13:51:44]Write i2c OK [13:51:44]MH_I2C_Read... [13:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:44]Read from MH i2c: E2 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 17 00 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 17 00 21 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [13:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:44]wFMCommunicate OK [13:51:44]requested_item fd.num is exist - process it [13:51:44]SAM_PROTO_GetFieldsCounters [13:51:44]wFMCommunicate request_size=4 [13:51:44]MH_SAM_APDU [13:51:44]CAPDU: 80 13 00 00 [13:51:44]Write to MH i2c: E2 08 00 22 8A 80 13 00 00 00 00 00 00 28 [13:51:44]Write i2c OK [13:51:44]MH_I2C_Read... [13:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:44]Read from MH i2c: E2 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 62 00 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 62 00 22 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8D B7 01 00 0E 04 04 00 88 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 91 [13:51:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8D B7 01 00 0E 04 04 00 88 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 [13:51:44]wFMCommunicate OK [13:51:44]SAM_PROTO_GetFieldsCounters done [13:51:44]requested_item shift.num is exist - process it [13:51:44]requested_item shift.opened is exist - process it [13:51:44]req_shift_opened [13:51:44]FM_GetShiftState [13:51:44]SAM_PROTO_GetShiftState [13:51:44]wFMCommunicate request_size=4 [13:51:44]MH_SAM_APDU [13:51:44]CAPDU: 80 13 01 00 [13:51:44]Write to MH i2c: E2 08 00 23 8A 80 13 01 00 00 00 00 00 2A [13:51:44]Write i2c OK [13:51:44]MH_I2C_Read... [13:51:44]*** 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 23 8A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 48 [13:51:44]RAPDU: 09 00 01 BA 7B 77 66 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]req_shift_opened done [13:51:44]requested_item shift.open_date is exist - process it [13:51:44]req_shift_open_date [13:51:44]req_shift_open_date done [13:51:44]produce_requested_data done [13:51:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112525,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:51:44]process_action_free close_receipt [13:51:44]json_value_free [13:51:44]json_value_free done [13:51:44]process_json_proto returns [13:51:44]Send response to host [13:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112525,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:51:44]free response buf [13:51:44]execute_script done [13:51:44]execute_script returns [13:51:44]free content buf [13:51:44]Sock 9.Close socket [13:51:44]Sock 9.Thread stoped [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:20]accept exits with 10 [13:56:20]New connection [13:56:20]New thread 3066813796 created [13:56:20]Thread 3066957156 joined [13:56:20]Waiting for new connection... [13:56:20] Sock 10.Parse request [13:56:20]Sock 10.Check first char [13:56:20]Sock 10.First char is OK [13:56:20]request: POST /json_proto HTTP/1.0 [13:56:20]Method: POST [13:56:20]URL: /json_proto [13:56:20]Method is POST - this is cgi request [13:56:20]url: /json_proto [13:56:20]query_string will be loaded in cgi processing [13:56:20]execute_cgi json_proto POST (null) [13:56:20]execute_cgi path=json_proto method=POST [13:56:20]POST find Content-Length [13:56:20]Host: 172.17.59.68:8080 [13:56:20]Content-Length: 682 [13:56:20]Content-Type: application/json [13:56:20] [13:56:20]POST finish read [13:56:20]Found Content-Length = 682 [13:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.070, "sum" : 2660.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2660.00, "total" : 2660.00, "payments": [ { "type": 0, "sum" : 2660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:20]execute_script... [13:56: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)321207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.070, "sum" : 2660.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2660.00, "total" : 2660.00, "payments": [ { "type": 0, "sum" : 2660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:20]POST & json_proto [13:56:20]process_json_proto [13:56:20]json parsed OK: [13:56:20]protocol is kg_v1.0 [13:56:20]action value=close_receipt [13:56:20]process_action close_receipt [13:56:20]cmd_close_receipt [13:56:20]MH_GetDate [13:56:20]Write to MH i2c: F0 00 00 24 8A 9D [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: F0 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: F0 09 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: F0 09 00 24 8A 00 BE 29 78 66 BC EC 60 65 D8 [13:56:20]GetLastDocTimeStamp 1719150758 [13:56:20]current date 1719151038 [13:56:20]FM_GetShiftState [13:56:20]SAM_PROTO_GetShiftState [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 13 01 00 [13:56:20]Write to MH i2c: E2 08 00 25 8A 80 13 01 00 00 00 00 00 2C [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0E 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0E 00 25 8A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4A [13:56:20]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:56:20]wFMCommunicate OK [13:56:20]SAM_PROTO_GetShiftState done [13:56:20]FM_GetShiftState done [13:56:20]opened in 1719106490 [13:56:20]opened+sec_in_day 1719192890 [13:56:20]quantity*price = 266064 [13:56:20]sum+1 = 266066 [13:56:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 2660.00 Внесено: 2660.00 СДАЧА: 0.00 НСП 1% : 23.55 НДС 12% : 282.55 Наличными: 2660.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 127 23.06.2024 13:57 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112526 ФПД: 164092636026614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135718&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112526&fm=164092636026614&tin=02508201610067®Number=0000000000092771&sum=266000 [13:56:21]StoreToDocumentArchive [13:56:21]shift 392 fd 112526 [13:56:21]save to /storage/0392/doc_00112526 [13:56:21]save last doc name /storage/0392/doc_00112526 to /storage/kkm_last_doc_name [13:56:21]save OK [13:56:21]Clear old archive folders... [13:56:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:21]tlvbuf is 012E2B00 [13:56:21]SAM_PROTO_ClearQueue [13:56:21]wFMCommunicate request_size=4 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 09 00 00 [13:56:21]Write to MH i2c: E2 08 00 32 8A 80 09 00 00 00 00 00 00 2E [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:21]Read from MH i2c: E2 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 32 8A 00 90 00 30 [13:56:21]RAPDU: 90 00 [13:56:21]wFMCommunicate OK [13:56:21]SAM_PROTO_ClearQueue done [13:56:21]KKMCreateOFDPacket [13:56:21]OFDProtocolAddRootSTLVToBuf [13:56:21]FM_MakeSignedData [13:56:21]FM_MakeSignedData [13:56:21]SAM_PROTO_SignData [13:56:21]wFMCommunicate request_size=4 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 0D 01 02 [13:56:21]Write to MH i2c: E2 08 00 33 8A 80 0D 01 02 00 00 00 00 36 [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:21]Read from MH i2c: E2 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 33 8A 00 90 00 31 [13:56:21]RAPDU: 90 00 [13:56:21]wFMCommunicate OK [13:56:21]wFMCommunicate request_size=255 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 51 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 6E 00 00 00 00 07 04 06 00 10 0F 04 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 BE 29 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B7 01 00 35 04 06 00 95 [13:56:21]Write to MH i2c: E2 02 01 34 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 51 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 6E 00 00 00 00 07 04 06 00 10 0F 04 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 BE 29 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B7 01 00 35 04 06 00 95 00 00 C6 [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:21]Read from MH i2c: E2 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 34 8A 00 90 00 32 [13:56:21]RAPDU: 90 00 [13:56:21]wFMCommunicate OK [13:56:21]wFMCommunicate request_size=10 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 0D 02 02 05 3D CB 47 D6 F6 [13:56:21]Write to MH i2c: E2 0D 00 35 8A 80 0D 02 02 05 00 3D CB 47 D6 F6 00 00 5E [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:21]Read from MH i2c: E2 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 35 8A 00 90 00 33 [13:56:21]RAPDU: 90 00 [13:56:21]wFMCommunicate OK [13:56:21]wFMCommunicate request_size=4 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 0D 03 02 [13:56:21]Write to MH i2c: E2 08 00 36 8A 80 0D 03 02 00 00 00 00 3B [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:21]Read from MH i2c: E2 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 0B 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 0B 00 36 8A 00 7C EE 47 7D E9 12 26 4C 90 00 D7 [13:56:21]RAPDU: 7C EE 47 7D E9 12 26 4C 90 00 [13:56:21]wFMCommunicate OK [13:56:21]SAM_PROTO_SignData done [13:56:21]FM_MakeSignedData done [13:56:21]CreateOFDProtocolMessage [13:56:21]wFMCommunicate request_size=4 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 11 00 00 [13:56:21]Write to MH i2c: E2 08 00 37 8A 80 11 00 00 00 00 00 00 3B [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:22]Read from MH i2c: E2 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 17 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 17 00 37 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [13:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:56:22]wFMCommunicate OK [13:56:22]CreateOFDProtocolMessage done [13:56:22]OFDSenderStorePacket 112526 [13:56:22]StoreOFDPacket docnum=112526 [13:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A D1 07 01 62 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 35 FF 03 08 00 03 86 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 51 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 6E 00 00 00 00 07 04 06 00 10 0F 04 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 BE 29 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B7 01 00 35 04 06 00 95 3D CB 47 D6 F6 7C EE 47 7D E9 12 26 4C [13:56:22]CheckFolder [13:56:22]dirname=/storage/ofd_packets [13:56:22]CheckFolder done [13:56:22]ProducePacketName [13:56:22]name=ofd_packets/00112526 [13:56:22]NVStorageSaveData ofd_packets/00112526 [13:56:22]File name is /storage/ofd_packets/00112526 [13:56:22]Write 301 bytes [13:56:22]NVStorageSaveData done [13:56:22]OFDSenderStorePacket done [13:56:22]KKMCreateOFDPacket done [13:56:22]NVStorageSaveData kkm_last_timestamp [13:56:22]File name is /storage/kkm_last_timestamp [13:56:22]Write 4 bytes [13:56:22]NVStorageSaveData done [13:56:22]ExternCall_PrintAddStr [13:56:22]wPrintStart [13:56:22]Write to MH i2c: 01 00 00 38 8A C2 [13:56:22]Write i2c OK [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 07 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 07 00 38 8A 00 00 00 00 00 FF 0F D7 [13:56:22]RasterBufferAndPrint [13:56:22]line Счет N : (1)321207 [13:56:22]line ИНН: 02508201610067 [13:56:22]line Контрольно-Кассовый Чек [13:56:22]line ПРОДАЖА [13:56:22]line ТРК (МРК, ГНК) : 11 [13:56:22]line Товар: 2710124130 [13:56:22]line Аи-92-К-5 [13:56:22]line 40.070 * 66.40 [13:56:22]line = 2660.65 [13:56:22]line НДС 12% НСП 1% [13:56:22]line > о реализуемом товаре [13:56:22]line ОКРУГЛЕНИЕ: -0.65 [13:56:22]line ИТОГО: 2660.00 [13:56:22]line Внесено: 2660.00 [13:56:22]line СДАЧА: 0.00 [13:56:22]line НСП 1% : 23.55 [13:56:22]line НДС 12% : 282.55 [13:56:22]line Наличными: 2660.00 [13:56:22]line Безнал.: 0.00 [13:56:22]line Место: АЗС № 65 "Партнер Нефть" [13:56:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:56:22]line СНО: Общий режим [13:56:22]line Чек 127 23.06.2024 13:57 [13:56:22]line Смена: 392 ФФД: 1.0 [13:56:22]line ЗНМ: 0300000198 [13:56:22]line РНМ: 0000000000092771 [13:56:22]line Версия ККМ: 001 [13:56:22]line ФМ: 0000000000875083 [13:56:22]line ФД: 112526 [13:56:22]line ФПД: 164092636026614 [13:56:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135718&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112526&fm=164092636026614&tin=02508201610067®Number=0000000000092771&sum=266000 [13:56:22]OFD Sender: Processing packet 112526 [packets to send 38, broken 37] [13:56:22]ProducePacketName [13:56:22]name=ofd_packets/00112526 [13:56:22]OFD Sender: To server: pG, [13:56:22]CommunicateWithHost lk.salyk.kg:30040 [13:56:22]ConnectInit lk.salyk.kg [13:56:22]written 0, free lines is 4095 [13:56:22]Connected sock=9 [13:56:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A D1 07 01 62 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 35 FF 03 08 00 03 86 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 51 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 6E 00 00 00 00 07 04 06 00 10 0F 04 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 BE 29 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B7 01 00 35 04 06 00 95 3D CB 47 D6 F6 7C EE 47 7D E9 12 26 4C [13:56:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FF F1 47 00 3E A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B7 01 00 F4 03 04 00 AA C0 77 66 B6 04 01 00 00 90 CE 41 3A B9 BA 20 3F [13:56:22]CommunicateWithHost err = 0 [13:56:22]CheckOFDResponse [13:56:22]1017 (14) - 77093643461234 [13:56:22]1041 (16) - 0000000000875083 [13:56:22]1040 (4) - 112526 [13:56:22]1012 (4) - 23.06.2024 06:28 [13:56:22]1206 (1) - 0 [13:56:22]OFD Sender: Remove packet 112526 [13:56:22]ProducePacketName [13:56:22]name=ofd_packets/00112526 [13:56:22]NVStorageDeleteData [13:56:22]Write to MH i2c: 01 00 00 63 8A ED [13:56:22]Write i2c OK [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 07 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 07 00 63 8A 00 00 00 00 00 E2 0C E2 [13:56:22]RasterBufferAndPrint [13:56:22]line [13:56:22]line [13:56:22]line [13:56:22]line [13:56:22]line [13:56:22]written 0, free lines is 3307 [13:56:22]MH_Cut [13:56:22]Write to MH i2c: D1 01 00 6A 8A 01 C6 [13:56:22]Write i2c OK [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: D1 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: D1 01 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: D1 01 00 6A 8A 00 C5 [13:56:22]Write to MH i2c: 01 00 00 6B 8A F5 [13:56:22]Write i2c OK [13:56:22]MH_I2C_Read... [13:56:23]OFD Sender: No OFD packet to send [13:56:23]*** Cut start [13:56:23]*** Partial cut [13:56:23]*** CUTSNS_PIN = 1 [13:56:23]*** CUTSNS_PIN = 0 [13:56:23]*** Brake cut motor [13:56:24]Read from MH i2c: 01 [13:56:24]MH_I2C_Read... [13:56:24]*** Stop cut motor [13:56:24]*** Cut end [13:56:24]Read from MH i2c: 01 07 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: 01 07 00 6B 8A 00 00 00 00 00 FF 0F 0A [13:56:24]process_action close_receipt done [13:56:24]requested_data is exist [13:56:24]produce_requested_data [13:56:24]requested_item fm.sn is exist - process it [13:56:24]wFMCommunicate request_size=4 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 11 00 00 [13:56:24]Write to MH i2c: E2 08 00 6C 8A 80 11 00 00 00 00 00 00 70 [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:24]Read from MH i2c: E2 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 17 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 17 00 6C 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [13:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:56:24]wFMCommunicate OK [13:56:24]requested_item fd.num is exist - process it [13:56:24]SAM_PROTO_GetFieldsCounters [13:56:24]wFMCommunicate request_size=4 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 13 00 00 [13:56:24]Write to MH i2c: E2 08 00 6D 8A 80 13 00 00 00 00 00 00 73 [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:24]Read from MH i2c: E2 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 62 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 62 00 6D 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8E B7 01 00 0E 04 04 00 88 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 E0 [13:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8E B7 01 00 0E 04 04 00 88 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 [13:56:24]wFMCommunicate OK [13:56:24]SAM_PROTO_GetFieldsCounters done [13:56:24]requested_item shift.num is exist - process it [13:56:24]requested_item shift.opened is exist - process it [13:56:24]req_shift_opened [13:56:24]FM_GetShiftState [13:56:24]SAM_PROTO_GetShiftState [13:56:24]wFMCommunicate request_size=4 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 13 01 00 [13:56:24]Write to MH i2c: E2 08 00 6E 8A 80 13 01 00 00 00 00 00 75 [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:24]Read from MH i2c: E2 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 0E 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 0E 00 6E 8A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 93 [13:56:24]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:56:24]wFMCommunicate OK [13:56:24]SAM_PROTO_GetShiftState done [13:56:24]FM_GetShiftState done [13:56:24]req_shift_opened done [13:56:24]requested_item shift.open_date is exist - process it [13:56:24]req_shift_open_date [13:56:24]req_shift_open_date done [13:56:24]produce_requested_data done [13:56:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112526,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:56:24]process_action_free close_receipt [13:56:24]json_value_free [13:56:24]json_value_free done [13:56:24]process_json_proto returns [13:56:24]Send response to host [13:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112526,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:56:24]free response buf [13:56:24]execute_script done [13:56:24]execute_script returns [13:56:24]free content buf [13:56:24]Sock 10.Close socket [13:56:24]Sock 10.Thread stoped [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:22]accept exits with 7 [13:58:22]New connection [13:58:22]New thread 3066957156 created [13:58:22]Thread 3066813796 joined [13:58:22]Waiting for new connection... [13:58:22] Sock 7.Parse request [13:58:22]Sock 7.Check first char [13:58:22]Sock 7.First char is OK [13:58:22]request: POST /json_proto HTTP/1.0 [13:58:22]Method: POST [13:58:22]URL: /json_proto [13:58:22]Method is POST - this is cgi request [13:58:22]url: /json_proto [13:58:22]query_string will be loaded in cgi processing [13:58:22]execute_cgi json_proto POST (null) [13:58:22]execute_cgi path=json_proto method=POST [13:58:22]POST find Content-Length [13:58:22]Host: 172.17.59.68:8080 [13:58:22]Content-Length: 677 [13:58:22]Content-Type: application/json [13:58:22] [13:58:22]POST finish read [13:58:22]Found Content-Length = 677 [13:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.490, "sum" : 630.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:22]execute_script... [13:58:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.490, "sum" : 630.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:22]POST & json_proto [13:58:22]process_json_proto [13:58:22]json parsed OK: [13:58:22]protocol is kg_v1.0 [13:58:22]action value=close_receipt [13:58:22]process_action close_receipt [13:58:22]cmd_close_receipt [13:58:22]MH_GetDate [13:58:22]Write to MH i2c: F0 00 00 6F 8A E8 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: F0 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: F0 09 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: F0 09 00 6F 8A 00 39 2A 78 66 BC EC 60 65 9F [13:58:22]GetLastDocTimeStamp 1719151038 [13:58:22]current date 1719151161 [13:58:22]FM_GetShiftState [13:58:22]SAM_PROTO_GetShiftState [13:58:22]wFMCommunicate request_size=4 [13:58:22]MH_SAM_APDU [13:58:22]CAPDU: 80 13 01 00 [13:58:22]Write to MH i2c: E2 08 00 70 8A 80 13 01 00 00 00 00 00 77 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:22]Read from MH i2c: E2 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 0E 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 0E 00 70 8A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 95 [13:58:22]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:58:22]wFMCommunicate OK [13:58:22]SAM_PROTO_GetShiftState done [13:58:22]FM_GetShiftState done [13:58:22]opened in 1719106490 [13:58:22]opened+sec_in_day 1719192890 [13:58:22]quantity*price = 63013 [13:58:22]sum+1 = 63015 [13:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.92 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 128 23.06.2024 13:59 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112527 ФПД: 210323577324167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135921&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112527&fm=210323577324167&tin=02508201610067®Number=0000000000092771&sum=63000 [13:58:24]StoreToDocumentArchive [13:58:24]shift 392 fd 112527 [13:58:24]save to /storage/0392/doc_00112527 [13:58:24]save last doc name /storage/0392/doc_00112527 to /storage/kkm_last_doc_name [13:58:24]save OK [13:58:24]Clear old archive folders... [13:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:24]tlvbuf is 0117FEC0 [13:58:24]SAM_PROTO_ClearQueue [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 09 00 00 [13:58:24]Write to MH i2c: E2 08 00 7D 8A 80 09 00 00 00 00 00 00 79 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 7D 8A 00 90 00 7B [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_ClearQueue done [13:58:24]KKMCreateOFDPacket [13:58:24]OFDProtocolAddRootSTLVToBuf [13:58:24]FM_MakeSignedData [13:58:24]FM_MakeSignedData [13:58:24]SAM_PROTO_SignData [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 01 02 [13:58:24]Write to MH i2c: E2 08 00 7E 8A 80 0D 01 02 00 00 00 00 81 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 7E 8A 00 90 00 7C [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]wFMCommunicate request_size=255 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 39 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B7 01 00 35 04 06 00 BF [13:58:24]Write to MH i2c: E2 02 01 7F 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 39 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B7 01 00 35 04 06 00 BF 00 00 C1 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 7F 8A 00 90 00 7D [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]wFMCommunicate request_size=10 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 02 02 05 49 C6 1D 42 87 [13:58:24]Write to MH i2c: E2 0D 00 80 8A 80 0D 02 02 05 00 49 C6 1D 42 87 00 00 83 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 80 8A 00 90 00 7E [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 03 02 [13:58:24]Write to MH i2c: E2 08 00 81 8A 80 0D 03 02 00 00 00 00 86 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 0B 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 0B 00 81 8A 00 52 D3 F9 DB 02 E7 C0 F4 90 00 1D [13:58:24]RAPDU: 52 D3 F9 DB 02 E7 C0 F4 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_SignData done [13:58:24]FM_MakeSignedData done [13:58:24]CreateOFDProtocolMessage [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 11 00 00 [13:58:24]Write to MH i2c: E2 08 00 82 8A 80 11 00 00 00 00 00 00 86 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 17 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 17 00 82 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D8 [13:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:58:24]wFMCommunicate OK [13:58:24]CreateOFDProtocolMessage done [13:58:24]OFDSenderStorePacket 112527 [13:58:24]StoreOFDPacket docnum=112527 [13:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 AC 07 01 EB 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 39 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B7 01 00 35 04 06 00 BF 49 C6 1D 42 87 52 D3 F9 DB 02 E7 C0 F4 [13:58:24]CheckFolder [13:58:24]dirname=/storage/ofd_packets [13:58:24]CheckFolder done [13:58:24]ProducePacketName [13:58:24]name=ofd_packets/00112527 [13:58:24]NVStorageSaveData ofd_packets/00112527 [13:58:24]File name is /storage/ofd_packets/00112527 [13:58:24]Write 301 bytes [13:58:24]NVStorageSaveData done [13:58:24]OFDSenderStorePacket done [13:58:24]KKMCreateOFDPacket done [13:58:24]NVStorageSaveData kkm_last_timestamp [13:58:24]File name is /storage/kkm_last_timestamp [13:58:24]Write 4 bytes [13:58:24]NVStorageSaveData done [13:58:24]ExternCall_PrintAddStr [13:58:24]wPrintStart [13:58:24]Write to MH i2c: 01 00 00 83 8A 0D [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 07 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 07 00 83 8A 00 00 00 00 00 FF 0F 22 [13:58:24]RasterBufferAndPrint [13:58:24]line Счет N : (1)321208 [13:58:24]line ИНН: 02508201610067 [13:58:24]line Контрольно-Кассовый Чек [13:58:24]line ПРОДАЖА [13:58:24]line ТРК (МРК, ГНК) : 11 [13:58:24]line Товар: 2710124130 [13:58:24]line Аи-92-К-5 [13:58:24]line 9.490 * 66.40 [13:58:24]line = 630.14 [13:58:24]line НДС 12% НСП 1% [13:58:24]line > о реализуемом товаре [13:58:24]line ОКРУГЛЕНИЕ: -0.14 [13:58:24]line ИТОГО: 630.00 [13:58:24]line Внесено: 630.00 [13:58:24]line СДАЧА: 0.00 [13:58:24]line НСП 1% : 5.58 [13:58:24]line НДС 12% : 66.92 [13:58:24]line Наличными: 630.00 [13:58:24]line Безнал.: 0.00 [13:58:24]line Место: АЗС № 65 "Партнер Нефть" [13:58:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:58:24]line СНО: Общий режим [13:58:24]line Чек 128 23.06.2024 13:59 [13:58:24]line Смена: 392 ФФД: 1.0 [13:58:24]line ЗНМ: 0300000198 [13:58:24]line РНМ: 0000000000092771 [13:58:24]line Версия ККМ: 001 [13:58:24]line ФМ: 0000000000875083 [13:58:24]line ФД: 112527 [13:58:24]line ФПД: 210323577324167 [13:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135921&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112527&fm=210323577324167&tin=02508201610067®Number=0000000000092771&sum=63000 [13:58:24]OFD Sender: Processing packet 112527 [packets to send 38, broken 37] [13:58:24]ProducePacketName [13:58:24]name=ofd_packets/00112527 [13:58:24]OFD Sender: To server: pG, [13:58:24]CommunicateWithHost lk.salyk.kg:30040 [13:58:24]ConnectInit lk.salyk.kg [13:58:24]written 0, free lines is 4095 [13:58:25]Connected sock=10 [13:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 AC 07 01 EB 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 39 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B7 01 00 35 04 06 00 BF 49 C6 1D 42 87 52 D3 F9 DB 02 E7 C0 F4 [13:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CF 83 47 00 5E 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B7 01 00 F4 03 04 00 24 C1 77 66 B6 04 01 00 00 CA 7B 49 57 E2 6C 7B 20 [13:58:25]CommunicateWithHost err = 0 [13:58:25]CheckOFDResponse [13:58:25]1017 (14) - 77093643461234 [13:58:25]1041 (16) - 0000000000875083 [13:58:25]1040 (4) - 112527 [13:58:25]1012 (4) - 23.06.2024 06:31 [13:58:25]1206 (1) - 0 [13:58:25]OFD Sender: Remove packet 112527 [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00112527 [13:58:25]NVStorageDeleteData [13:58:25]Write to MH i2c: 01 00 00 AE 8A 38 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 AE 8A 00 00 00 00 00 E1 0C 2C [13:58:25]RasterBufferAndPrint [13:58:25]line [13:58:25]line [13:58:25]line [13:58:25]line [13:58:25]line [13:58:25]written 0, free lines is 3303 [13:58:25]MH_Cut [13:58:25]Write to MH i2c: D1 01 00 B5 8A 01 11 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: D1 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: D1 01 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: D1 01 00 B5 8A 00 10 [13:58:25]Write to MH i2c: 01 00 00 B6 8A 40 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]OFD Sender: No OFD packet to send [13:58:26]*** Cut start [13:58:26]*** Partial cut [13:58:26]*** CUTSNS_PIN = 1 [13:58:26]*** CUTSNS_PIN = 0 [13:58:26]*** Brake cut motor [13:58:26]Read from MH i2c: 01 [13:58:26]MH_I2C_Read... [13:58:26]*** Stop cut motor [13:58:26]*** Cut end [13:58:26]Read from MH i2c: 01 07 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 B6 8A 00 00 00 00 00 FF 0F 55 [13:58:26]process_action close_receipt done [13:58:26]requested_data is exist [13:58:26]produce_requested_data [13:58:26]requested_item fm.sn is exist - process it [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 11 00 00 [13:58:26]Write to MH i2c: E2 08 00 B7 8A 80 11 00 00 00 00 00 00 BB [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 B7 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [13:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:58:26]wFMCommunicate OK [13:58:26]requested_item fd.num is exist - process it [13:58:26]SAM_PROTO_GetFieldsCounters [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 13 00 00 [13:58:26]Write to MH i2c: E2 08 00 B8 8A 80 13 00 00 00 00 00 00 BE [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 62 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 62 00 B8 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8F B7 01 00 0E 04 04 00 88 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 2F [13:58:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8F B7 01 00 0E 04 04 00 88 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 [13:58:26]wFMCommunicate OK [13:58:26]SAM_PROTO_GetFieldsCounters done [13:58:26]requested_item shift.num is exist - process it [13:58:26]requested_item shift.opened is exist - process it [13:58:26]req_shift_opened [13:58:26]FM_GetShiftState [13:58:26]SAM_PROTO_GetShiftState [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 13 01 00 [13:58:26]Write to MH i2c: E2 08 00 B9 8A 80 13 01 00 00 00 00 00 C0 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 B9 8A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 DE [13:58:27]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:58:27]wFMCommunicate OK [13:58:27]SAM_PROTO_GetShiftState done [13:58:27]FM_GetShiftState done [13:58:27]req_shift_opened done [13:58:27]requested_item shift.open_date is exist - process it [13:58:27]req_shift_open_date [13:58:27]req_shift_open_date done [13:58:27]produce_requested_data done [13:58:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112527,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:58:27]process_action_free close_receipt [13:58:27]json_value_free [13:58:27]json_value_free done [13:58:27]process_json_proto returns [13:58:27]Send response to host [13:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112527,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:58:27]free response buf [13:58:27]execute_script done [13:58:27]execute_script returns [13:58:27]free content buf [13:58:27]Sock 7.Close socket [13:58:27]Sock 7.Thread stoped [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:48]accept exits with 9 [13:58:48]New connection [13:58:48]New thread 3066813796 created [13:58:48]Thread 3066957156 joined [13:58:48]Waiting for new connection... [13:58:48] Sock 9.Parse request [13:58:48]Sock 9.Check first char [13:58:48]Sock 9.First char is OK [13:58:48]request: POST /json_proto HTTP/1.0 [13:58:48]Method: POST [13:58:48]URL: /json_proto [13:58:48]Method is POST - this is cgi request [13:58:48]url: /json_proto [13:58:48]query_string will be loaded in cgi processing [13:58:48]execute_cgi json_proto POST (null) [13:58:48]execute_cgi path=json_proto method=POST [13:58:48]POST find Content-Length [13:58:48]Host: 172.17.59.68:8080 [13:58:48]Content-Length: 677 [13:58:48]Content-Type: application/json [13:58:48] [13:58:48]POST finish read [13:58:48]Found Content-Length = 677 [13:58:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:58:48]execute_script... [13:58:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:58:48]POST & json_proto [13:58:48]process_json_proto [13:58:48]json parsed OK: [13:58:48]protocol is kg_v1.0 [13:58:48]action value=close_receipt [13:58:48]process_action close_receipt [13:58:48]cmd_close_receipt [13:58:48]MH_GetDate [13:58:48]Write to MH i2c: F0 00 00 BA 8A 33 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: F0 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: F0 09 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: F0 09 00 BA 8A 00 52 2A 78 66 BC EC 60 65 03 [13:58:48]GetLastDocTimeStamp 1719151161 [13:58:48]current date 1719151186 [13:58:48]FM_GetShiftState [13:58:48]SAM_PROTO_GetShiftState [13:58:48]wFMCommunicate request_size=4 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 13 01 00 [13:58:48]Write to MH i2c: E2 08 00 BB 8A 80 13 01 00 00 00 00 00 C2 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 0E 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 0E 00 BB 8A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E0 [13:58:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:58:48]wFMCommunicate OK [13:58:48]SAM_PROTO_GetShiftState done [13:58:48]FM_GetShiftState done [13:58:48]opened in 1719106490 [13:58:48]opened+sec_in_day 1719192890 [13:58:48]quantity*price = 30012 [13:58:48]sum+1 = 30014 [13:58:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 129 23.06.2024 13:59 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112528 ФПД: 208315560137386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135946&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112528&fm=208315560137386&tin=02508201610067®Number=0000000000092771&sum=30000 [13:58:49]StoreToDocumentArchive [13:58:49]shift 392 fd 112528 [13:58:49]save to /storage/0392/doc_00112528 [13:58:49]save last doc name /storage/0392/doc_00112528 to /storage/kkm_last_doc_name [13:58:49]save OK [13:58:49]Clear old archive folders... [13:58:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:49]tlvbuf is B6F56510 [13:58:49]SAM_PROTO_ClearQueue [13:58:49]wFMCommunicate request_size=4 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 09 00 00 [13:58:49]Write to MH i2c: E2 08 00 C8 8A 80 09 00 00 00 00 00 00 C4 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 03 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 03 00 C8 8A 00 90 00 C6 [13:58:49]RAPDU: 90 00 [13:58:49]wFMCommunicate OK [13:58:49]SAM_PROTO_ClearQueue done [13:58:49]KKMCreateOFDPacket [13:58:49]OFDProtocolAddRootSTLVToBuf [13:58:49]FM_MakeSignedData [13:58:49]FM_MakeSignedData [13:58:49]SAM_PROTO_SignData [13:58:49]wFMCommunicate request_size=4 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 0D 01 02 [13:58:49]Write to MH i2c: E2 08 00 C9 8A 80 0D 01 02 00 00 00 00 CC [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 03 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 03 00 C9 8A 00 90 00 C7 [13:58:49]RAPDU: 90 00 [13:58:49]wFMCommunicate OK [13:58:49]wFMCommunicate request_size=255 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 81 00 00 00 F4 03 04 00 52 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B7 01 00 35 04 06 00 BD [13:58:49]Write to MH i2c: E2 02 01 CA 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 81 00 00 00 F4 03 04 00 52 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B7 01 00 35 04 06 00 BD 00 00 87 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 03 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 03 00 CA 8A 00 90 00 C8 [13:58:49]RAPDU: 90 00 [13:58:49]wFMCommunicate OK [13:58:49]wFMCommunicate request_size=10 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 0D 02 02 05 76 3E F6 92 AA [13:58:49]Write to MH i2c: E2 0D 00 CB 8A 80 0D 02 02 05 00 76 3E F6 92 AA 00 00 BF [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 03 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 03 00 CB 8A 00 90 00 C9 [13:58:49]RAPDU: 90 00 [13:58:49]wFMCommunicate OK [13:58:49]wFMCommunicate request_size=4 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 0D 03 02 [13:58:49]Write to MH i2c: E2 08 00 CC 8A 80 0D 03 02 00 00 00 00 D1 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 0B 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 0B 00 CC 8A 00 4C 49 65 B0 C0 72 A2 1A 90 00 6A [13:58:49]RAPDU: 4C 49 65 B0 C0 72 A2 1A 90 00 [13:58:49]wFMCommunicate OK [13:58:49]SAM_PROTO_SignData done [13:58:49]FM_MakeSignedData done [13:58:49]CreateOFDProtocolMessage [13:58:49]wFMCommunicate request_size=4 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 11 00 00 [13:58:49]Write to MH i2c: E2 08 00 CD 8A 80 11 00 00 00 00 00 00 D1 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:50]Read from MH i2c: E2 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 17 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 17 00 CD 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [13:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:58:50]wFMCommunicate OK [13:58:50]CreateOFDProtocolMessage done [13:58:50]OFDSenderStorePacket 112528 [13:58:50]StoreOFDPacket docnum=112528 [13:58:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9F 97 07 01 98 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 81 00 00 00 F4 03 04 00 52 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B7 01 00 35 04 06 00 BD 76 3E F6 92 AA 4C 49 65 B0 C0 72 A2 1A [13:58:50]CheckFolder [13:58:50]dirname=/storage/ofd_packets [13:58:50]CheckFolder done [13:58:50]ProducePacketName [13:58:50]name=ofd_packets/00112528 [13:58:50]NVStorageSaveData ofd_packets/00112528 [13:58:50]File name is /storage/ofd_packets/00112528 [13:58:50]Write 301 bytes [13:58:50]NVStorageSaveData done [13:58:50]OFDSenderStorePacket done [13:58:50]KKMCreateOFDPacket done [13:58:50]NVStorageSaveData kkm_last_timestamp [13:58:50]File name is /storage/kkm_last_timestamp [13:58:50]Write 4 bytes [13:58:50]NVStorageSaveData done [13:58:50]ExternCall_PrintAddStr [13:58:50]wPrintStart [13:58:50]Write to MH i2c: 01 00 00 CE 8A 58 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: 01 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: 01 07 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: 01 07 00 CE 8A 00 00 00 00 00 FF 0F 6D [13:58:50]RasterBufferAndPrint [13:58:50]line Счет N : (1)321209 [13:58:50]line ИНН: 02508201610067 [13:58:50]line Контрольно-Кассовый Чек [13:58:50]line ПРОДАЖА [13:58:50]line ТРК (МРК, ГНК) : 11 [13:58:50]line Товар: 2710124130 [13:58:50]line Аи-92-К-5 [13:58:50]line 4.520 * 66.40 [13:58:50]line = 300.13 [13:58:50]line НДС 12% НСП 1% [13:58:50]line > о реализуемом товаре [13:58:50]line ОКРУГЛЕНИЕ: -0.13 [13:58:50]line ИТОГО: 300.00 [13:58:50]line Внесено: 300.00 [13:58:50]line СДАЧА: 0.00 [13:58:50]line НСП 1% : 2.66 [13:58:50]line НДС 12% : 31.87 [13:58:50]line Наличными: 300.00 [13:58:50]line Безнал.: 0.00 [13:58:50]line Место: АЗС № 65 "Партнер Нефть" [13:58:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:58:50]line СНО: Общий режим [13:58:50]line Чек 129 23.06.2024 13:59 [13:58:50]line Смена: 392 ФФД: 1.0 [13:58:50]line ЗНМ: 0300000198 [13:58:50]line РНМ: 0000000000092771 [13:58:50]line Версия ККМ: 001 [13:58:50]line ФМ: 0000000000875083 [13:58:50]line ФД: 112528 [13:58:50]line ФПД: 208315560137386 [13:58:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T135946&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112528&fm=208315560137386&tin=02508201610067®Number=0000000000092771&sum=30000 [13:58:50]OFD Sender: Processing packet 112528 [packets to send 38, broken 37] [13:58:50]ProducePacketName [13:58:50]name=ofd_packets/00112528 [13:58:50]OFD Sender: To server: pG, [13:58:50]CommunicateWithHost lk.salyk.kg:30040 [13:58:50]ConnectInit lk.salyk.kg [13:58:50]written 0, free lines is 4095 [13:58:50]Connected sock=10 [13:58:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9F 97 07 01 98 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 81 00 00 00 F4 03 04 00 52 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B7 01 00 35 04 06 00 BD 76 3E F6 92 AA 4C 49 65 B0 C0 72 A2 1A [13:58:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4A 7E 47 00 6A 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B7 01 00 F4 03 04 00 3E C1 77 66 B6 04 01 00 00 74 52 DD 35 7A DE FD 7E [13:58:50]CommunicateWithHost err = 0 [13:58:50]CheckOFDResponse [13:58:50]1017 (14) - 77093643461234 [13:58:50]1041 (16) - 0000000000875083 [13:58:50]1040 (4) - 112528 [13:58:50]1012 (4) - 23.06.2024 06:31 [13:58:50]1206 (1) - 0 [13:58:50]OFD Sender: Remove packet 112528 [13:58:50]ProducePacketName [13:58:50]name=ofd_packets/00112528 [13:58:50]NVStorageDeleteData [13:58:50]Write to MH i2c: 01 00 00 F9 8A 83 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: 01 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: 01 07 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: 01 07 00 F9 8A 00 00 00 00 00 CE 0C 64 [13:58:50]RasterBufferAndPrint [13:58:50]line [13:58:50]line [13:58:50]line [13:58:50]line [13:58:50]line [13:58:50]written 0, free lines is 3286 [13:58:50]MH_Cut [13:58:50]Write to MH i2c: D1 01 00 00 8B 01 5D [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: D1 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: D1 01 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: D1 01 00 00 8B 00 5C [13:58:50]Write to MH i2c: 01 00 00 01 8B 8C [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:51]OFD Sender: No OFD packet to send [13:58:51]*** Cut start [13:58:51]*** Partial cut [13:58:51]*** CUTSNS_PIN = 1 [13:58:51]*** CUTSNS_PIN = 0 [13:58:51]*** Brake cut motor [13:58:52]Read from MH i2c: 01 [13:58:52]MH_I2C_Read... [13:58:52]*** Stop cut motor [13:58:52]*** Cut end [13:58:52]Read from MH i2c: 01 07 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 07 00 01 8B 00 00 00 00 00 FF 0F A1 [13:58:52]process_action close_receipt done [13:58:52]requested_data is exist [13:58:52]produce_requested_data [13:58:52]requested_item fm.sn is exist - process it [13:58:52]wFMCommunicate request_size=4 [13:58:52]MH_SAM_APDU [13:58:52]CAPDU: 80 11 00 00 [13:58:52]Write to MH i2c: E2 08 00 02 8B 80 11 00 00 00 00 00 00 07 [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:52]Read from MH i2c: E2 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: E2 17 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: E2 17 00 02 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [13:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:58:52]wFMCommunicate OK [13:58:52]requested_item fd.num is exist - process it [13:58:52]SAM_PROTO_GetFieldsCounters [13:58:52]wFMCommunicate request_size=4 [13:58:52]MH_SAM_APDU [13:58:52]CAPDU: 80 13 00 00 [13:58:52]Write to MH i2c: E2 08 00 03 8B 80 13 00 00 00 00 00 00 0A [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:52]Read from MH i2c: E2 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: E2 62 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: E2 62 00 03 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 90 B7 01 00 0E 04 04 00 88 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 7F [13:58:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 90 B7 01 00 0E 04 04 00 88 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 [13:58:52]wFMCommunicate OK [13:58:52]SAM_PROTO_GetFieldsCounters done [13:58:52]requested_item shift.num is exist - process it [13:58:52]requested_item shift.opened is exist - process it [13:58:52]req_shift_opened [13:58:52]FM_GetShiftState [13:58:52]SAM_PROTO_GetShiftState [13:58:52]wFMCommunicate request_size=4 [13:58:52]MH_SAM_APDU [13:58:52]CAPDU: 80 13 01 00 [13:58:52]Write to MH i2c: E2 08 00 04 8B 80 13 01 00 00 00 00 00 0C [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:52]Read from MH i2c: E2 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: E2 0E 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: E2 0E 00 04 8B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2A [13:58:52]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:58:52]wFMCommunicate OK [13:58:52]SAM_PROTO_GetShiftState done [13:58:52]FM_GetShiftState done [13:58:52]req_shift_opened done [13:58:52]requested_item shift.open_date is exist - process it [13:58:52]req_shift_open_date [13:58:52]req_shift_open_date done [13:58:52]produce_requested_data done [13:58:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112528,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [13:58:52]process_action_free close_receipt [13:58:52]json_value_free [13:58:52]json_value_free done [13:58:52]process_json_proto returns [13:58:52]Send response to host [13:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112528,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [13:58:52]free response buf [13:58:52]execute_script done [13:58:52]execute_script returns [13:58:52]free content buf [13:58:52]Sock 9.Close socket [13:58:52]Sock 9.Thread stoped [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [13:59:59]accept exits with 7 [13:59:59]New connection [13:59:59]New thread 3066957156 created [13:59:59]Thread 3066813796 joined [13:59:59]Waiting for new connection... [13:59:59] Sock 7.Parse request [13:59:59]Sock 7.Check first char [13:59:59]Sock 7.First char is OK [13:59:59]request: POST /json_proto HTTP/1.0 [13:59:59]Method: POST [13:59:59]URL: /json_proto [13:59:59]Method is POST - this is cgi request [13:59:59]url: /json_proto [13:59:59]query_string will be loaded in cgi processing [13:59:59]execute_cgi json_proto POST (null) [13:59:59]execute_cgi path=json_proto method=POST [13:59:59]POST find Content-Length [13:59:59]Host: 172.17.59.68:8080 [13:59:59]Content-Length: 805 [13:59:59]Content-Type: application/json [13:59:59] [13:59:59]POST finish read [13:59:59]Found Content-Length = 805 [13:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:59]execute_script... [13:59: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)321210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:59]POST & json_proto [13:59:59]process_json_proto [13:59:59]json parsed OK: [13:59:59]protocol is kg_v1.0 [13:59:59]action value=close_receipt [13:59:59]process_action close_receipt [13:59:59]cmd_close_receipt [13:59:59]MH_GetDate [13:59:59]Write to MH i2c: F0 00 00 05 8B 7F [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: F0 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: F0 09 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: F0 09 00 05 8B 00 99 2A 78 66 BC EC 60 65 96 [13:59:59]GetLastDocTimeStamp 1719151186 [13:59:59]current date 1719151257 [13:59:59]FM_GetShiftState [13:59:59]SAM_PROTO_GetShiftState [13:59:59]wFMCommunicate request_size=4 [13:59:59]MH_SAM_APDU [13:59:59]CAPDU: 80 13 01 00 [13:59:59]Write to MH i2c: E2 08 00 06 8B 80 13 01 00 00 00 00 00 0E [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:59]Read from MH i2c: E2 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 0E 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 0E 00 06 8B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2C [13:59:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [13:59:59]wFMCommunicate OK [13:59:59]SAM_PROTO_GetShiftState done [13:59:59]FM_GetShiftState done [13:59:59]opened in 1719106490 [13:59:59]opened+sec_in_day 1719192890 [13:59:59]quantity*price = 45019 [13:59:59]sum+1 = 45020 [13:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.19 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.19 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 130 23.06.2024 14:00 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112529 ФПД: 134137167757212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140058&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112529&fm=134137167757212&tin=02508201610067®Number=0000000000092771&sum=45019 [14:00:00]StoreToDocumentArchive [14:00:00]shift 392 fd 112529 [14:00:00]save to /storage/0392/doc_00112529 [14:00:00]save last doc name /storage/0392/doc_00112529 to /storage/kkm_last_doc_name [14:00:00]save OK [14:00:00]Clear old archive folders... [14:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:00]tlvbuf is 01234150 [14:00:00]SAM_PROTO_ClearQueue [14:00:00]wFMCommunicate request_size=4 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 09 00 00 [14:00:00]Write to MH i2c: E2 08 00 13 8B 80 09 00 00 00 00 00 00 10 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 13 8B 00 90 00 12 [14:00:00]RAPDU: 90 00 [14:00:00]wFMCommunicate OK [14:00:00]SAM_PROTO_ClearQueue done [14:00:00]KKMCreateOFDPacket [14:00:00]OFDProtocolAddRootSTLVToBuf [14:00:00]FM_MakeSignedData [14:00:00]FM_MakeSignedData [14:00:00]SAM_PROTO_SignData [14:00:00]wFMCommunicate request_size=4 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 0D 01 02 [14:00:00]Write to MH i2c: E2 08 00 14 8B 80 0D 01 02 00 00 00 00 18 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 03 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 03 00 14 8B 00 90 00 13 [14:00:01]RAPDU: 90 00 [14:00:01]wFMCommunicate OK [14:00:01]wFMCommunicate request_size=255 [14:00:01]MH_SAM_APDU [14:00:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9A 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B7 01 00 35 04 06 00 79 [14:00:01]Write to MH i2c: E2 02 01 15 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9A 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B7 01 00 35 04 06 00 79 00 00 1C [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]OFD Sender: No OFD packet to send [14:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:01]Read from MH i2c: E2 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 03 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 03 00 15 8B 00 90 00 14 [14:00:01]RAPDU: 90 00 [14:00:01]wFMCommunicate OK [14:00:01]wFMCommunicate request_size=10 [14:00:01]MH_SAM_APDU [14:00:01]CAPDU: 80 0D 02 02 05 FF 3E 3C 3F 9C [14:00:01]Write to MH i2c: E2 0D 00 16 8B 80 0D 02 02 05 00 FF 3E 3C 3F 9C 00 00 79 [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:01]Read from MH i2c: E2 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 03 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 03 00 16 8B 00 90 00 15 [14:00:01]RAPDU: 90 00 [14:00:01]wFMCommunicate OK [14:00:01]wFMCommunicate request_size=4 [14:00:01]MH_SAM_APDU [14:00:01]CAPDU: 80 0D 03 02 [14:00:01]Write to MH i2c: E2 08 00 17 8B 80 0D 03 02 00 00 00 00 1D [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:01]Read from MH i2c: E2 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 0B 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 0B 00 17 8B 00 BD AA 2C 95 43 92 EA 85 90 00 8A [14:00:01]RAPDU: BD AA 2C 95 43 92 EA 85 90 00 [14:00:01]wFMCommunicate OK [14:00:01]SAM_PROTO_SignData done [14:00:01]FM_MakeSignedData done [14:00:01]CreateOFDProtocolMessage [14:00:01]wFMCommunicate request_size=4 [14:00:01]MH_SAM_APDU [14:00:01]CAPDU: 80 11 00 00 [14:00:01]Write to MH i2c: E2 08 00 18 8B 80 11 00 00 00 00 00 00 1D [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:01]Read from MH i2c: E2 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 17 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: E2 17 00 18 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [14:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:00:01]wFMCommunicate OK [14:00:01]CreateOFDProtocolMessage done [14:00:01]OFDSenderStorePacket 112529 [14:00:01]StoreOFDPacket docnum=112529 [14:00:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 69 83 07 01 8F 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9A 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B7 01 00 35 04 06 00 79 FF 3E 3C 3F 9C BD AA 2C 95 43 92 EA 85 [14:00:01]CheckFolder [14:00:01]dirname=/storage/ofd_packets [14:00:01]CheckFolder done [14:00:01]ProducePacketName [14:00:01]name=ofd_packets/00112529 [14:00:01]NVStorageSaveData ofd_packets/00112529 [14:00:01]File name is /storage/ofd_packets/00112529 [14:00:01]Write 301 bytes [14:00:01]NVStorageSaveData done [14:00:01]OFDSenderStorePacket done [14:00:01]KKMCreateOFDPacket done [14:00:01]NVStorageSaveData kkm_last_timestamp [14:00:01]File name is /storage/kkm_last_timestamp [14:00:01]Write 4 bytes [14:00:01]NVStorageSaveData done [14:00:01]ExternCall_PrintAddStr [14:00:01]wPrintStart [14:00:01]Write to MH i2c: 01 00 00 19 8B A4 [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 07 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 07 00 19 8B 00 00 00 00 00 FF 0F B9 [14:00:01]RasterBufferAndPrint [14:00:01]line Счет N : (1)321210 [14:00:01]line ИНН: 02508201610067 [14:00:01]line Контрольно-Кассовый Чек [14:00:01]line ПРОДАЖА [14:00:01]line ТРК (МРК, ГНК) : 11 [14:00:01]line Товар: 2710124130 [14:00:01]line Аи-92-К-5 [14:00:01]line 6.780 * 66.40 [14:00:01]line = 450.19 [14:00:01]line НДС 12% НСП 1% [14:00:01]line > о реализуемом товаре [14:00:01]line ИТОГО: 450.19 [14:00:01]line НСП 1% : 3.98 [14:00:01]line НДС 12% : 47.81 [14:00:01]line Наличными: 0.00 [14:00:01]line Безнал.: 450.19 [14:00:01]line Место: АЗС № 65 "Партнер Нефть" [14:00:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:00:01]line СНО: Общий режим [14:00:01]line Чек 130 23.06.2024 14:00 [14:00:01]line Смена: 392 ФФД: 1.0 [14:00:01]line ЗНМ: 0300000198 [14:00:01]line РНМ: 0000000000092771 [14:00:01]line Версия ККМ: 001 [14:00:01]line Платежная система: О! деньги [14:00:01]line ФМ: 0000000000875083 [14:00:01]line ФД: 112529 [14:00:01]line ФПД: 134137167757212 [14:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140058&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112529&fm=134137167757212&tin=02508201610067®Number=0000000000092771&sum=45019 [14:00:01]written 0, free lines is 4095 [14:00:01]OFD Sender: Processing packet 112529 [packets to send 38, broken 37] [14:00:01]ProducePacketName [14:00:01]name=ofd_packets/00112529 [14:00:01]OFD Sender: To server: pG, [14:00:01]CommunicateWithHost lk.salyk.kg:30040 [14:00:01]ConnectInit lk.salyk.kg [14:00:01]Connected sock=9 [14:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 69 83 07 01 8F 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9A 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B7 01 00 35 04 06 00 79 FF 3E 3C 3F 9C BD AA 2C 95 43 92 EA 85 [14:00:01]Write to MH i2c: 01 00 00 43 8B CE [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 07 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 07 00 43 8B 00 00 00 00 00 E3 0C C4 [14:00:01]RasterBufferAndPrint [14:00:01]line [14:00:01]line [14:00:01]line [14:00:01]line [14:00:01]line [14:00:01]written 0, free lines is 3306 [14:00:01]MH_Cut [14:00:01]Write to MH i2c: D1 01 00 4A 8B 01 A7 [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: D1 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: D1 01 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: D1 01 00 4A 8B 00 A6 [14:00:01]Write to MH i2c: 01 00 00 4B 8B D6 [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C3 70 47 00 E7 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 38 37 35 30 38 33 10 04 04 00 91 B7 01 00 F4 03 04 00 85 C1 77 66 B6 04 01 00 00 B1 1E 6E B4 82 84 1C B1 [14:00:02]CommunicateWithHost err = 0 [14:00:02]CheckOFDResponse [14:00:02]1017 (14) - 77093643461234 [14:00:02]1041 (16) - 0000000000875083 [14:00:02]1040 (4) - 112529 [14:00:02]1012 (4) - 23.06.2024 06:32 [14:00:02]1206 (1) - 0 [14:00:02]OFD Sender: Remove packet 112529 [14:00:02]ProducePacketName [14:00:02]name=ofd_packets/00112529 [14:00:02]NVStorageDeleteData [14:00:02]OFD Sender: No OFD packet to send [14:00:02]*** Cut start [14:00:02]*** Partial cut [14:00:02]*** CUTSNS_PIN = 1 [14:00:02]*** CUTSNS_PIN = 0 [14:00:02]*** Brake cut motor [14:00:03]Read from MH i2c: 01 [14:00:03]MH_I2C_Read... [14:00:03]*** Stop cut motor [14:00:03]*** Cut end [14:00:03]Read from MH i2c: 01 07 00 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: 01 07 00 4B 8B 00 00 00 00 00 FF 0F EB [14:00:03]process_action close_receipt done [14:00:03]requested_data is exist [14:00:03]produce_requested_data [14:00:03]requested_item fm.sn is exist - process it [14:00:03]wFMCommunicate request_size=4 [14:00:03]MH_SAM_APDU [14:00:03]CAPDU: 80 11 00 00 [14:00:03]Write to MH i2c: E2 08 00 4C 8B 80 11 00 00 00 00 00 00 51 [14:00:03]Write i2c OK [14:00:03]MH_I2C_Read... [14:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:03]Read from MH i2c: E2 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 17 00 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 17 00 4C 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [14:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:00:03]wFMCommunicate OK [14:00:03]requested_item fd.num is exist - process it [14:00:03]SAM_PROTO_GetFieldsCounters [14:00:03]wFMCommunicate request_size=4 [14:00:03]MH_SAM_APDU [14:00:03]CAPDU: 80 13 00 00 [14:00:03]Write to MH i2c: E2 08 00 4D 8B 80 13 00 00 00 00 00 00 54 [14:00:03]Write i2c OK [14:00:03]MH_I2C_Read... [14:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:03]Read from MH i2c: E2 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 62 00 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 62 00 4D 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 91 B7 01 00 0E 04 04 00 88 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 CD [14:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 91 B7 01 00 0E 04 04 00 88 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 [14:00:03]wFMCommunicate OK [14:00:03]SAM_PROTO_GetFieldsCounters done [14:00:03]requested_item shift.num is exist - process it [14:00:03]requested_item shift.opened is exist - process it [14:00:03]req_shift_opened [14:00:03]FM_GetShiftState [14:00:03]SAM_PROTO_GetShiftState [14:00:03]wFMCommunicate request_size=4 [14:00:03]MH_SAM_APDU [14:00:03]CAPDU: 80 13 01 00 [14:00:03]Write to MH i2c: E2 08 00 4E 8B 80 13 01 00 00 00 00 00 56 [14:00:03]Write i2c OK [14:00:03]MH_I2C_Read... [14:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:03]Read from MH i2c: E2 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 0E 00 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 0E 00 4E 8B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 74 [14:00:03]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:00:03]wFMCommunicate OK [14:00:03]SAM_PROTO_GetShiftState done [14:00:03]FM_GetShiftState done [14:00:03]req_shift_opened done [14:00:03]requested_item shift.open_date is exist - process it [14:00:03]req_shift_open_date [14:00:03]req_shift_open_date done [14:00:03]produce_requested_data done [14:00:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112529,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:00:03]process_action_free close_receipt [14:00:03]json_value_free [14:00:03]json_value_free done [14:00:03]process_json_proto returns [14:00:03]Send response to host [14:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112529,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:00:03]free response buf [14:00:03]execute_script done [14:00:03]execute_script returns [14:00:03]free content buf [14:00:03]Sock 7.Close socket [14:00:03]Sock 7.Thread stoped [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:34]accept exits with 10 [14:00:34]New connection [14:00:34]New thread 3066813796 created [14:00:34]Thread 3066957156 joined [14:00:34]Waiting for new connection... [14:00:34] Sock 10.Parse request [14:00:34]Sock 10.Check first char [14:00:34]Sock 10.First char is OK [14:00:34]request: POST /json_proto HTTP/1.0 [14:00:34]Method: POST [14:00:34]URL: /json_proto [14:00:34]Method is POST - this is cgi request [14:00:34]url: /json_proto [14:00:34]query_string will be loaded in cgi processing [14:00:34]execute_cgi json_proto POST (null) [14:00:34]execute_cgi path=json_proto method=POST [14:00:34]POST find Content-Length [14:00:34]Host: 172.17.59.68:8080 [14:00:34]Content-Length: 677 [14:00:34]Content-Type: application/json [14:00:34] [14:00:34]POST finish read [14:00:34]Found Content-Length = 677 [14:00:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:00:34]execute_script... [14:00:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:00:34]POST & json_proto [14:00:34]process_json_proto [14:00:34]json parsed OK: [14:00:34]protocol is kg_v1.0 [14:00:34]action value=close_receipt [14:00:34]process_action close_receipt [14:00:34]cmd_close_receipt [14:00:34]MH_GetDate [14:00:34]Write to MH i2c: F0 00 00 4F 8B C9 [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: F0 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: F0 09 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: F0 09 00 4F 8B 00 BC 2A 78 66 BC EC 60 65 03 [14:00:34]GetLastDocTimeStamp 1719151258 [14:00:34]current date 1719151292 [14:00:34]FM_GetShiftState [14:00:34]SAM_PROTO_GetShiftState [14:00:34]wFMCommunicate request_size=4 [14:00:34]MH_SAM_APDU [14:00:34]CAPDU: 80 13 01 00 [14:00:34]Write to MH i2c: E2 08 00 50 8B 80 13 01 00 00 00 00 00 58 [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:34]Read from MH i2c: E2 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 0E 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 0E 00 50 8B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 76 [14:00:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:00:34]wFMCommunicate OK [14:00:34]SAM_PROTO_GetShiftState done [14:00:34]FM_GetShiftState done [14:00:34]opened in 1719106490 [14:00:34]opened+sec_in_day 1719192890 [14:00:34]quantity*price = 50065 [14:00:34]sum+1 = 50067 [14:00:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 131 23.06.2024 14:01 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112530 ФПД: 116164686979566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112530&fm=116164686979566&tin=02508201610067®Number=0000000000092771&sum=50000 [14:00:35]StoreToDocumentArchive [14:00:35]shift 392 fd 112530 [14:00:35]save to /storage/0392/doc_00112530 [14:00:35]save last doc name /storage/0392/doc_00112530 to /storage/kkm_last_doc_name [14:00:35]save OK [14:00:35]Clear old archive folders... [14:00:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:35]tlvbuf is B6EDB610 [14:00:35]SAM_PROTO_ClearQueue [14:00:35]wFMCommunicate request_size=4 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 09 00 00 [14:00:35]Write to MH i2c: E2 08 00 5D 8B 80 09 00 00 00 00 00 00 5A [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:35]Read from MH i2c: E2 03 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 03 00 5D 8B 00 90 00 5C [14:00:35]RAPDU: 90 00 [14:00:35]wFMCommunicate OK [14:00:35]SAM_PROTO_ClearQueue done [14:00:35]KKMCreateOFDPacket [14:00:35]OFDProtocolAddRootSTLVToBuf [14:00:35]FM_MakeSignedData [14:00:35]FM_MakeSignedData [14:00:35]SAM_PROTO_SignData [14:00:35]wFMCommunicate request_size=4 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 0D 01 02 [14:00:35]Write to MH i2c: E2 08 00 5E 8B 80 0D 01 02 00 00 00 00 62 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 03 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 03 00 5E 8B 00 90 00 5D [14:00:35]RAPDU: 90 00 [14:00:35]wFMCommunicate OK [14:00:35]wFMCommunicate request_size=255 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 83 00 00 00 F4 03 04 00 BC 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B7 01 00 35 04 06 00 69 [14:00:35]Write to MH i2c: E2 02 01 5F 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 83 00 00 00 F4 03 04 00 BC 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B7 01 00 35 04 06 00 69 00 00 99 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 03 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 03 00 5F 8B 00 90 00 5E [14:00:35]RAPDU: 90 00 [14:00:35]wFMCommunicate OK [14:00:35]wFMCommunicate request_size=10 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 0D 02 02 05 A6 B2 E7 21 EE [14:00:35]Write to MH i2c: E2 0D 00 60 8B 80 0D 02 02 05 00 A6 B2 E7 21 EE 00 00 BD [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 03 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 03 00 60 8B 00 90 00 5F [14:00:35]RAPDU: 90 00 [14:00:35]wFMCommunicate OK [14:00:35]wFMCommunicate request_size=4 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 0D 03 02 [14:00:35]Write to MH i2c: E2 08 00 61 8B 80 0D 03 02 00 00 00 00 67 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 0B 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 0B 00 61 8B 00 AE 9C 47 F1 97 8E C4 A2 90 00 75 [14:00:35]RAPDU: AE 9C 47 F1 97 8E C4 A2 90 00 [14:00:35]wFMCommunicate OK [14:00:35]SAM_PROTO_SignData done [14:00:35]FM_MakeSignedData done [14:00:35]CreateOFDProtocolMessage [14:00:35]wFMCommunicate request_size=4 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 11 00 00 [14:00:35]Write to MH i2c: E2 08 00 62 8B 80 11 00 00 00 00 00 00 67 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 17 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 17 00 62 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [14:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:00:36]wFMCommunicate OK [14:00:36]CreateOFDProtocolMessage done [14:00:36]OFDSenderStorePacket 112530 [14:00:36]StoreOFDPacket docnum=112530 [14:00:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C 13 07 01 84 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 83 00 00 00 F4 03 04 00 BC 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B7 01 00 35 04 06 00 69 A6 B2 E7 21 EE AE 9C 47 F1 97 8E C4 A2 [14:00:36]CheckFolder [14:00:36]dirname=/storage/ofd_packets [14:00:36]CheckFolder done [14:00:36]ProducePacketName [14:00:36]name=ofd_packets/00112530 [14:00:36]NVStorageSaveData ofd_packets/00112530 [14:00:36]File name is /storage/ofd_packets/00112530 [14:00:36]Write 301 bytes [14:00:36]NVStorageSaveData done [14:00:36]OFDSenderStorePacket done [14:00:36]KKMCreateOFDPacket done [14:00:36]NVStorageSaveData kkm_last_timestamp [14:00:36]File name is /storage/kkm_last_timestamp [14:00:36]Write 4 bytes [14:00:36]NVStorageSaveData done [14:00:36]ExternCall_PrintAddStr [14:00:36]wPrintStart [14:00:36]Write to MH i2c: 01 00 00 63 8B EE [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 07 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 07 00 63 8B 00 00 00 00 00 FF 0F 03 [14:00:36]RasterBufferAndPrint [14:00:36]line Счет N : (1)321211 [14:00:36]line ИНН: 02508201610067 [14:00:36]line Контрольно-Кассовый Чек [14:00:36]line ПРОДАЖА [14:00:36]line ТРК (МРК, ГНК) : 11 [14:00:36]line Товар: 2710124130 [14:00:36]line Аи-92-К-5 [14:00:36]line 7.540 * 66.40 [14:00:36]line = 500.66 [14:00:36]line НДС 12% НСП 1% [14:00:36]line > о реализуемом товаре [14:00:36]line ОКРУГЛЕНИЕ: -0.66 [14:00:36]line ИТОГО: 500.00 [14:00:36]line Внесено: 500.00 [14:00:36]line СДАЧА: 0.00 [14:00:36]line НСП 1% : 4.43 [14:00:36]line НДС 12% : 53.17 [14:00:36]line Наличными: 500.00 [14:00:36]line Безнал.: 0.00 [14:00:36]line Место: АЗС № 65 "Партнер Нефть" [14:00:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:00:36]line СНО: Общий режим [14:00:36]line Чек 131 23.06.2024 14:01 [14:00:36]line Смена: 392 ФФД: 1.0 [14:00:36]line ЗНМ: 0300000198 [14:00:36]line РНМ: 0000000000092771 [14:00:36]line Версия ККМ: 001 [14:00:36]line ФМ: 0000000000875083 [14:00:36]line ФД: 112530 [14:00:36]line ФПД: 116164686979566 [14:00:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112530&fm=116164686979566&tin=02508201610067®Number=0000000000092771&sum=50000 [14:00:36]OFD Sender: Processing packet 112530 [packets to send 38, broken 37] [14:00:36]ProducePacketName [14:00:36]name=ofd_packets/00112530 [14:00:36]OFD Sender: To server: pG, [14:00:36]CommunicateWithHost lk.salyk.kg:30040 [14:00:36]ConnectInit lk.salyk.kg [14:00:36]written 0, free lines is 4095 [14:00:36]Connected sock=9 [14:00:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C 13 07 01 84 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 83 00 00 00 F4 03 04 00 BC 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B7 01 00 35 04 06 00 69 A6 B2 E7 21 EE AE 9C 47 F1 97 8E C4 A2 [14:00:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1A F3 47 00 A7 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B7 01 00 F4 03 04 00 A8 C1 77 66 B6 04 01 00 00 05 23 3A 70 AE 3D F4 4F [14:00:36]CommunicateWithHost err = 0 [14:00:36]CheckOFDResponse [14:00:36]1017 (14) - 77093643461234 [14:00:36]1041 (16) - 0000000000875083 [14:00:36]1040 (4) - 112530 [14:00:36]1012 (4) - 23.06.2024 06:33 [14:00:36]1206 (1) - 0 [14:00:36]OFD Sender: Remove packet 112530 [14:00:36]ProducePacketName [14:00:36]name=ofd_packets/00112530 [14:00:36]NVStorageDeleteData [14:00:36]Write to MH i2c: 01 00 00 8E 8B 19 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 07 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 07 00 8E 8B 00 00 00 00 00 EF 0C 1B [14:00:36]RasterBufferAndPrint [14:00:36]line [14:00:36]line [14:00:36]line [14:00:36]line [14:00:36]line [14:00:36]written 0, free lines is 3317 [14:00:36]MH_Cut [14:00:36]Write to MH i2c: D1 01 00 95 8B 01 F2 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: D1 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: D1 01 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: D1 01 00 95 8B 00 F1 [14:00:36]Write to MH i2c: 01 00 00 96 8B 21 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:37]OFD Sender: No OFD packet to send [14:00:37]*** Cut start [14:00:37]*** Partial cut [14:00:37]*** CUTSNS_PIN = 1 [14:00:37]*** CUTSNS_PIN = 0 [14:00:37]*** Brake cut motor [14:00:38]Read from MH i2c: 01 [14:00:38]MH_I2C_Read... [14:00:38]*** Stop cut motor [14:00:38]*** Cut end [14:00:38]Read from MH i2c: 01 07 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: 01 07 00 96 8B 00 00 00 00 00 FF 0F 36 [14:00:38]process_action close_receipt done [14:00:38]requested_data is exist [14:00:38]produce_requested_data [14:00:38]requested_item fm.sn is exist - process it [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 11 00 00 [14:00:38]Write to MH i2c: E2 08 00 97 8B 80 11 00 00 00 00 00 00 9C [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:38]Read from MH i2c: E2 17 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 17 00 97 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [14:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:00:38]wFMCommunicate OK [14:00:38]requested_item fd.num is exist - process it [14:00:38]SAM_PROTO_GetFieldsCounters [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 13 00 00 [14:00:38]Write to MH i2c: E2 08 00 98 8B 80 13 00 00 00 00 00 00 9F [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 62 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 62 00 98 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 92 B7 01 00 0E 04 04 00 88 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 1C [14:00:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 92 B7 01 00 0E 04 04 00 88 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 [14:00:38]wFMCommunicate OK [14:00:38]SAM_PROTO_GetFieldsCounters done [14:00:38]requested_item shift.num is exist - process it [14:00:38]requested_item shift.opened is exist - process it [14:00:38]req_shift_opened [14:00:38]FM_GetShiftState [14:00:38]SAM_PROTO_GetShiftState [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 13 01 00 [14:00:38]Write to MH i2c: E2 08 00 99 8B 80 13 01 00 00 00 00 00 A1 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 0E 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 0E 00 99 8B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 BF [14:00:38]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:00:38]wFMCommunicate OK [14:00:38]SAM_PROTO_GetShiftState done [14:00:38]FM_GetShiftState done [14:00:38]req_shift_opened done [14:00:38]requested_item shift.open_date is exist - process it [14:00:38]req_shift_open_date [14:00:38]req_shift_open_date done [14:00:38]produce_requested_data done [14:00:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112530,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:00:38]process_action_free close_receipt [14:00:38]json_value_free [14:00:38]json_value_free done [14:00:38]process_json_proto returns [14:00:38]Send response to host [14:00:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112530,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:00:38]free response buf [14:00:38]execute_script done [14:00:38]execute_script returns [14:00:38]free content buf [14:00:38]Sock 10.Close socket [14:00:38]Sock 10.Thread stoped [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:14]accept exits with 7 [14:01:14]New connection [14:01:14]New thread 3066957156 created [14:01:14]Thread 3066813796 joined [14:01:14]Waiting for new connection... [14:01:14] Sock 7.Parse request [14:01:14]Sock 7.Check first char [14:01:14]Sock 7.First char is OK [14:01:14]request: POST /json_proto HTTP/1.0 [14:01:14]Method: POST [14:01:14]URL: /json_proto [14:01:14]Method is POST - this is cgi request [14:01:14]url: /json_proto [14:01:14]query_string will be loaded in cgi processing [14:01:14]execute_cgi json_proto POST (null) [14:01:14]execute_cgi path=json_proto method=POST [14:01:14]POST find Content-Length [14:01:14]Host: 172.17.59.68:8080 [14:01:14]Content-Length: 677 [14:01:14]Content-Type: application/json [14:01:14] [14:01:14]POST finish read [14:01:14]Found Content-Length = 677 [14:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:01:14]execute_script... [14:01: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)321212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:01:14]POST & json_proto [14:01:14]process_json_proto [14:01:14]json parsed OK: [14:01:14]protocol is kg_v1.0 [14:01:14]action value=close_receipt [14:01:14]process_action close_receipt [14:01:14]cmd_close_receipt [14:01:14]MH_GetDate [14:01:14]Write to MH i2c: F0 00 00 9A 8B 14 [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: F0 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: F0 09 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: F0 09 00 9A 8B 00 E4 2A 78 66 BC EC 60 65 76 [14:01:14]GetLastDocTimeStamp 1719151292 [14:01:14]current date 1719151332 [14:01:14]FM_GetShiftState [14:01:14]SAM_PROTO_GetShiftState [14:01:14]wFMCommunicate request_size=4 [14:01:14]MH_SAM_APDU [14:01:14]CAPDU: 80 13 01 00 [14:01:14]Write to MH i2c: E2 08 00 9B 8B 80 13 01 00 00 00 00 00 A3 [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:14]Read from MH i2c: E2 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 0E 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 0E 00 9B 8B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C1 [14:01:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:01:14]wFMCommunicate OK [14:01:14]SAM_PROTO_GetShiftState done [14:01:14]FM_GetShiftState done [14:01:14]opened in 1719106490 [14:01:14]opened+sec_in_day 1719192890 [14:01:14]quantity*price = 60025 [14:01:14]sum+1 = 60027 [14:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 132 23.06.2024 14:02 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112531 ФПД: 9195912292344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140212&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112531&fm=9195912292344&tin=02508201610067®Number=0000000000092771&sum=60000 [14:01:15]StoreToDocumentArchive [14:01:15]shift 392 fd 112531 [14:01:15]save to /storage/0392/doc_00112531 [14:01:15]save last doc name /storage/0392/doc_00112531 to /storage/kkm_last_doc_name [14:01:15]save OK [14:01:15]Clear old archive folders... [14:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:15]tlvbuf is B6DA9560 [14:01:15]SAM_PROTO_ClearQueue [14:01:15]wFMCommunicate request_size=4 [14:01:15]MH_SAM_APDU [14:01:15]CAPDU: 80 09 00 00 [14:01:15]Write to MH i2c: E2 08 00 A8 8B 80 09 00 00 00 00 00 00 A5 [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:15]Read from MH i2c: E2 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 03 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 03 00 A8 8B 00 90 00 A7 [14:01:15]RAPDU: 90 00 [14:01:15]wFMCommunicate OK [14:01:15]SAM_PROTO_ClearQueue done [14:01:15]KKMCreateOFDPacket [14:01:15]OFDProtocolAddRootSTLVToBuf [14:01:15]FM_MakeSignedData [14:01:15]FM_MakeSignedData [14:01:15]SAM_PROTO_SignData [14:01:15]wFMCommunicate request_size=4 [14:01:15]MH_SAM_APDU [14:01:15]CAPDU: 80 0D 01 02 [14:01:15]Write to MH i2c: E2 08 00 A9 8B 80 0D 01 02 00 00 00 00 AD [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:15]Read from MH i2c: E2 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 03 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 03 00 A9 8B 00 90 00 A8 [14:01:15]RAPDU: 90 00 [14:01:15]wFMCommunicate OK [14:01:15]wFMCommunicate request_size=255 [14:01:15]MH_SAM_APDU [14:01:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 84 00 00 00 F4 03 04 00 E4 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B7 01 00 35 04 06 00 08 [14:01:15]Write to MH i2c: E2 02 01 AA 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 84 00 00 00 F4 03 04 00 E4 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B7 01 00 35 04 06 00 08 00 00 8A [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:15]Read from MH i2c: E2 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 03 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 03 00 AA 8B 00 90 00 A9 [14:01:15]RAPDU: 90 00 [14:01:15]wFMCommunicate OK [14:01:15]wFMCommunicate request_size=10 [14:01:15]MH_SAM_APDU [14:01:15]CAPDU: 80 0D 02 02 05 5D 17 15 E7 F8 [14:01:15]Write to MH i2c: E2 0D 00 AB 8B 80 0D 02 02 05 00 5D 17 15 E7 F8 00 00 22 [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:15]Read from MH i2c: E2 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 03 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 03 00 AB 8B 00 90 00 AA [14:01:15]RAPDU: 90 00 [14:01:15]wFMCommunicate OK [14:01:15]wFMCommunicate request_size=4 [14:01:15]MH_SAM_APDU [14:01:15]CAPDU: 80 0D 03 02 [14:01:15]Write to MH i2c: E2 08 00 AC 8B 80 0D 03 02 00 00 00 00 B2 [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:15]Read from MH i2c: E2 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 0B 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 0B 00 AC 8B 00 94 7E 57 BA 3D 72 78 85 90 00 82 [14:01:15]RAPDU: 94 7E 57 BA 3D 72 78 85 90 00 [14:01:15]wFMCommunicate OK [14:01:15]SAM_PROTO_SignData done [14:01:15]FM_MakeSignedData done [14:01:15]CreateOFDProtocolMessage [14:01:15]wFMCommunicate request_size=4 [14:01:15]MH_SAM_APDU [14:01:15]CAPDU: 80 11 00 00 [14:01:15]Write to MH i2c: E2 08 00 AD 8B 80 11 00 00 00 00 00 00 B2 [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:15]Read from MH i2c: E2 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 17 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: E2 17 00 AD 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [14:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:01:15]wFMCommunicate OK [14:01:15]CreateOFDProtocolMessage done [14:01:15]OFDSenderStorePacket 112531 [14:01:15]StoreOFDPacket docnum=112531 [14:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C 02 07 01 49 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 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 84 00 00 00 F4 03 04 00 E4 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B7 01 00 35 04 06 00 08 5D 17 15 E7 F8 94 7E 57 BA 3D 72 78 85 [14:01:15]CheckFolder [14:01:15]dirname=/storage/ofd_packets [14:01:15]CheckFolder done [14:01:15]ProducePacketName [14:01:15]name=ofd_packets/00112531 [14:01:15]NVStorageSaveData ofd_packets/00112531 [14:01:15]File name is /storage/ofd_packets/00112531 [14:01:15]Write 301 bytes [14:01:15]NVStorageSaveData done [14:01:15]OFDSenderStorePacket done [14:01:15]KKMCreateOFDPacket done [14:01:15]NVStorageSaveData kkm_last_timestamp [14:01:15]File name is /storage/kkm_last_timestamp [14:01:15]Write 4 bytes [14:01:15]NVStorageSaveData done [14:01:15]ExternCall_PrintAddStr [14:01:15]wPrintStart [14:01:15]Write to MH i2c: 01 00 00 AE 8B 39 [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 07 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 07 00 AE 8B 00 00 00 00 00 FF 0F 4E [14:01:15]RasterBufferAndPrint [14:01:15]line Счет N : (1)321212 [14:01:15]line ИНН: 02508201610067 [14:01:15]line Контрольно-Кассовый Чек [14:01:15]line ПРОДАЖА [14:01:15]line ТРК (МРК, ГНК) : 11 [14:01:15]line Товар: 2710124130 [14:01:15]line Аи-92-К-5 [14:01:15]line 9.040 * 66.40 [14:01:15]line = 600.26 [14:01:15]line НДС 12% НСП 1% [14:01:15]line > о реализуемом товаре [14:01:15]line ОКРУГЛЕНИЕ: -0.26 [14:01:15]line ИТОГО: 600.00 [14:01:15]line Внесено: 600.00 [14:01:15]line СДАЧА: 0.00 [14:01:15]line НСП 1% : 5.31 [14:01:15]line НДС 12% : 63.74 [14:01:15]line Наличными: 600.00 [14:01:15]line Безнал.: 0.00 [14:01:15]line Место: АЗС № 65 "Партнер Нефть" [14:01:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:01:15]line СНО: Общий режим [14:01:15]line Чек 132 23.06.2024 14:02 [14:01:15]line Смена: 392 ФФД: 1.0 [14:01:15]line ЗНМ: 0300000198 [14:01:15]line РНМ: 0000000000092771 [14:01:15]line Версия ККМ: 001 [14:01:15]line ФМ: 0000000000875083 [14:01:15]line ФД: 112531 [14:01:15]line ФПД: 9195912292344 [14:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140212&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112531&fm=9195912292344&tin=02508201610067®Number=0000000000092771&sum=60000 [14:01:16]OFD Sender: Processing packet 112531 [packets to send 38, broken 37] [14:01:16]ProducePacketName [14:01:16]name=ofd_packets/00112531 [14:01:16]OFD Sender: To server: pG, [14:01:16]CommunicateWithHost lk.salyk.kg:30040 [14:01:16]ConnectInit lk.salyk.kg [14:01:16]written 0, free lines is 4095 [14:01:16]Connected sock=10 [14:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C 02 07 01 49 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 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 84 00 00 00 F4 03 04 00 E4 2A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B7 01 00 35 04 06 00 08 5D 17 15 E7 F8 94 7E 57 BA 3D 72 78 85 [14:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 23 47 00 BA 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B7 01 00 F4 03 04 00 CF C1 77 66 B6 04 01 00 00 4E AC 7D BA B8 30 C1 A7 [14:01:16]CommunicateWithHost err = 0 [14:01:16]CheckOFDResponse [14:01:16]1017 (14) - 77093643461234 [14:01:16]1041 (16) - 0000000000875083 [14:01:16]1040 (4) - 112531 [14:01:16]1012 (4) - 23.06.2024 06:33 [14:01:16]1206 (1) - 0 [14:01:16]OFD Sender: Remove packet 112531 [14:01:16]ProducePacketName [14:01:16]name=ofd_packets/00112531 [14:01:16]NVStorageDeleteData [14:01:16]Write to MH i2c: 01 00 00 D9 8B 64 [14:01:16]Write i2c OK [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: 01 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: 01 07 00 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: 01 07 00 D9 8B 00 00 00 00 00 D6 0C 4D [14:01:16]RasterBufferAndPrint [14:01:16]line [14:01:16]line [14:01:16]line [14:01:16]line [14:01:16]line [14:01:16]written 0, free lines is 3293 [14:01:16]MH_Cut [14:01:16]Write to MH i2c: D1 01 00 E0 8B 01 3D [14:01:16]Write i2c OK [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: D1 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: D1 01 00 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: D1 01 00 E0 8B 00 3C [14:01:16]Write to MH i2c: 01 00 00 E1 8B 6C [14:01:16]Write i2c OK [14:01:16]MH_I2C_Read... [14:01:16]OFD Sender: No OFD packet to send [14:01:17]*** Cut start [14:01:17]*** Partial cut [14:01:17]*** CUTSNS_PIN = 1 [14:01:17]*** CUTSNS_PIN = 0 [14:01:17]*** Brake cut motor [14:01:17]Read from MH i2c: 01 [14:01:17]MH_I2C_Read... [14:01:17]*** Stop cut motor [14:01:17]*** Cut end [14:01:17]Read from MH i2c: 01 07 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: 01 07 00 E1 8B 00 00 00 00 00 FF 0F 81 [14:01:17]process_action close_receipt done [14:01:17]requested_data is exist [14:01:17]produce_requested_data [14:01:17]requested_item fm.sn is exist - process it [14:01:17]wFMCommunicate request_size=4 [14:01:17]MH_SAM_APDU [14:01:17]CAPDU: 80 11 00 00 [14:01:17]Write to MH i2c: E2 08 00 E2 8B 80 11 00 00 00 00 00 00 E7 [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:17]Read from MH i2c: E2 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 17 00 [14:01:17]MH_I2C_Read... [14:01:17]Read from MH i2c: E2 17 00 E2 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [14:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:01:17]wFMCommunicate OK [14:01:17]requested_item fd.num is exist - process it [14:01:17]SAM_PROTO_GetFieldsCounters [14:01:17]wFMCommunicate request_size=4 [14:01:17]MH_SAM_APDU [14:01:17]CAPDU: 80 13 00 00 [14:01:17]Write to MH i2c: E2 08 00 E3 8B 80 13 00 00 00 00 00 00 EA [14:01:17]Write i2c OK [14:01:17]MH_I2C_Read... [14:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:18]Read from MH i2c: E2 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: E2 62 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: E2 62 00 E3 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 93 B7 01 00 0E 04 04 00 88 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 6B [14:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 93 B7 01 00 0E 04 04 00 88 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 [14:01:18]wFMCommunicate OK [14:01:18]SAM_PROTO_GetFieldsCounters done [14:01:18]requested_item shift.num is exist - process it [14:01:18]requested_item shift.opened is exist - process it [14:01:18]req_shift_opened [14:01:18]FM_GetShiftState [14:01:18]SAM_PROTO_GetShiftState [14:01:18]wFMCommunicate request_size=4 [14:01:18]MH_SAM_APDU [14:01:18]CAPDU: 80 13 01 00 [14:01:18]Write to MH i2c: E2 08 00 E4 8B 80 13 01 00 00 00 00 00 EC [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:18]Read from MH i2c: E2 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: E2 0E 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: E2 0E 00 E4 8B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0A [14:01:18]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:01:18]wFMCommunicate OK [14:01:18]SAM_PROTO_GetShiftState done [14:01:18]FM_GetShiftState done [14:01:18]req_shift_opened done [14:01:18]requested_item shift.open_date is exist - process it [14:01:18]req_shift_open_date [14:01:18]req_shift_open_date done [14:01:18]produce_requested_data done [14:01:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112531,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:01:18]process_action_free close_receipt [14:01:18]json_value_free [14:01:18]json_value_free done [14:01:18]process_json_proto returns [14:01:18]Send response to host [14:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112531,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:01:18]free response buf [14:01:18]execute_script done [14:01:18]execute_script returns [14:01:18]free content buf [14:01:18]Sock 7.Close socket [14:01:18]Sock 7.Thread stoped [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]accept exits with 9 [14:02:21]New connection [14:02:21]New thread 3066813796 created [14:02:21]Thread 3066957156 joined [14:02:21]Waiting for new connection... [14:02:21] Sock 9.Parse request [14:02:21]Sock 9.Check first char [14:02:21]Sock 9.First char is OK [14:02:21]request: POST /json_proto HTTP/1.0 [14:02:21]Method: POST [14:02:21]URL: /json_proto [14:02:21]Method is POST - this is cgi request [14:02:21]url: /json_proto [14:02:21]query_string will be loaded in cgi processing [14:02:21]execute_cgi json_proto POST (null) [14:02:21]execute_cgi path=json_proto method=POST [14:02:21]POST find Content-Length [14:02:21]Host: 172.17.59.68:8080 [14:02:21]Content-Length: 682 [14:02:21]Content-Type: application/json [14:02:21] [14:02:21]POST finish read [14:02:21]Found Content-Length = 682 [14:02:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:21]execute_script... [14:02:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:21]POST & json_proto [14:02:21]process_json_proto [14:02:21]json parsed OK: [14:02:21]protocol is kg_v1.0 [14:02:21]action value=close_receipt [14:02:21]process_action close_receipt [14:02:21]cmd_close_receipt [14:02:21]MH_GetDate [14:02:21]Write to MH i2c: F0 00 00 E5 8B 5F [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: F0 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: F0 09 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: F0 09 00 E5 8B 00 27 2B 78 66 BC EC 60 65 05 [14:02:21]GetLastDocTimeStamp 1719151332 [14:02:21]current date 1719151399 [14:02:21]FM_GetShiftState [14:02:21]SAM_PROTO_GetShiftState [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 13 01 00 [14:02:21]Write to MH i2c: E2 08 00 E6 8B 80 13 01 00 00 00 00 00 EE [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0E 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0E 00 E6 8B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0C [14:02:21]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:02:21]wFMCommunicate OK [14:02:21]SAM_PROTO_GetShiftState done [14:02:21]FM_GetShiftState done [14:02:21]opened in 1719106490 [14:02:21]opened+sec_in_day 1719192890 [14:02:21]quantity*price = 100064 [14:02:21]sum+1 = 100066 [14:02:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 133 23.06.2024 14:03 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112532 ФПД: 69249208757871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140319&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112532&fm=69249208757871&tin=02508201610067®Number=0000000000092771&sum=100000 [14:02:22]StoreToDocumentArchive [14:02:22]shift 392 fd 112532 [14:02:22]save to /storage/0392/doc_00112532 [14:02:22]save last doc name /storage/0392/doc_00112532 to /storage/kkm_last_doc_name [14:02:22]save OK [14:02:22]Clear old archive folders... [14:02:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:22]tlvbuf is 013CAC10 [14:02:22]SAM_PROTO_ClearQueue [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 09 00 00 [14:02:22]Write to MH i2c: E2 08 00 F3 8B 80 09 00 00 00 00 00 00 F0 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 F3 8B 00 90 00 F2 [14:02:22]RAPDU: 90 00 [14:02:22]wFMCommunicate OK [14:02:22]SAM_PROTO_ClearQueue done [14:02:22]KKMCreateOFDPacket [14:02:22]OFDProtocolAddRootSTLVToBuf [14:02:22]FM_MakeSignedData [14:02:22]FM_MakeSignedData [14:02:22]SAM_PROTO_SignData [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 0D 01 02 [14:02:22]Write to MH i2c: E2 08 00 F4 8B 80 0D 01 02 00 00 00 00 F8 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 F4 8B 00 90 00 F3 [14:02:22]RAPDU: 90 00 [14:02:22]wFMCommunicate OK [14:02:22]wFMCommunicate request_size=255 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 27 2B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B7 01 00 35 04 06 00 3E [14:02:22]Write to MH i2c: E2 02 01 F5 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 27 2B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B7 01 00 35 04 06 00 3E 00 00 C4 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 F5 8B 00 90 00 F4 [14:02:22]RAPDU: 90 00 [14:02:22]wFMCommunicate OK [14:02:22]wFMCommunicate request_size=10 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 0D 02 02 05 FB 56 7D 2E 6F [14:02:22]Write to MH i2c: E2 0D 00 F6 8B 80 0D 02 02 05 00 FB 56 7D 2E 6F 00 00 70 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:23]Read from MH i2c: E2 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: E2 03 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: E2 03 00 F6 8B 00 90 00 F5 [14:02:23]RAPDU: 90 00 [14:02:23]wFMCommunicate OK [14:02:23]wFMCommunicate request_size=4 [14:02:23]MH_SAM_APDU [14:02:23]CAPDU: 80 0D 03 02 [14:02:23]Write to MH i2c: E2 08 00 F7 8B 80 0D 03 02 00 00 00 00 FD [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:23]Read from MH i2c: E2 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: E2 0B 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: E2 0B 00 F7 8B 00 38 9A 2D AF CB DB 6C 63 90 00 21 [14:02:23]RAPDU: 38 9A 2D AF CB DB 6C 63 90 00 [14:02:23]wFMCommunicate OK [14:02:23]SAM_PROTO_SignData done [14:02:23]FM_MakeSignedData done [14:02:23]CreateOFDProtocolMessage [14:02:23]wFMCommunicate request_size=4 [14:02:23]MH_SAM_APDU [14:02:23]CAPDU: 80 11 00 00 [14:02:23]Write to MH i2c: E2 08 00 F8 8B 80 11 00 00 00 00 00 00 FD [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:23]Read from MH i2c: E2 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: E2 17 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: E2 17 00 F8 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [14:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:02:23]wFMCommunicate OK [14:02:23]CreateOFDProtocolMessage done [14:02:23]OFDSenderStorePacket 112532 [14:02:23]StoreOFDPacket docnum=112532 [14:02:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F0 45 07 01 41 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 27 2B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B7 01 00 35 04 06 00 3E FB 56 7D 2E 6F 38 9A 2D AF CB DB 6C 63 [14:02:23]CheckFolder [14:02:23]dirname=/storage/ofd_packets [14:02:23]CheckFolder done [14:02:23]ProducePacketName [14:02:23]name=ofd_packets/00112532 [14:02:23]NVStorageSaveData ofd_packets/00112532 [14:02:23]File name is /storage/ofd_packets/00112532 [14:02:23]Write 301 bytes [14:02:23]NVStorageSaveData done [14:02:23]OFDSenderStorePacket done [14:02:23]KKMCreateOFDPacket done [14:02:23]NVStorageSaveData kkm_last_timestamp [14:02:23]File name is /storage/kkm_last_timestamp [14:02:23]Write 4 bytes [14:02:23]NVStorageSaveData done [14:02:23]ExternCall_PrintAddStr [14:02:23]wPrintStart [14:02:23]Write to MH i2c: 01 00 00 F9 8B 84 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 07 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 07 00 F9 8B 00 00 00 00 00 FF 0F 99 [14:02:23]RasterBufferAndPrint [14:02:23]line Счет N : (1)321213 [14:02:23]line ИНН: 02508201610067 [14:02:23]line Контрольно-Кассовый Чек [14:02:23]line ПРОДАЖА [14:02:23]line ТРК (МРК, ГНК) : 11 [14:02:23]line Товар: 2710124130 [14:02:23]line Аи-92-К-5 [14:02:23]line 15.070 * 66.40 [14:02:23]line = 1000.65 [14:02:23]line НДС 12% НСП 1% [14:02:23]line > о реализуемом товаре [14:02:23]line ОКРУГЛЕНИЕ: -0.65 [14:02:23]line ИТОГО: 1000.00 [14:02:23]line Внесено: 1000.00 [14:02:23]line СДАЧА: 0.00 [14:02:23]line НСП 1% : 8.85 [14:02:23]line НДС 12% : 106.26 [14:02:23]line Наличными: 1000.00 [14:02:23]line Безнал.: 0.00 [14:02:23]line Место: АЗС № 65 "Партнер Нефть" [14:02:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:02:23]line СНО: Общий режим [14:02:23]line Чек 133 23.06.2024 14:03 [14:02:23]line Смена: 392 ФФД: 1.0 [14:02:23]line ЗНМ: 0300000198 [14:02:23]line РНМ: 0000000000092771 [14:02:23]line Версия ККМ: 001 [14:02:23]line ФМ: 0000000000875083 [14:02:23]line ФД: 112532 [14:02:23]line ФПД: 69249208757871 [14:02:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140319&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112532&fm=69249208757871&tin=02508201610067®Number=0000000000092771&sum=100000 [14:02:23]OFD Sender: Processing packet 112532 [packets to send 38, broken 37] [14:02:23]ProducePacketName [14:02:23]name=ofd_packets/00112532 [14:02:23]OFD Sender: To server: pG, [14:02:23]CommunicateWithHost lk.salyk.kg:30040 [14:02:23]ConnectInit lk.salyk.kg [14:02:23]written 0, free lines is 4095 [14:02:23]Connected sock=10 [14:02:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F0 45 07 01 41 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 27 2B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B7 01 00 35 04 06 00 3E FB 56 7D 2E 6F 38 9A 2D AF CB DB 6C 63 [14:02:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2F 9F 47 00 D6 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B7 01 00 F4 03 04 00 13 C2 77 66 B6 04 01 00 00 87 41 9C 4C 7D 85 55 4B [14:02:23]CommunicateWithHost err = 0 [14:02:23]CheckOFDResponse [14:02:23]1017 (14) - 77093643461234 [14:02:23]1041 (16) - 0000000000875083 [14:02:23]1040 (4) - 112532 [14:02:23]1012 (4) - 23.06.2024 06:34 [14:02:23]1206 (1) - 0 [14:02:23]OFD Sender: Remove packet 112532 [14:02:23]ProducePacketName [14:02:23]name=ofd_packets/00112532 [14:02:23]NVStorageDeleteData [14:02:23]Write to MH i2c: 01 00 00 24 8C B0 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 07 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 07 00 24 8C 00 00 00 00 00 D9 0C 9C [14:02:23]RasterBufferAndPrint [14:02:23]line [14:02:23]line [14:02:23]line [14:02:23]line [14:02:23]line [14:02:23]written 0, free lines is 3296 [14:02:23]MH_Cut [14:02:23]Write to MH i2c: D1 01 00 2B 8C 01 89 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: D1 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: D1 01 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: D1 01 00 2B 8C 00 88 [14:02:23]Write to MH i2c: 01 00 00 2C 8C B8 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:24]OFD Sender: No OFD packet to send [14:02:24]*** Cut start [14:02:24]*** Partial cut [14:02:24]*** CUTSNS_PIN = 1 [14:02:24]*** CUTSNS_PIN = 0 [14:02:24]*** Brake cut motor [14:02:25]Read from MH i2c: 01 [14:02:25]MH_I2C_Read... [14:02:25]*** Stop cut motor [14:02:25]*** Cut end [14:02:25]Read from MH i2c: 01 07 00 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: 01 07 00 2C 8C 00 00 00 00 00 FF 0F CD [14:02:25]process_action close_receipt done [14:02:25]requested_data is exist [14:02:25]produce_requested_data [14:02:25]requested_item fm.sn is exist - process it [14:02:25]wFMCommunicate request_size=4 [14:02:25]MH_SAM_APDU [14:02:25]CAPDU: 80 11 00 00 [14:02:25]Write to MH i2c: E2 08 00 2D 8C 80 11 00 00 00 00 00 00 33 [14:02:25]Write i2c OK [14:02:25]MH_I2C_Read... [14:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:25]Read from MH i2c: E2 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 17 00 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 17 00 2D 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [14:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:02:25]wFMCommunicate OK [14:02:25]requested_item fd.num is exist - process it [14:02:25]SAM_PROTO_GetFieldsCounters [14:02:25]wFMCommunicate request_size=4 [14:02:25]MH_SAM_APDU [14:02:25]CAPDU: 80 13 00 00 [14:02:25]Write to MH i2c: E2 08 00 2E 8C 80 13 00 00 00 00 00 00 36 [14:02:25]Write i2c OK [14:02:25]MH_I2C_Read... [14:02:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:25]Read from MH i2c: E2 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 62 00 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 62 00 2E 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 94 B7 01 00 0E 04 04 00 88 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 BB [14:02:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 94 B7 01 00 0E 04 04 00 88 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 [14:02:25]wFMCommunicate OK [14:02:25]SAM_PROTO_GetFieldsCounters done [14:02:25]requested_item shift.num is exist - process it [14:02:25]requested_item shift.opened is exist - process it [14:02:25]req_shift_opened [14:02:25]FM_GetShiftState [14:02:25]SAM_PROTO_GetShiftState [14:02:25]wFMCommunicate request_size=4 [14:02:25]MH_SAM_APDU [14:02:25]CAPDU: 80 13 01 00 [14:02:25]Write to MH i2c: E2 08 00 2F 8C 80 13 01 00 00 00 00 00 38 [14:02:25]Write i2c OK [14:02:25]MH_I2C_Read... [14:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:25]Read from MH i2c: E2 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 0E 00 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 0E 00 2F 8C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 56 [14:02:25]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:02:25]wFMCommunicate OK [14:02:25]SAM_PROTO_GetShiftState done [14:02:25]FM_GetShiftState done [14:02:25]req_shift_opened done [14:02:25]requested_item shift.open_date is exist - process it [14:02:25]req_shift_open_date [14:02:25]req_shift_open_date done [14:02:25]produce_requested_data done [14:02:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112532,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:02:25]process_action_free close_receipt [14:02:25]json_value_free [14:02:25]json_value_free done [14:02:25]process_json_proto returns [14:02:25]Send response to host [14:02:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112532,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:02:25]free response buf [14:02:25]execute_script done [14:02:25]execute_script returns [14:02:25]free content buf [14:02:25]Sock 9.Close socket [14:02:25]Sock 9.Thread stoped [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:06]accept exits with 7 [14:03:06]New connection [14:03:06]New thread 3066957156 created [14:03:06]Thread 3066813796 joined [14:03:06]Waiting for new connection... [14:03:06] Sock 7.Parse request [14:03:06]Sock 7.Check first char [14:03:06]Sock 7.First char is OK [14:03:06]request: POST /json_proto HTTP/1.0 [14:03:06]Method: POST [14:03:06]URL: /json_proto [14:03:06]Method is POST - this is cgi request [14:03:06]url: /json_proto [14:03:06]query_string will be loaded in cgi processing [14:03:06]execute_cgi json_proto POST (null) [14:03:06]execute_cgi path=json_proto method=POST [14:03:06]POST find Content-Length [14:03:06]Host: 172.17.59.68:8080 [14:03:06]Content-Length: 677 [14:03:06]Content-Type: application/json [14:03:06] [14:03:06]POST finish read [14:03:06]Found Content-Length = 677 [14:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:06]execute_script... [14:03: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)321214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:06]POST & json_proto [14:03:06]process_json_proto [14:03:06]json parsed OK: [14:03:06]protocol is kg_v1.0 [14:03:06]action value=close_receipt [14:03:06]process_action close_receipt [14:03:06]cmd_close_receipt [14:03:06]MH_GetDate [14:03:06]Write to MH i2c: F0 00 00 30 8C AB [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: F0 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: F0 09 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: F0 09 00 30 8C 00 55 2B 78 66 BC EC 60 65 7F [14:03:06]GetLastDocTimeStamp 1719151399 [14:03:06]current date 1719151445 [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 31 8C 80 13 01 00 00 00 00 00 3A [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 31 8C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 58 [14:03:06]RAPDU: 09 00 01 BA 7B 77 66 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]opened in 1719106490 [14:03:06]opened+sec_in_day 1719192890 [14:03:06]quantity*price = 60025 [14:03:06]sum+1 = 60027 [14:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре [14:07:21]line ОКРУГЛЕНИЕ: -0.26 [14:07:21]line ИТОГО: 600.00 [14:07:21]line Внесено: 600.00 [14:07:21]line СДАЧА: 0.00 [14:07:21]line НСП 1% : 5.31 [14:07:21]line НДС 12% : 63.74 [14:07:21]line Наличными: 600.00 [14:07:21]line Безнал.: 0.00 [14:07:21]line Место: АЗС № 65 "Партнер Нефть" [14:07:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:07:21]line СНО: Общий режим [14:07:21]line Чек 134 23.06.2024 14:04 [14:07:21]line Смена: 392 ФФД: 1.0 [14:07:21]line ЗНМ: 0300000198 [14:07:21]line РНМ: 0000000000092771 [14:07:21]line Версия ККМ: 001 [14:07:21]line ФМ: 0000000000875083 [14:07:21]line ФД: 112533 [14:07:21]line ФПД: 172261273272171 [14:07:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140405&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112533&fm=172261273272171&tin=02508201610067®Number=0000000000092771&sum=60000 [14:07:21]written 0, free lines is 4095 [14:07:21]Write to MH i2c: 01 00 00 48 00 48 [14:07:21]Write i2c OK [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: 01 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: 01 07 00 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D6 0C 31 [14:07:21]RasterBufferAndPrint [14:07:21]line [14:07:21]line [14:07:21]line [14:07:21]line [14:07:21]line [14:07:21]written 0, free lines is 3300 [14:07:21]MH_Cut [14:07:21]Write to MH i2c: D1 01 00 4F 00 01 21 [14:07:21]Write i2c OK [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: D1 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: D1 01 00 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: D1 01 00 4F 00 00 20 [14:07:21]Write to MH i2c: 01 00 00 50 00 50 [14:07:21]Write i2c OK [14:07:21]MH_I2C_Read... [14:07:22]OFD Sender: No OFD packet to send [14:07:22]*** Cut start [14:07:22]*** Partial cut [14:07:22]*** CUTSNS_PIN = 1 [14:07:22]*** CUTSNS_PIN = 0 [14:07:22]*** Brake cut motor [14:07:23]Read from MH i2c: 01 [14:07:23]MH_I2C_Read... [14:07:23]*** Stop cut motor [14:07:23]*** Cut end [14:07:23]Read from MH i2c: 01 07 00 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [14:07:23]process_action print_doc done [14:07:23]requested_data is exist [14:07:23]produce_requested_data [14:07:23]produce_requested_data return (null) [14:07:23]process_action_free print_doc [14:07:23]json_value_free [14:07:23]json_value_free done [14:07:23]process_json_proto returns [14:07:23]Send response to host [14:07:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:07:23]free response buf [14:07:23]execute_script done [14:07:23]execute_script returns [14:07:23]free content buf [14:07:23]Sock 8.Close socket [14:07:23]Sock 8.Thread stoped [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:13]accept exits with 9 [14:08:13]New connection [14:08:13]New thread 3066674532 created [14:08:13]Thread 3066817892 joined [14:08:13]Waiting for new connection... [14:08:13] Sock 9.Parse request [14:08:13]Sock 9.Check first char [14:08:13]Sock 9.First char is OK [14:08:13]request: POST /json_proto HTTP/1.0 [14:08:13]Method: POST [14:08:13]URL: /json_proto [14:08:13]Method is POST - this is cgi request [14:08:13]url: /json_proto [14:08:13]query_string will be loaded in cgi processing [14:08:13]execute_cgi json_proto POST (null) [14:08:13]execute_cgi path=json_proto method=POST [14:08:13]POST find Content-Length [14:08:13]Host: 172.17.59.68:8080 [14:08:13]Content-Length: 677 [14:08:13]Content-Type: application/json [14:08:13] [14:08:13]POST finish read [14:08:13]Found Content-Length = 677 [14:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.260, "sum" : 150.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:13]execute_script... [14:08: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)321218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.260, "sum" : 150.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:13]POST & json_proto [14:08:13]process_json_proto [14:08:13]json parsed OK: [14:08:13]protocol is kg_v1.0 [14:08:13]action value=close_receipt [14:08:13]process_action close_receipt [14:08:13]cmd_close_receipt [14:08:13]MH_GetDate [14:08:13]Write to MH i2c: F0 00 00 51 00 40 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: F0 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: F0 09 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: F0 09 00 51 00 00 4E 2C 78 66 BC EC 60 65 0E [14:08:13]GetLastDocTimeStamp 1719151445 [14:08:13]current date 1719151694 [14:08:13]FM_GetShiftState [14:08:13]SAM_PROTO_GetShiftState [14:08:13]wFMCommunicate request_size=4 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 13 01 00 [14:08:13]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 0E 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 ED [14:08:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:08:14]wFMCommunicate OK [14:08:14]SAM_PROTO_GetShiftState done [14:08:14]FM_GetShiftState done [14:08:14]opened in 1719106490 [14:08:14]opened+sec_in_day 1719192890 [14:08:14]quantity*price = 15006 [14:08:14]sum+1 = 15007 [14:08:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 135 23.06.2024 14:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112534 ФПД: 234344419757438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140814&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112534&fm=234344419757438&tin=02508201610067®Number=0000000000092771&sum=15000 [14:08:15]StoreToDocumentArchive [14:08:15]shift 392 fd 112534 [14:08:15]save to /storage/0392/doc_00112534 [14:08:15]save last doc name /storage/0392/doc_00112534 to /storage/kkm_last_doc_name [14:08:15]save OK [14:08:15]Clear old archive folders... [14:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:15]tlvbuf is 01BB6990 [14:08:15]SAM_PROTO_ClearQueue [14:08:15]wFMCommunicate request_size=4 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 09 00 00 [14:08:15]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [14:08:15]RAPDU: 90 00 [14:08:15]wFMCommunicate OK [14:08:15]SAM_PROTO_ClearQueue done [14:08:15]KKMCreateOFDPacket [14:08:15]OFDProtocolAddRootSTLVToBuf [14:08:15]FM_MakeSignedData [14:08:15]FM_MakeSignedData [14:08:15]SAM_PROTO_SignData [14:08:15]wFMCommunicate request_size=4 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 0D 01 02 [14:08:15]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [14:08:15]RAPDU: 90 00 [14:08:15]wFMCommunicate OK [14:08:15]wFMCommunicate request_size=255 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4E 2C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B7 01 00 35 04 06 00 D5 [14:08:15]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4E 2C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B7 01 00 35 04 06 00 D5 00 00 94 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [14:08:15]RAPDU: 90 00 [14:08:15]wFMCommunicate OK [14:08:15]wFMCommunicate request_size=10 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 0D 02 02 05 22 8F E5 0D 7E [14:08:15]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 22 8F E5 0D 7E 00 00 07 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [14:08:15]RAPDU: 90 00 [14:08:15]wFMCommunicate OK [14:08:15]wFMCommunicate request_size=4 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 0D 03 02 [14:08:15]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 0B 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 0B 00 63 00 00 87 94 E7 95 7A 9E 19 CE 90 00 75 [14:08:15]RAPDU: 87 94 E7 95 7A 9E 19 CE 90 00 [14:08:15]wFMCommunicate OK [14:08:15]SAM_PROTO_SignData done [14:08:15]FM_MakeSignedData done [14:08:15]CreateOFDProtocolMessage [14:08:15]wFMCommunicate request_size=4 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 11 00 00 [14:08:15]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 17 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 30 [14:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:08:15]wFMCommunicate OK [14:08:15]CreateOFDProtocolMessage done [14:08:15]OFDSenderStorePacket 112534 [14:08:15]StoreOFDPacket docnum=112534 [14:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 F8 07 01 70 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4E 2C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B7 01 00 35 04 06 00 D5 22 8F E5 0D 7E 87 94 E7 95 7A 9E 19 CE [14:08:15]CheckFolder [14:08:15]dirname=/storage/ofd_packets [14:08:15]CheckFolder done [14:08:15]ProducePacketName [14:08:15]name=ofd_packets/00112534 [14:08:15]NVStorageSaveData ofd_packets/00112534 [14:08:15]File name is /storage/ofd_packets/00112534 [14:08:15]Write 301 bytes [14:08:15]NVStorageSaveData done [14:08:15]OFDSenderStorePacket done [14:08:15]KKMCreateOFDPacket done [14:08:15]NVStorageSaveData kkm_last_timestamp [14:08:15]File name is /storage/kkm_last_timestamp [14:08:15]Write 4 bytes [14:08:15]NVStorageSaveData done [14:08:15]ExternCall_PrintAddStr [14:08:15]wPrintStart [14:08:15]Write to MH i2c: 01 00 00 65 00 65 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: 01 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: 01 07 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [14:08:15]RasterBufferAndPrint [14:08:15]line Счет N : (1)321218 [14:08:15]line ИНН: 02508201610067 [14:08:15]line Контрольно-Кассовый Чек [14:08:15]line ПРОДАЖА [14:08:15]line ТРК (МРК, ГНК) : 11 [14:08:15]line Товар: 2710124130 [14:08:15]line Аи-92-К-5 [14:08:15]line 2.260 * 66.40 [14:08:15]line = 150.06 [14:08:15]line НДС 12% НСП 1% [14:08:15]line > о реализуемом товаре [14:08:15]line ОКРУГЛЕНИЕ: -0.06 [14:08:15]line ИТОГО: 150.00 [14:08:15]line Внесено: 150.00 [14:08:15]line СДАЧА: 0.00 [14:08:15]line НСП 1% : 1.33 [14:08:15]line НДС 12% : 15.94 [14:08:15]line Наличными: 150.00 [14:08:15]line Безнал.: 0.00 [14:08:15]line Место: АЗС № 65 "Партнер Нефть" [14:08:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:08:15]line СНО: Общий режим [14:08:15]line Чек 135 23.06.2024 14:08 [14:08:15]line Смена: 392 ФФД: 1.0 [14:08:15]line ЗНМ: 0300000198 [14:08:15]line РНМ: 0000000000092771 [14:08:15]line Версия ККМ: 001 [14:08:15]line ФМ: 0000000000875083 [14:08:15]line ФД: 112534 [14:08:15]line ФПД: 234344419757438 [14:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140814&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112534&fm=234344419757438&tin=02508201610067®Number=0000000000092771&sum=15000 [14:08:16]OFD Sender: Processing packet 112534 [packets to send 38, broken 37] [14:08:16]ProducePacketName [14:08:16]name=ofd_packets/00112534 [14:08:16]OFD Sender: To server: pG, [14:08:16]CommunicateWithHost lk.salyk.kg:30040 [14:08:16]ConnectInit lk.salyk.kg [14:08:16]written 0, free lines is 4095 [14:08:16]Connected sock=10 [14:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 F8 07 01 70 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4E 2C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B7 01 00 35 04 06 00 D5 22 8F E5 0D 7E 87 94 E7 95 7A 9E 19 CE [14:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4B A2 47 00 86 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B7 01 00 F4 03 04 00 39 C3 77 66 B6 04 01 00 00 2E 6E 59 E1 A2 D7 D2 D4 [14:08:16]CommunicateWithHost err = 0 [14:08:16]CheckOFDResponse [14:08:16]1017 (14) - 77093643461234 [14:08:16]1041 (16) - 0000000000875083 [14:08:16]1040 (4) - 112534 [14:08:16]1012 (4) - 23.06.2024 06:39 [14:08:16]1206 (1) - 0 [14:08:16]OFD Sender: Remove packet 112534 [14:08:16]ProducePacketName [14:08:16]name=ofd_packets/00112534 [14:08:16]NVStorageDeleteData [14:08:16]Write to MH i2c: 01 00 00 90 00 90 [14:08:16]Write i2c OK [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: 01 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: 01 07 00 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 E2 0C 85 [14:08:16]RasterBufferAndPrint [14:08:16]line [14:08:16]line [14:08:16]line [14:08:16]line [14:08:16]line [14:08:16]written 0, free lines is 3303 [14:08:16]MH_Cut [14:08:16]Write to MH i2c: D1 01 00 97 00 01 69 [14:08:16]Write i2c OK [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: D1 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: D1 01 00 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: D1 01 00 97 00 00 68 [14:08:16]Write to MH i2c: 01 00 00 98 00 98 [14:08:16]Write i2c OK [14:08:16]MH_I2C_Read... [14:08:16]OFD Sender: No OFD packet to send [14:08:17]*** Cut start [14:08:17]*** Partial cut [14:08:17]*** CUTSNS_PIN = 1 [14:08:17]*** CUTSNS_PIN = 0 [14:08:17]*** Brake cut motor [14:08:17]Read from MH i2c: 01 [14:08:17]MH_I2C_Read... [14:08:17]*** Stop cut motor [14:08:17]*** Cut end [14:08:17]Read from MH i2c: 01 07 00 [14:08:17]MH_I2C_Read... [14:08:17]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [14:08:17]process_action close_receipt done [14:08:17]requested_data is exist [14:08:17]produce_requested_data [14:08:17]requested_item fm.sn is exist - process it [14:08:17]wFMCommunicate request_size=4 [14:08:17]MH_SAM_APDU [14:08:17]CAPDU: 80 11 00 00 [14:08:17]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [14:08:17]Write i2c OK [14:08:17]MH_I2C_Read... [14:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:17]Read from MH i2c: E2 [14:08:17]MH_I2C_Read... [14:08:17]Read from MH i2c: E2 17 00 [14:08:17]MH_I2C_Read... [14:08:17]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [14:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:08:17]wFMCommunicate OK [14:08:17]requested_item fd.num is exist - process it [14:08:17]SAM_PROTO_GetFieldsCounters [14:08:17]wFMCommunicate request_size=4 [14:08:17]MH_SAM_APDU [14:08:17]CAPDU: 80 13 00 00 [14:08:17]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [14:08:17]Write i2c OK [14:08:17]MH_I2C_Read... [14:08:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:18]Read from MH i2c: E2 [14:08:18]MH_I2C_Read... [14:08:18]Read from MH i2c: E2 62 00 [14:08:18]MH_I2C_Read... [14:08:18]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 96 B7 01 00 0E 04 04 00 88 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 A3 [14:08:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 96 B7 01 00 0E 04 04 00 88 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 [14:08:18]wFMCommunicate OK [14:08:18]SAM_PROTO_GetFieldsCounters done [14:08:18]requested_item shift.num is exist - process it [14:08:18]requested_item shift.opened is exist - process it [14:08:18]req_shift_opened [14:08:18]FM_GetShiftState [14:08:18]SAM_PROTO_GetShiftState [14:08:18]wFMCommunicate request_size=4 [14:08:18]MH_SAM_APDU [14:08:18]CAPDU: 80 13 01 00 [14:08:18]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [14:08:18]Write i2c OK [14:08:18]MH_I2C_Read... [14:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:18]Read from MH i2c: E2 [14:08:18]MH_I2C_Read... [14:08:18]Read from MH i2c: E2 0E 00 [14:08:18]MH_I2C_Read... [14:08:18]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 36 [14:08:18]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:08:18]wFMCommunicate OK [14:08:18]SAM_PROTO_GetShiftState done [14:08:18]FM_GetShiftState done [14:08:18]req_shift_opened done [14:08:18]requested_item shift.open_date is exist - process it [14:08:18]req_shift_open_date [14:08:18]req_shift_open_date done [14:08:18]produce_requested_data done [14:08:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112534,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:08:18]process_action_free close_receipt [14:08:18]json_value_free [14:08:18]json_value_free done [14:08:18]process_json_proto returns [14:08:18]Send response to host [14:08:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112534,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:08:18]free response buf [14:08:18]execute_script done [14:08:18]execute_script returns [14:08:18]free content buf [14:08:18]Sock 9.Close socket [14:08:18]Sock 9.Thread stoped [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:08:59]accept exits with 8 [14:08:59]New connection [14:08:59]New thread 3066817892 created [14:08:59]Thread 3066674532 joined [14:08:59]Waiting for new connection... [14:08:59] Sock 8.Parse request [14:08:59]Sock 8.Check first char [14:08:59]Sock 8.First char is OK [14:08:59]request: POST /json_proto HTTP/1.0 [14:08:59]Method: POST [14:08:59]URL: /json_proto [14:08:59]Method is POST - this is cgi request [14:08:59]url: /json_proto [14:08:59]query_string will be loaded in cgi processing [14:08:59]execute_cgi json_proto POST (null) [14:08:59]execute_cgi path=json_proto method=POST [14:08:59]POST find Content-Length [14:08:59]Host: 172.17.59.68:8080 [14:08:59]Content-Length: 679 [14:08:59]Content-Type: application/json [14:08:59] [14:08:59]POST finish read [14:08:59]Found Content-Length = 679 [14:08:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:08:59]execute_script... [14:08: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)321219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:08:59]POST & json_proto [14:08:59]process_json_proto [14:08:59]json parsed OK: [14:08:59]protocol is kg_v1.0 [14:08:59]action value=close_receipt [14:08:59]process_action close_receipt [14:08:59]cmd_close_receipt [14:08:59]MH_GetDate [14:08:59]Write to MH i2c: F0 00 00 9C 00 8B [14:08:59]Write i2c OK [14:08:59]MH_I2C_Read... [14:08:59]Read from MH i2c: F0 [14:08:59]MH_I2C_Read... [14:08:59]Read from MH i2c: F0 09 00 [14:08:59]MH_I2C_Read... [14:08:59]Read from MH i2c: F0 09 00 9C 00 00 7B 2C 78 66 BC EC 60 65 86 [14:08:59]GetLastDocTimeStamp 1719151694 [14:08:59]current date 1719151739 [14:08:59]FM_GetShiftState [14:08:59]SAM_PROTO_GetShiftState [14:08:59]wFMCommunicate request_size=4 [14:08:59]MH_SAM_APDU [14:08:59]CAPDU: 80 13 01 00 [14:08:59]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [14:08:59]Write i2c OK [14:08:59]MH_I2C_Read... [14:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:59]Read from MH i2c: E2 [14:08:59]MH_I2C_Read... [14:08:59]Read from MH i2c: E2 0E 00 [14:08:59]MH_I2C_Read... [14:08:59]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 38 [14:08:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:08:59]wFMCommunicate OK [14:08:59]SAM_PROTO_GetShiftState done [14:08:59]FM_GetShiftState done [14:08:59]opened in 1719106490 [14:08:59]opened+sec_in_day 1719192890 [14:08:59]quantity*price = 100018 [14:08:59]sum+1 = 100020 [14:08:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 136 23.06.2024 14:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112535 ФПД: 95159853159082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140859&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112535&fm=95159853159082&tin=02508201610067®Number=0000000000092771&sum=100000 [14:09:00]StoreToDocumentArchive [14:09:00]shift 392 fd 112535 [14:09:00]save to /storage/0392/doc_00112535 [14:09:00]save last doc name /storage/0392/doc_00112535 to /storage/kkm_last_doc_name [14:09:00]save OK [14:09:00]Clear old archive folders... [14:09:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:09:00]tlvbuf is B6EA0D30 [14:09:00]SAM_PROTO_ClearQueue [14:09:00]wFMCommunicate request_size=4 [14:09:00]MH_SAM_APDU [14:09:00]CAPDU: 80 09 00 00 [14:09:00]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:00]Read from MH i2c: E2 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 03 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [14:09:00]RAPDU: 90 00 [14:09:00]wFMCommunicate OK [14:09:00]SAM_PROTO_ClearQueue done [14:09:00]KKMCreateOFDPacket [14:09:00]OFDProtocolAddRootSTLVToBuf [14:09:00]FM_MakeSignedData [14:09:00]FM_MakeSignedData [14:09:00]SAM_PROTO_SignData [14:09:00]wFMCommunicate request_size=4 [14:09:00]MH_SAM_APDU [14:09:00]CAPDU: 80 0D 01 02 [14:09:00]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:00]Read from MH i2c: E2 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 03 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [14:09:00]RAPDU: 90 00 [14:09:00]wFMCommunicate OK [14:09:00]wFMCommunicate request_size=255 [14:09:00]MH_SAM_APDU [14:09: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 7B 2C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B7 01 00 35 04 06 00 56 8C 21 3E [14:09:00]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 7B 2C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B7 01 00 35 04 06 00 56 8C 21 3E 00 00 B0 [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:00]Read from MH i2c: E2 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 03 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [14:09:00]RAPDU: 90 00 [14:09:00]wFMCommunicate OK [14:09:00]wFMCommunicate request_size=7 [14:09:00]MH_SAM_APDU [14:09:00]CAPDU: 80 0D 02 02 02 92 AA [14:09:00]Write to MH i2c: E2 0A 00 AD 00 80 0D 02 02 02 00 92 AA 00 00 67 [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:00]Read from MH i2c: E2 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 03 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [14:09:00]RAPDU: 90 00 [14:09:00]wFMCommunicate OK [14:09:00]wFMCommunicate request_size=4 [14:09:00]MH_SAM_APDU [14:09:00]CAPDU: 80 0D 03 02 [14:09:00]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:00]Read from MH i2c: E2 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 0B 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 0B 00 AE 00 00 D5 7B 4E 5A 5E AB A3 C8 90 00 96 [14:09:00]RAPDU: D5 7B 4E 5A 5E AB A3 C8 90 00 [14:09:00]wFMCommunicate OK [14:09:00]SAM_PROTO_SignData done [14:09:00]FM_MakeSignedData done [14:09:00]CreateOFDProtocolMessage [14:09:00]wFMCommunicate request_size=4 [14:09:00]MH_SAM_APDU [14:09:00]CAPDU: 80 11 00 00 [14:09:00]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:00]Read from MH i2c: E2 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 17 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [14:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:09:00]wFMCommunicate OK [14:09:00]CreateOFDProtocolMessage done [14:09:00]OFDSenderStorePacket 112535 [14:09:00]StoreOFDPacket docnum=112535 [14:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B2 38 04 01 68 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 7B 2C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B7 01 00 35 04 06 00 56 8C 21 3E 92 AA D5 7B 4E 5A 5E AB A3 C8 [14:09:00]CheckFolder [14:09:00]dirname=/storage/ofd_packets [14:09:00]CheckFolder done [14:09:00]ProducePacketName [14:09:00]name=ofd_packets/00112535 [14:09:00]NVStorageSaveData ofd_packets/00112535 [14:09:00]File name is /storage/ofd_packets/00112535 [14:09:00]Write 298 bytes [14:09:00]NVStorageSaveData done [14:09:00]OFDSenderStorePacket done [14:09:00]KKMCreateOFDPacket done [14:09:00]NVStorageSaveData kkm_last_timestamp [14:09:00]File name is /storage/kkm_last_timestamp [14:09:00]Write 4 bytes [14:09:00]NVStorageSaveData done [14:09:00]ExternCall_PrintAddStr [14:09:00]wPrintStart [14:09:00]Write to MH i2c: 01 00 00 B0 00 B0 [14:09:00]Write i2c OK [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: 01 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: 01 07 00 [14:09:00]MH_I2C_Read... [14:09:00]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [14:09:00]RasterBufferAndPrint [14:09:00]line Счет N : (1)321219 [14:09:00]line ИНН: 02508201610067 [14:09:00]line Контрольно-Кассовый Чек [14:09:00]line ПРОДАЖА [14:09:00]line ТРК (МРК, ГНК) : 22 [14:09:00]line Товар: 2710194210 [14:09:00]line ДТ-К-5 [14:09:00]line 13.720 * 72.90 [14:09:00]line = 1000.19 [14:09:00]line НДС 12% НСП 1% [14:09:00]line > о реализуемом товаре [14:09:00]line ОКРУГЛЕНИЕ: -0.19 [14:09:00]line ИТОГО: 1000.00 [14:09:00]line Внесено: 1000.00 [14:09:00]line СДАЧА: 0.00 [14:09:00]line НСП 1% : 8.85 [14:09:00]line НДС 12% : 106.21 [14:09:00]line Наличными: 1000.00 [14:09:00]line Безнал.: 0.00 [14:09:00]line Место: АЗС № 65 "Партнер Нефть" [14:09:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:09:00]line СНО: Общий режим [14:09:00]line Чек 136 23.06.2024 14:08 [14:09:00]line Смена: 392 ФФД: 1.0 [14:09:00]line ЗНМ: 0300000198 [14:09:00]line РНМ: 0000000000092771 [14:09:00]line Версия ККМ: 001 [14:09:00]line ФМ: 0000000000875083 [14:09:00]line ФД: 112535 [14:09:01]line ФПД: 95159853159082 [14:09:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T140859&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112535&fm=95159853159082&tin=02508201610067®Number=0000000000092771&sum=100000 [14:09:01]OFD Sender: Processing packet 112535 [packets to send 38, broken 37] [14:09:01]ProducePacketName [14:09:01]name=ofd_packets/00112535 [14:09:01]OFD Sender: To server: pG, [14:09:01]CommunicateWithHost lk.salyk.kg:30040 [14:09:01]ConnectInit lk.salyk.kg [14:09:01]written 0, free lines is 4095 [14:09:01]Connected sock=10 [14:09:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B2 38 04 01 68 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 7B 2C 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B7 01 00 35 04 06 00 56 8C 21 3E 92 AA D5 7B 4E 5A 5E AB A3 C8 [14:09:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3C 10 47 00 4A 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 38 37 35 30 38 33 10 04 04 00 97 B7 01 00 F4 03 04 00 66 C3 77 66 B6 04 01 00 00 20 A0 18 44 3A 1D 33 59 [14:09:01]CommunicateWithHost err = 0 [14:09:01]CheckOFDResponse [14:09:01]1017 (14) - 77093643461234 [14:09:01]1041 (16) - 0000000000875083 [14:09:01]1040 (4) - 112535 [14:09:01]1012 (4) - 23.06.2024 06:40 [14:09:01]1206 (1) - 0 [14:09:01]OFD Sender: Remove packet 112535 [14:09:01]ProducePacketName [14:09:01]name=ofd_packets/00112535 [14:09:01]NVStorageDeleteData [14:09:01]Write to MH i2c: 01 00 00 DB 00 DB [14:09:01]Write i2c OK [14:09:01]MH_I2C_Read... [14:09:01]Read from MH i2c: 01 [14:09:01]MH_I2C_Read... [14:09:01]Read from MH i2c: 01 07 00 [14:09:01]MH_I2C_Read... [14:09:01]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 E2 0C D0 [14:09:01]RasterBufferAndPrint [14:09:01]line [14:09:01]line [14:09:01]line [14:09:01]line [14:09:01]line [14:09:01]written 0, free lines is 3304 [14:09:01]MH_Cut [14:09:01]Write to MH i2c: D1 01 00 E2 00 01 B4 [14:09:01]Write i2c OK [14:09:01]MH_I2C_Read... [14:09:01]Read from MH i2c: D1 [14:09:01]MH_I2C_Read... [14:09:01]Read from MH i2c: D1 01 00 [14:09:01]MH_I2C_Read... [14:09:01]Read from MH i2c: D1 01 00 E2 00 00 B3 [14:09:01]Write to MH i2c: 01 00 00 E3 00 E3 [14:09:01]Write i2c OK [14:09:01]MH_I2C_Read... [14:09:02]OFD Sender: No OFD packet to send [14:09:02]*** Cut start [14:09:02]*** Partial cut [14:09:02]*** CUTSNS_PIN = 1 [14:09:02]*** CUTSNS_PIN = 0 [14:09:02]*** Brake cut motor [14:09:03]Read from MH i2c: 01 [14:09:03]MH_I2C_Read... [14:09:03]*** Stop cut motor [14:09:03]*** Cut end [14:09:03]Read from MH i2c: 01 07 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [14:09:03]process_action close_receipt done [14:09:03]requested_data is exist [14:09:03]produce_requested_data [14:09:03]requested_item fm.sn is exist - process it [14:09:03]wFMCommunicate request_size=4 [14:09:03]MH_SAM_APDU [14:09:03]CAPDU: 80 11 00 00 [14:09:03]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:03]Read from MH i2c: E2 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 17 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [14:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:09:03]wFMCommunicate OK [14:09:03]requested_item fd.num is exist - process it [14:09:03]SAM_PROTO_GetFieldsCounters [14:09:03]wFMCommunicate request_size=4 [14:09:03]MH_SAM_APDU [14:09:03]CAPDU: 80 13 00 00 [14:09:03]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:03]Read from MH i2c: E2 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 62 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 97 B7 01 00 0E 04 04 00 88 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 F2 [14:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 97 B7 01 00 0E 04 04 00 88 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 [14:09:03]wFMCommunicate OK [14:09:03]SAM_PROTO_GetFieldsCounters done [14:09:03]requested_item shift.num is exist - process it [14:09:03]requested_item shift.opened is exist - process it [14:09:03]req_shift_opened [14:09:03]FM_GetShiftState [14:09:03]SAM_PROTO_GetShiftState [14:09:03]wFMCommunicate request_size=4 [14:09:03]MH_SAM_APDU [14:09:03]CAPDU: 80 13 01 00 [14:09:03]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:03]Read from MH i2c: E2 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 0E 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 81 [14:09:03]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:09:03]wFMCommunicate OK [14:09:03]SAM_PROTO_GetShiftState done [14:09:03]FM_GetShiftState done [14:09:03]req_shift_opened done [14:09:03]requested_item shift.open_date is exist - process it [14:09:03]req_shift_open_date [14:09:03]req_shift_open_date done [14:09:03]produce_requested_data done [14:09:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112535,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:09:03]process_action_free close_receipt [14:09:03]json_value_free [14:09:03]json_value_free done [14:09:03]process_json_proto returns [14:09:03]Send response to host [14:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112535,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:09:03]free response buf [14:09:03]execute_script done [14:09:03]execute_script returns [14:09:03]free content buf [14:09:03]Sock 8.Close socket [14:09:03]Sock 8.Thread stoped [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:22]accept exits with 9 [14:12:22]New connection [14:12:22]New thread 3066674532 created [14:12:22]Thread 3066817892 joined [14:12:22]Waiting for new connection... [14:12:22] Sock 9.Parse request [14:12:22]Sock 9.Check first char [14:12:22]Sock 9.First char is OK [14:12:22]request: POST /json_proto HTTP/1.0 [14:12:22]Method: POST [14:12:22]URL: /json_proto [14:12:22]Method is POST - this is cgi request [14:12:22]url: /json_proto [14:12:22]query_string will be loaded in cgi processing [14:12:22]execute_cgi json_proto POST (null) [14:12:22]execute_cgi path=json_proto method=POST [14:12:22]POST find Content-Length [14:12:22]Host: 172.17.59.68:8080 [14:12:22]Content-Length: 682 [14:12:22]Content-Type: application/json [14:12:22] [14:12:22]POST finish read [14:12:22]Found Content-Length = 682 [14:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 81.190, "sum" : 5999.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 5999.00, "payments": [ { "type": 0, "sum" : 5999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:22]execute_script... [14:12: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)321217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 81.190, "sum" : 5999.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 5999.00, "payments": [ { "type": 0, "sum" : 5999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:22]POST & json_proto [14:12:22]process_json_proto [14:12:22]json parsed OK: [14:12:22]protocol is kg_v1.0 [14:12:22]action value=close_receipt [14:12:22]process_action close_receipt [14:12:22]cmd_close_receipt [14:12:22]MH_GetDate [14:12:22]Write to MH i2c: F0 00 00 E7 00 D6 [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: F0 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: F0 09 00 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: F0 09 00 E7 00 00 46 2D 78 66 BC EC 60 65 9D [14:12:22]GetLastDocTimeStamp 1719151739 [14:12:22]current date 1719151942 [14:12:22]FM_GetShiftState [14:12:22]SAM_PROTO_GetShiftState [14:12:22]wFMCommunicate request_size=4 [14:12:22]MH_SAM_APDU [14:12:22]CAPDU: 80 13 01 00 [14:12:22]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:22]Read from MH i2c: E2 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 0E 00 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 83 [14:12:22]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:12:22]wFMCommunicate OK [14:12:22]SAM_PROTO_GetShiftState done [14:12:22]FM_GetShiftState done [14:12:22]opened in 1719106490 [14:12:22]opened+sec_in_day 1719192890 [14:12:22]quantity*price = 599994 [14:12:22]sum+1 = 599995 [14:12:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 5999.00 Внесено: 7000.00 СДАЧА: 1001.00 НСП 1% : 53.10 НДС 12% : 637.16 Наличными: 5999.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 137 23.06.2024 14:12 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112536 ФПД: 258156122604014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141222&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112536&fm=258156122604014&tin=02508201610067®Number=0000000000092771&sum=599900 [14:12:23]StoreToDocumentArchive [14:12:23]shift 392 fd 112536 [14:12:23]save to /storage/0392/doc_00112536 [14:12:23]save last doc name /storage/0392/doc_00112536 to /storage/kkm_last_doc_name [14:12:23]save OK [14:12:23]Clear old archive folders... [14:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:23]tlvbuf is 01BB3020 [14:12:23]SAM_PROTO_ClearQueue [14:12:23]wFMCommunicate request_size=4 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 09 00 00 [14:12:23]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [14:12:23]RAPDU: 90 00 [14:12:23]wFMCommunicate OK [14:12:23]SAM_PROTO_ClearQueue done [14:12:23]KKMCreateOFDPacket [14:12:23]OFDProtocolAddRootSTLVToBuf [14:12:23]FM_MakeSignedData [14:12:23]FM_MakeSignedData [14:12:23]SAM_PROTO_SignData [14:12:23]wFMCommunicate request_size=4 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 0D 01 02 [14:12:23]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [14:12:23]RAPDU: 90 00 [14:12:23]wFMCommunicate OK [14:12:23]wFMCommunicate request_size=255 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 3D 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 BA 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 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 E4 F8 00 00 00 00 07 04 06 00 5C 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 89 00 00 00 F4 03 04 00 46 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B7 01 00 35 04 06 00 EA [14:12:23]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 3D 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 BA 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 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 E4 F8 00 00 00 00 07 04 06 00 5C 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 89 00 00 00 F4 03 04 00 46 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B7 01 00 35 04 06 00 EA 00 00 28 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:24]Read from MH i2c: E2 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 03 00 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [14:12:24]RAPDU: 90 00 [14:12:24]wFMCommunicate OK [14:12:24]wFMCommunicate request_size=10 [14:12:24]MH_SAM_APDU [14:12:24]CAPDU: 80 0D 02 02 05 CA A7 FC 01 EE [14:12:24]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 CA A7 FC 01 EE 00 00 D8 [14:12:24]Write i2c OK [14:12:24]MH_I2C_Read... [14:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:24]Read from MH i2c: E2 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 03 00 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [14:12:24]RAPDU: 90 00 [14:12:24]wFMCommunicate OK [14:12:24]wFMCommunicate request_size=4 [14:12:24]MH_SAM_APDU [14:12:24]CAPDU: 80 0D 03 02 [14:12:24]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [14:12:24]Write i2c OK [14:12:24]MH_I2C_Read... [14:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:24]Read from MH i2c: E2 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 0B 00 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 0B 00 F9 00 00 EE AB FD B8 B8 1E 14 28 90 00 D5 [14:12:24]RAPDU: EE AB FD B8 B8 1E 14 28 90 00 [14:12:24]wFMCommunicate OK [14:12:24]SAM_PROTO_SignData done [14:12:24]FM_MakeSignedData done [14:12:24]CreateOFDProtocolMessage [14:12:24]wFMCommunicate request_size=4 [14:12:24]MH_SAM_APDU [14:12:24]CAPDU: 80 11 00 00 [14:12:24]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [14:12:24]Write i2c OK [14:12:24]MH_I2C_Read... [14:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:24]Read from MH i2c: E2 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 17 00 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [14:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:12:24]wFMCommunicate OK [14:12:24]CreateOFDProtocolMessage done [14:12:24]OFDSenderStorePacket 112536 [14:12:24]StoreOFDPacket docnum=112536 [14:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 90 07 01 08 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 3D 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 BA 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 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 E4 F8 00 00 00 00 07 04 06 00 5C 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 89 00 00 00 F4 03 04 00 46 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B7 01 00 35 04 06 00 EA CA A7 FC 01 EE EE AB FD B8 B8 1E 14 28 [14:12:24]CheckFolder [14:12:24]dirname=/storage/ofd_packets [14:12:24]CheckFolder done [14:12:24]ProducePacketName [14:12:24]name=ofd_packets/00112536 [14:12:24]NVStorageSaveData ofd_packets/00112536 [14:12:24]File name is /storage/ofd_packets/00112536 [14:12:24]Write 301 bytes [14:12:24]NVStorageSaveData done [14:12:24]OFDSenderStorePacket done [14:12:24]KKMCreateOFDPacket done [14:12:24]NVStorageSaveData kkm_last_timestamp [14:12:24]File name is /storage/kkm_last_timestamp [14:12:24]Write 4 bytes [14:12:24]NVStorageSaveData done [14:12:24]ExternCall_PrintAddStr [14:12:24]wPrintStart [14:12:24]Write to MH i2c: 01 00 00 FB 00 FB [14:12:24]Write i2c OK [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: 01 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: 01 07 00 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [14:12:24]RasterBufferAndPrint [14:12:24]line Счет N : (1)321217 [14:12:24]line ИНН: 02508201610067 [14:12:24]line Контрольно-Кассовый Чек [14:12:24]line ПРОДАЖА [14:12:24]line ТРК (МРК, ГНК) : 12 [14:12:24]line Товар: 2710124500 [14:12:24]line Аи-95-К-5 [14:12:24]line 81.190 * 73.90 [14:12:24]line = 5999.94 [14:12:24]line НДС 12% НСП 1% [14:12:24]line > о реализуемом товаре [14:12:24]line ОКРУГЛЕНИЕ: -0.94 [14:12:24]line ИТОГО: 5999.00 [14:12:24]line Внесено: 7000.00 [14:12:24]line СДАЧА: 1001.00 [14:12:24]line НСП 1% : 53.10 [14:12:24]line НДС 12% : 637.16 [14:12:24]line Наличными: 5999.00 [14:12:24]line Безнал.: 0.00 [14:12:24]line Место: АЗС № 65 "Партнер Нефть" [14:12:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:12:24]line СНО: Общий режим [14:12:24]line Чек 137 23.06.2024 14:12 [14:12:24]line Смена: 392 ФФД: 1.0 [14:12:24]line ЗНМ: 0300000198 [14:12:24]line РНМ: 0000000000092771 [14:12:24]line Версия ККМ: 001 [14:12:24]line ФМ: 0000000000875083 [14:12:24]line ФД: 112536 [14:12:24]line ФПД: 258156122604014 [14:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141222&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112536&fm=258156122604014&tin=02508201610067®Number=0000000000092771&sum=599900 [14:12:24]OFD Sender: Processing packet 112536 [packets to send 38, broken 37] [14:12:24]ProducePacketName [14:12:24]name=ofd_packets/00112536 [14:12:24]OFD Sender: To server: pG, [14:12:24]CommunicateWithHost lk.salyk.kg:30040 [14:12:24]ConnectInit lk.salyk.kg [14:12:24]written 0, free lines is 4095 [14:12:24]Connected sock=10 [14:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 90 07 01 08 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 3D 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 BA 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 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 E4 F8 00 00 00 00 07 04 06 00 5C 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 89 00 00 00 F4 03 04 00 46 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B7 01 00 35 04 06 00 EA CA A7 FC 01 EE EE AB FD B8 B8 1E 14 28 [14:12:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 83 21 47 00 37 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 38 37 35 30 38 33 10 04 04 00 98 B7 01 00 F4 03 04 00 31 C4 77 66 B6 04 01 00 00 3C 07 C0 50 7A A9 AA 6E [14:12:24]CommunicateWithHost err = 0 [14:12:24]CheckOFDResponse [14:12:24]1017 (14) - 77093643461234 [14:12:24]1041 (16) - 0000000000875083 [14:12:24]1040 (4) - 112536 [14:12:24]1012 (4) - 23.06.2024 06:44 [14:12:24]1206 (1) - 0 [14:12:24]OFD Sender: Remove packet 112536 [14:12:24]ProducePacketName [14:12:24]name=ofd_packets/00112536 [14:12:24]NVStorageDeleteData [14:12:25]Write to MH i2c: 01 00 00 26 01 27 [14:12:25]Write i2c OK [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: 01 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: 01 07 00 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 EC 0C 26 [14:12:25]RasterBufferAndPrint [14:12:25]line [14:12:25]line [14:12:25]line [14:12:25]line [14:12:25]line [14:12:25]written 0, free lines is 3314 [14:12:25]MH_Cut [14:12:25]Write to MH i2c: D1 01 00 2D 01 01 00 [14:12:25]Write i2c OK [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: D1 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: D1 01 00 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: D1 01 00 2D 01 00 FF [14:12:25]Write to MH i2c: 01 00 00 2E 01 2F [14:12:25]Write i2c OK [14:12:25]MH_I2C_Read... [14:12:25]OFD Sender: No OFD packet to send [14:12:25]*** Cut start [14:12:25]*** Partial cut [14:12:25]*** CUTSNS_PIN = 1 [14:12:25]*** CUTSNS_PIN = 0 [14:12:26]*** Brake cut motor [14:12:26]Read from MH i2c: 01 [14:12:26]MH_I2C_Read... [14:12:26]*** Stop cut motor [14:12:26]*** Cut end [14:12:26]Read from MH i2c: 01 07 00 [14:12:26]MH_I2C_Read... [14:12:26]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [14:12:26]process_action close_receipt done [14:12:26]requested_data is exist [14:12:26]produce_requested_data [14:12:26]requested_item fm.sn is exist - process it [14:12:26]wFMCommunicate request_size=4 [14:12:26]MH_SAM_APDU [14:12:26]CAPDU: 80 11 00 00 [14:12:26]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [14:12:26]Write i2c OK [14:12:26]MH_I2C_Read... [14:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:26]Read from MH i2c: E2 [14:12:26]MH_I2C_Read... [14:12:26]Read from MH i2c: E2 17 00 [14:12:26]MH_I2C_Read... [14:12:26]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [14:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:12:26]wFMCommunicate OK [14:12:26]requested_item fd.num is exist - process it [14:12:26]SAM_PROTO_GetFieldsCounters [14:12:26]wFMCommunicate request_size=4 [14:12:26]MH_SAM_APDU [14:12:26]CAPDU: 80 13 00 00 [14:12:26]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [14:12:26]Write i2c OK [14:12:26]MH_I2C_Read... [14:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:26]Read from MH i2c: E2 [14:12:26]MH_I2C_Read... [14:12:26]Read from MH i2c: E2 62 00 [14:12:26]MH_I2C_Read... [14:12:26]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 98 B7 01 00 0E 04 04 00 88 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 42 [14:12:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 98 B7 01 00 0E 04 04 00 88 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 [14:12:26]wFMCommunicate OK [14:12:26]SAM_PROTO_GetFieldsCounters done [14:12:26]requested_item shift.num is exist - process it [14:12:26]requested_item shift.opened is exist - process it [14:12:26]req_shift_opened [14:12:26]FM_GetShiftState [14:12:26]SAM_PROTO_GetShiftState [14:12:26]wFMCommunicate request_size=4 [14:12:26]MH_SAM_APDU [14:12:26]CAPDU: 80 13 01 00 [14:12:26]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [14:12:26]Write i2c OK [14:12:26]MH_I2C_Read... [14:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:26]Read from MH i2c: E2 [14:12:26]MH_I2C_Read... [14:12:26]Read from MH i2c: E2 0E 00 [14:12:26]MH_I2C_Read... [14:12:26]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CD [14:12:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:12:26]wFMCommunicate OK [14:12:26]SAM_PROTO_GetShiftState done [14:12:26]FM_GetShiftState done [14:12:26]req_shift_opened done [14:12:26]requested_item shift.open_date is exist - process it [14:12:26]req_shift_open_date [14:12:26]req_shift_open_date done [14:12:26]produce_requested_data done [14:12:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112536,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:12:26]process_action_free close_receipt [14:12:26]json_value_free [14:12:26]json_value_free done [14:12:26]process_json_proto returns [14:12:26]Send response to host [14:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112536,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:12:26]free response buf [14:12:26]execute_script done [14:12:26]execute_script returns [14:12:26]free content buf [14:12:26]Sock 9.Close socket [14:12:26]Sock 9.Thread stoped [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:23]accept exits with 8 [14:13:23]New connection [14:13:23]New thread 3066817892 created [14:13:23]Thread 3066674532 joined [14:13:23]Waiting for new connection... [14:13:23] Sock 8.Parse request [14:13:23]Sock 8.Check first char [14:13:23]Sock 8.First char is OK [14:13:23]request: POST /json_proto HTTP/1.0 [14:13:23]Method: POST [14:13:23]URL: /json_proto [14:13:23]Method is POST - this is cgi request [14:13:23]url: /json_proto [14:13:23]query_string will be loaded in cgi processing [14:13:23]execute_cgi json_proto POST (null) [14:13:23]execute_cgi path=json_proto method=POST [14:13:23]POST find Content-Length [14:13:23]Host: 172.17.59.68:8080 [14:13:23]Content-Length: 682 [14:13:23]Content-Type: application/json [14:13:23] [14:13:23]POST finish read [14:13:23]Found Content-Length = 682 [14:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 60.250, "sum" : 4000.60, "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" ] } } [14:13:23]execute_script... [14:13:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 60.250, "sum" : 4000.60, "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" ] } } [14:13:23]POST & json_proto [14:13:23]process_json_proto [14:13:23]json parsed OK: [14:13:23]protocol is kg_v1.0 [14:13:23]action value=close_receipt [14:13:23]process_action close_receipt [14:13:23]cmd_close_receipt [14:13:23]MH_GetDate [14:13:23]Write to MH i2c: F0 00 00 32 01 22 [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 09 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 09 00 32 01 00 83 2D 78 66 BC EC 60 65 26 [14:13:23]GetLastDocTimeStamp 1719151942 [14:13:23]current date 1719152003 [14:13:23]FM_GetShiftState [14:13:23]SAM_PROTO_GetShiftState [14:13:23]wFMCommunicate request_size=4 [14:13:23]MH_SAM_APDU [14:13:23]CAPDU: 80 13 01 00 [14:13:23]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:23]Read from MH i2c: E2 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: E2 0E 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CF [14:13:23]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:13:23]wFMCommunicate OK [14:13:23]SAM_PROTO_GetShiftState done [14:13:23]FM_GetShiftState done [14:13:23]opened in 1719106490 [14:13:23]opened+sec_in_day 1719192890 [14:13:23]quantity*price = 400060 [14:13:23]sum+1 = 400061 [14:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.84 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 138 23.06.2024 14:13 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112537 ФПД: 165387939180728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141323&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112537&fm=165387939180728&tin=02508201610067®Number=0000000000092771&sum=400000 [14:13:24]StoreToDocumentArchive [14:13:24]shift 392 fd 112537 [14:13:24]save to /storage/0392/doc_00112537 [14:13:24]save last doc name /storage/0392/doc_00112537 to /storage/kkm_last_doc_name [14:13:24]save OK [14:13:24]Clear old archive folders... [14:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:24]tlvbuf is 01BB9880 [14:13:24]SAM_PROTO_ClearQueue [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 09 00 00 [14:13:24]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [14:13:24]RAPDU: 90 00 [14:13:24]wFMCommunicate OK [14:13:24]SAM_PROTO_ClearQueue done [14:13:24]KKMCreateOFDPacket [14:13:24]OFDProtocolAddRootSTLVToBuf [14:13:24]FM_MakeSignedData [14:13:24]FM_MakeSignedData [14:13:24]SAM_PROTO_SignData [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 0D 01 02 [14:13:24]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [14:13:24]RAPDU: 90 00 [14:13:24]wFMCommunicate OK [14:13:24]wFMCommunicate request_size=255 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 8A 00 00 00 F4 03 04 00 83 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B7 01 00 35 04 06 00 96 [14:13:24]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 8A 00 00 00 F4 03 04 00 83 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B7 01 00 35 04 06 00 96 00 00 31 [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [14:13:25]RAPDU: 90 00 [14:13:25]wFMCommunicate OK [14:13:25]wFMCommunicate request_size=10 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 0D 02 02 05 6B 61 5D 70 B8 [14:13:25]Write to MH i2c: E2 0D 00 43 01 80 0D 02 02 05 00 6B 61 5D 70 B8 00 00 19 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [14:13:25]RAPDU: 90 00 [14:13:25]wFMCommunicate OK [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 0D 03 02 [14:13:25]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 0B 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 0B 00 44 01 00 6C B2 91 31 94 33 A9 76 90 00 87 [14:13:25]RAPDU: 6C B2 91 31 94 33 A9 76 90 00 [14:13:25]wFMCommunicate OK [14:13:25]SAM_PROTO_SignData done [14:13:25]FM_MakeSignedData done [14:13:25]CreateOFDProtocolMessage [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 11 00 00 [14:13:25]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 17 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [14:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:25]wFMCommunicate OK [14:13:25]CreateOFDProtocolMessage done [14:13:25]OFDSenderStorePacket 112537 [14:13:25]StoreOFDPacket docnum=112537 [14:13:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 56 07 01 C7 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 8A 00 00 00 F4 03 04 00 83 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B7 01 00 35 04 06 00 96 6B 61 5D 70 B8 6C B2 91 31 94 33 A9 76 [14:13:25]CheckFolder [14:13:25]dirname=/storage/ofd_packets [14:13:25]CheckFolder done [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00112537 [14:13:25]NVStorageSaveData ofd_packets/00112537 [14:13:25]File name is /storage/ofd_packets/00112537 [14:13:25]Write 301 bytes [14:13:25]NVStorageSaveData done [14:13:25]OFDSenderStorePacket done [14:13:25]KKMCreateOFDPacket done [14:13:25]NVStorageSaveData kkm_last_timestamp [14:13:25]File name is /storage/kkm_last_timestamp [14:13:25]Write 4 bytes [14:13:25]NVStorageSaveData done [14:13:25]ExternCall_PrintAddStr [14:13:25]wPrintStart [14:13:25]Write to MH i2c: 01 00 00 46 01 47 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [14:13:25]RasterBufferAndPrint [14:13:25]line Счет N : (1)321220 [14:13:25]line ИНН: 02508201610067 [14:13:25]line Контрольно-Кассовый Чек [14:13:25]line ПРОДАЖА [14:13:25]line ТРК (МРК, ГНК) : 11 [14:13:25]line Товар: 2710124130 [14:13:25]line Аи-92-К-5 [14:13:25]line 60.250 * 66.40 [14:13:25]line = 4000.60 [14:13:25]line НДС 12% НСП 1% [14:13:25]line > о реализуемом товаре [14:13:25]line ОКРУГЛЕНИЕ: -0.60 [14:13:25]line ИТОГО: 4000.00 [14:13:25]line Внесено: 4000.00 [14:13:25]line СДАЧА: 0.00 [14:13:25]line НСП 1% : 35.40 [14:13:25]line НДС 12% : 424.84 [14:13:25]line Наличными: 4000.00 [14:13:25]line Безнал.: 0.00 [14:13:25]line Место: АЗС № 65 "Партнер Нефть" [14:13:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:13:25]line СНО: Общий режим [14:13:25]line Чек 138 23.06.2024 14:13 [14:13:25]line Смена: 392 ФФД: 1.0 [14:13:25]line ЗНМ: 0300000198 [14:13:25]line РНМ: 0000000000092771 [14:13:25]line Версия ККМ: 001 [14:13:25]line ФМ: 0000000000875083 [14:13:25]line ФД: 112537 [14:13:25]line ФПД: 165387939180728 [14:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141323&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112537&fm=165387939180728&tin=02508201610067®Number=0000000000092771&sum=400000 [14:13:25]OFD Sender: Processing packet 112537 [packets to send 38, broken 37] [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00112537 [14:13:25]OFD Sender: To server: pG, [14:13:25]CommunicateWithHost lk.salyk.kg:30040 [14:13:25]ConnectInit lk.salyk.kg [14:13:25]written 0, free lines is 4095 [14:13:25]Connected sock=10 [14:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 56 07 01 C7 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 8A 00 00 00 F4 03 04 00 83 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B7 01 00 35 04 06 00 96 6B 61 5D 70 B8 6C B2 91 31 94 33 A9 76 [14:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4A 4E 47 00 25 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B7 01 00 F4 03 04 00 6F C4 77 66 B6 04 01 00 00 98 EA 5B E9 C2 F4 4D DB [14:13:25]CommunicateWithHost err = 0 [14:13:25]CheckOFDResponse [14:13:25]1017 (14) - 77093643461234 [14:13:25]1041 (16) - 0000000000875083 [14:13:25]1040 (4) - 112537 [14:13:25]1012 (4) - 23.06.2024 06:45 [14:13:25]1206 (1) - 0 [14:13:25]OFD Sender: Remove packet 112537 [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00112537 [14:13:25]NVStorageDeleteData [14:13:26]Write to MH i2c: 01 00 00 71 01 72 [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 07 00 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 E5 0C 6A [14:13:26]RasterBufferAndPrint [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]written 0, free lines is 3307 [14:13:26]MH_Cut [14:13:26]Write to MH i2c: D1 01 00 78 01 01 4B [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 01 00 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 01 00 78 01 00 4A [14:13:26]Write to MH i2c: 01 00 00 79 01 7A [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]OFD Sender: No OFD packet to send [14:13:26]*** Cut start [14:13:26]*** Partial cut [14:13:26]*** CUTSNS_PIN = 1 [14:13:26]*** CUTSNS_PIN = 0 [14:13:27]*** Brake cut motor [14:13:27]Read from MH i2c: 01 [14:13:27]MH_I2C_Read... [14:13:27]*** Stop cut motor [14:13:27]*** Cut end [14:13:27]Read from MH i2c: 01 07 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [14:13:27]process_action close_receipt done [14:13:27]requested_data is exist [14:13:27]produce_requested_data [14:13:27]requested_item fm.sn is exist - process it [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 11 00 00 [14:13:27]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 17 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [14:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:27]wFMCommunicate OK [14:13:27]requested_item fd.num is exist - process it [14:13:27]SAM_PROTO_GetFieldsCounters [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 13 00 00 [14:13:27]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 62 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 99 B7 01 00 0E 04 04 00 88 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 91 [14:13:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 99 B7 01 00 0E 04 04 00 88 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 [14:13:27]wFMCommunicate OK [14:13:27]SAM_PROTO_GetFieldsCounters done [14:13:27]requested_item shift.num is exist - process it [14:13:27]requested_item shift.opened is exist - process it [14:13:27]req_shift_opened [14:13:27]FM_GetShiftState [14:13:27]SAM_PROTO_GetShiftState [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 13 01 00 [14:13:27]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 0E 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 18 [14:13:27]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:13:27]wFMCommunicate OK [14:13:27]SAM_PROTO_GetShiftState done [14:13:27]FM_GetShiftState done [14:13:27]req_shift_opened done [14:13:27]requested_item shift.open_date is exist - process it [14:13:27]req_shift_open_date [14:13:27]req_shift_open_date done [14:13:27]produce_requested_data done [14:13:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112537,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:13:27]process_action_free close_receipt [14:13:27]json_value_free [14:13:27]json_value_free done [14:13:27]process_json_proto returns [14:13:27]Send response to host [14:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112537,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:13:27]free response buf [14:13:27]execute_script done [14:13:27]execute_script returns [14:13:27]free content buf [14:13:27]Sock 8.Close socket [14:13:27]Sock 8.Thread stoped [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:51]accept exits with 9 [14:14:51]New connection [14:14:51]New thread 3066674532 created [14:14:51]Thread 3066817892 joined [14:14:51]Waiting for new connection... [14:14:51] Sock 9.Parse request [14:14:51]Sock 9.Check first char [14:14:51]Sock 9.First char is OK [14:14:51]request: POST /json_proto HTTP/1.0 [14:14:51]Method: POST [14:14:51]URL: /json_proto [14:14:51]Method is POST - this is cgi request [14:14:51]url: /json_proto [14:14:51]query_string will be loaded in cgi processing [14:14:51]execute_cgi json_proto POST (null) [14:14:51]execute_cgi path=json_proto method=POST [14:14:51]POST find Content-Length [14:14:51]Host: 172.17.59.68:8080 [14:14:51]Content-Length: 678 [14:14:51]Content-Type: application/json [14:14:51] [14:14:51]POST finish read [14:14:51]Found Content-Length = 678 [14:14:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:14:51]execute_script... [14:14: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)321221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:14:51]POST & json_proto [14:14:51]process_json_proto [14:14:51]json parsed OK: [14:14:51]protocol is kg_v1.0 [14:14:51]action value=close_receipt [14:14:51]process_action close_receipt [14:14:51]cmd_close_receipt [14:14:51]MH_GetDate [14:14:51]Write to MH i2c: F0 00 00 7D 01 6D [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: F0 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: F0 09 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: F0 09 00 7D 01 00 DC 2D 78 66 BC EC 60 65 CA [14:14:51]GetLastDocTimeStamp 1719152003 [14:14:51]current date 1719152092 [14:14:51]FM_GetShiftState [14:14:51]SAM_PROTO_GetShiftState [14:14:51]wFMCommunicate request_size=4 [14:14:51]MH_SAM_APDU [14:14:51]CAPDU: 80 13 01 00 [14:14:51]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:51]Read from MH i2c: E2 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 0E 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 1A [14:14:51]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:14:51]wFMCommunicate OK [14:14:51]SAM_PROTO_GetShiftState done [14:14:51]FM_GetShiftState done [14:14:51]opened in 1719106490 [14:14:51]opened+sec_in_day 1719192890 [14:14:51]quantity*price = 70052 [14:14:51]sum+1 = 70053 [14:14:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 139 23.06.2024 14:14 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112538 ФПД: 212012738704984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141452&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112538&fm=212012738704984&tin=02508201610067®Number=0000000000092771&sum=70000 [14:14:53]StoreToDocumentArchive [14:14:53]shift 392 fd 112538 [14:14:53]save to /storage/0392/doc_00112538 [14:14:53]save last doc name /storage/0392/doc_00112538 to /storage/kkm_last_doc_name [14:14:53]save OK [14:14:53]Clear old archive folders... [14:14:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:53]tlvbuf is 01BBB2A0 [14:14:53]SAM_PROTO_ClearQueue [14:14:53]wFMCommunicate request_size=4 [14:14:53]MH_SAM_APDU [14:14:53]CAPDU: 80 09 00 00 [14:14:53]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [14:14:53]Write i2c OK [14:14:53]MH_I2C_Read... [14:14:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:53]Read from MH i2c: E2 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 03 00 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [14:14:53]RAPDU: 90 00 [14:14:53]wFMCommunicate OK [14:14:53]SAM_PROTO_ClearQueue done [14:14:53]KKMCreateOFDPacket [14:14:53]OFDProtocolAddRootSTLVToBuf [14:14:53]FM_MakeSignedData [14:14:53]FM_MakeSignedData [14:14:53]SAM_PROTO_SignData [14:14:53]wFMCommunicate request_size=4 [14:14:53]MH_SAM_APDU [14:14:53]CAPDU: 80 0D 01 02 [14:14:53]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [14:14:53]Write i2c OK [14:14:53]MH_I2C_Read... [14:14:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:53]Read from MH i2c: E2 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 03 00 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [14:14:53]RAPDU: 90 00 [14:14:53]wFMCommunicate OK [14:14:53]wFMCommunicate request_size=255 [14:14:53]MH_SAM_APDU [14:14:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 8B 00 00 00 F4 03 04 00 DC 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B7 01 00 35 04 06 00 C0 [14:14:53]Write to MH i2c: E2 02 01 8D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 8B 00 00 00 F4 03 04 00 DC 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B7 01 00 35 04 06 00 C0 00 00 D9 [14:14:53]Write i2c OK [14:14:53]MH_I2C_Read... [14:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:53]Read from MH i2c: E2 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 03 00 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [14:14:53]RAPDU: 90 00 [14:14:53]wFMCommunicate OK [14:14:53]wFMCommunicate request_size=10 [14:14:53]MH_SAM_APDU [14:14:53]CAPDU: 80 0D 02 02 05 D3 0F FA 76 58 [14:14:53]Write to MH i2c: E2 0D 00 8E 01 80 0D 02 02 05 00 D3 0F FA 76 58 00 00 BD [14:14:53]Write i2c OK [14:14:53]MH_I2C_Read... [14:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:53]Read from MH i2c: E2 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 03 00 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [14:14:53]RAPDU: 90 00 [14:14:53]wFMCommunicate OK [14:14:53]wFMCommunicate request_size=4 [14:14:53]MH_SAM_APDU [14:14:53]CAPDU: 80 0D 03 02 [14:14:53]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [14:14:53]Write i2c OK [14:14:53]MH_I2C_Read... [14:14:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:53]Read from MH i2c: E2 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 0B 00 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 0B 00 8F 01 00 21 5E 17 98 E1 26 F9 FB 90 00 35 [14:14:53]RAPDU: 21 5E 17 98 E1 26 F9 FB 90 00 [14:14:53]wFMCommunicate OK [14:14:53]SAM_PROTO_SignData done [14:14:53]FM_MakeSignedData done [14:14:53]CreateOFDProtocolMessage [14:14:53]wFMCommunicate request_size=4 [14:14:53]MH_SAM_APDU [14:14:53]CAPDU: 80 11 00 00 [14:14:53]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [14:14:53]Write i2c OK [14:14:53]MH_I2C_Read... [14:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:53]Read from MH i2c: E2 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 17 00 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [14:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:14:53]wFMCommunicate OK [14:14:53]CreateOFDProtocolMessage done [14:14:53]OFDSenderStorePacket 112538 [14:14:53]StoreOFDPacket docnum=112538 [14:14:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1D 2C 07 01 1D 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 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 8B 00 00 00 F4 03 04 00 DC 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B7 01 00 35 04 06 00 C0 D3 0F FA 76 58 21 5E 17 98 E1 26 F9 FB [14:14:53]CheckFolder [14:14:53]dirname=/storage/ofd_packets [14:14:53]CheckFolder done [14:14:53]ProducePacketName [14:14:53]name=ofd_packets/00112538 [14:14:53]NVStorageSaveData ofd_packets/00112538 [14:14:53]File name is /storage/ofd_packets/00112538 [14:14:53]Write 301 bytes [14:14:53]NVStorageSaveData done [14:14:53]OFDSenderStorePacket done [14:14:53]KKMCreateOFDPacket done [14:14:53]NVStorageSaveData kkm_last_timestamp [14:14:53]File name is /storage/kkm_last_timestamp [14:14:53]Write 4 bytes [14:14:53]NVStorageSaveData done [14:14:53]ExternCall_PrintAddStr [14:14:53]wPrintStart [14:14:53]Write to MH i2c: 01 00 00 91 01 92 [14:14:53]Write i2c OK [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: 01 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: 01 07 00 [14:14:53]MH_I2C_Read... [14:14:53]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [14:14:53]RasterBufferAndPrint [14:14:53]line Счет N : (1)321221 [14:14:53]line ИНН: 02508201610067 [14:14:53]line Контрольно-Кассовый Чек [14:14:53]line ПРОДАЖА [14:14:53]line ТРК (МРК, ГНК) : 11 [14:14:53]line Товар: 2710124130 [14:14:53]line Аи-92-К-5 [14:14:53]line 10.550 * 66.40 [14:14:53]line = 700.52 [14:14:53]line НДС 12% НСП 1% [14:14:53]line > о реализуемом товаре [14:14:53]line ОКРУГЛЕНИЕ: -0.52 [14:14:53]line ИТОГО: 700.00 [14:14:53]line Внесено: 700.00 [14:14:53]line СДАЧА: 0.00 [14:14:53]line НСП 1% : 6.20 [14:14:53]line НДС 12% : 74.39 [14:14:53]line Наличными: 700.00 [14:14:53]line Безнал.: 0.00 [14:14:53]line Место: АЗС № 65 "Партнер Нефть" [14:14:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:14:53]line СНО: Общий режим [14:14:53]line Чек 139 23.06.2024 14:14 [14:14:53]line Смена: 392 ФФД: 1.0 [14:14:53]line ЗНМ: 0300000198 [14:14:53]line РНМ: 0000000000092771 [14:14:53]line Версия ККМ: 001 [14:14:53]line ФМ: 0000000000875083 [14:14:53]line ФД: 112538 [14:14:53]line ФПД: 212012738704984 [14:14:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141452&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112538&fm=212012738704984&tin=02508201610067®Number=0000000000092771&sum=70000 [14:14:53]OFD Sender: Processing packet 112538 [packets to send 38, broken 37] [14:14:53]ProducePacketName [14:14:53]name=ofd_packets/00112538 [14:14:53]OFD Sender: To server: pG, [14:14:53]CommunicateWithHost lk.salyk.kg:30040 [14:14:53]ConnectInit lk.salyk.kg [14:14:53]written 0, free lines is 4095 [14:14:53]Connected sock=10 [14:14:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1D 2C 07 01 1D 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 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 8B 00 00 00 F4 03 04 00 DC 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B7 01 00 35 04 06 00 C0 D3 0F FA 76 58 21 5E 17 98 E1 26 F9 FB [14:14:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 D4 47 00 DD 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B7 01 00 F4 03 04 00 C7 C4 77 66 B6 04 01 00 00 03 08 C5 8B 6F A3 CE 69 [14:14:54]CommunicateWithHost err = 0 [14:14:54]CheckOFDResponse [14:14:54]1017 (14) - 77093643461234 [14:14:54]1041 (16) - 0000000000875083 [14:14:54]1040 (4) - 112538 [14:14:54]1012 (4) - 23.06.2024 06:46 [14:14:54]1206 (1) - 0 [14:14:54]OFD Sender: Remove packet 112538 [14:14:54]ProducePacketName [14:14:54]name=ofd_packets/00112538 [14:14:54]NVStorageDeleteData [14:14:54]Write to MH i2c: 01 00 00 BC 01 BD [14:14:54]Write i2c OK [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: 01 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: 01 07 00 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 DE 0C AE [14:14:54]RasterBufferAndPrint [14:14:54]line [14:14:54]line [14:14:54]line [14:14:54]line [14:14:54]line [14:14:54]written 0, free lines is 3301 [14:14:54]MH_Cut [14:14:54]Write to MH i2c: D1 01 00 C3 01 01 96 [14:14:54]Write i2c OK [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: D1 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: D1 01 00 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: D1 01 00 C3 01 00 95 [14:14:54]Write to MH i2c: 01 00 00 C4 01 C5 [14:14:54]Write i2c OK [14:14:54]MH_I2C_Read... [14:14:54]OFD Sender: No OFD packet to send [14:14:55]*** Cut start [14:14:55]*** Partial cut [14:14:55]*** CUTSNS_PIN = 1 [14:14:55]*** CUTSNS_PIN = 0 [14:14:55]*** Brake cut motor [14:14:55]Read from MH i2c: 01 [14:14:55]MH_I2C_Read... [14:14:55]*** Stop cut motor [14:14:55]*** Cut end [14:14:55]Read from MH i2c: 01 07 00 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [14:14:55]process_action close_receipt done [14:14:55]requested_data is exist [14:14:55]produce_requested_data [14:14:55]requested_item fm.sn is exist - process it [14:14:55]wFMCommunicate request_size=4 [14:14:55]MH_SAM_APDU [14:14:55]CAPDU: 80 11 00 00 [14:14:55]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [14:14:55]Write i2c OK [14:14:55]MH_I2C_Read... [14:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:55]Read from MH i2c: E2 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: E2 17 00 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [14:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:14:55]wFMCommunicate OK [14:14:55]requested_item fd.num is exist - process it [14:14:55]SAM_PROTO_GetFieldsCounters [14:14:55]wFMCommunicate request_size=4 [14:14:55]MH_SAM_APDU [14:14:55]CAPDU: 80 13 00 00 [14:14:55]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [14:14:55]Write i2c OK [14:14:55]MH_I2C_Read... [14:14:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:55]Read from MH i2c: E2 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: E2 62 00 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: E2 62 00 C6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B7 01 00 0E 04 04 00 88 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 E0 [14:14:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B7 01 00 0E 04 04 00 88 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 [14:14:55]wFMCommunicate OK [14:14:55]SAM_PROTO_GetFieldsCounters done [14:14:55]requested_item shift.num is exist - process it [14:14:55]requested_item shift.opened is exist - process it [14:14:55]req_shift_opened [14:14:55]FM_GetShiftState [14:14:55]SAM_PROTO_GetShiftState [14:14:55]wFMCommunicate request_size=4 [14:14:55]MH_SAM_APDU [14:14:55]CAPDU: 80 13 01 00 [14:14:55]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [14:14:55]Write i2c OK [14:14:55]MH_I2C_Read... [14:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:55]Read from MH i2c: E2 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: E2 0E 00 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 63 [14:14:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:14:55]wFMCommunicate OK [14:14:55]SAM_PROTO_GetShiftState done [14:14:55]FM_GetShiftState done [14:14:55]req_shift_opened done [14:14:55]requested_item shift.open_date is exist - process it [14:14:55]req_shift_open_date [14:14:55]req_shift_open_date done [14:14:55]produce_requested_data done [14:14:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112538,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:14:55]process_action_free close_receipt [14:14:55]json_value_free [14:14:55]json_value_free done [14:14:55]process_json_proto returns [14:14:55]Send response to host [14:14:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112538,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:14:55]free response buf [14:14:55]execute_script done [14:14:55]execute_script returns [14:14:55]free content buf [14:14:55]Sock 9.Close socket [14:14:55]Sock 9.Thread stoped [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]accept exits with 8 [14:15:09]New connection [14:15:09]New thread 3066817892 created [14:15:09]Thread 3066674532 joined [14:15:09]Waiting for new connection... [14:15:09] Sock 8.Parse request [14:15:09]Sock 8.Check first char [14:15:09]Sock 8.First char is OK [14:15:09]request: POST /json_proto HTTP/1.0 [14:15:09]Method: POST [14:15:09]URL: /json_proto [14:15:09]Method is POST - this is cgi request [14:15:09]url: /json_proto [14:15:09]query_string will be loaded in cgi processing [14:15:09]execute_cgi json_proto POST (null) [14:15:09]execute_cgi path=json_proto method=POST [14:15:09]POST find Content-Length [14:15:09]Host: 172.17.59.68:8080 [14:15:09]Content-Length: 677 [14:15:09]Content-Type: application/json [14:15:09] [14:15:09]POST finish read [14:15:09]Found Content-Length = 677 [14:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:15:09]execute_script... [14:15:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:15:09]POST & json_proto [14:15:09]process_json_proto [14:15:09]json parsed OK: [14:15:09]protocol is kg_v1.0 [14:15:09]action value=close_receipt [14:15:09]process_action close_receipt [14:15:09]cmd_close_receipt [14:15:09]MH_GetDate [14:15:09]Write to MH i2c: F0 00 00 C8 01 B8 [14:15:09]Write i2c OK [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: F0 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: F0 09 00 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: F0 09 00 C8 01 00 ED 2D 78 66 BC EC 60 65 26 [14:15:09]GetLastDocTimeStamp 1719152092 [14:15:09]current date 1719152109 [14:15:09]FM_GetShiftState [14:15:09]SAM_PROTO_GetShiftState [14:15:09]wFMCommunicate request_size=4 [14:15:09]MH_SAM_APDU [14:15:09]CAPDU: 80 13 01 00 [14:15:09]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [14:15:09]Write i2c OK [14:15:09]MH_I2C_Read... [14:15:09]OFD Sender: No OFD packet to send [14:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:09]Read from MH i2c: E2 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 0E 00 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 65 [14:15:09]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:15:09]wFMCommunicate OK [14:15:09]SAM_PROTO_GetShiftState done [14:15:09]FM_GetShiftState done [14:15:09]opened in 1719106490 [14:15:09]opened+sec_in_day 1719192890 [14:15:09]quantity*price = 20052 [14:15:09]sum+1 = 20054 [14:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 140 23.06.2024 14:15 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112539 ФПД: 39105396368173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141509&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112539&fm=39105396368173&tin=02508201610067®Number=0000000000092771&sum=20000 [14:15:10]StoreToDocumentArchive [14:15:10]shift 392 fd 112539 [14:15:10]save to /storage/0392/doc_00112539 [14:15:10]save last doc name /storage/0392/doc_00112539 to /storage/kkm_last_doc_name [14:15:10]save OK [14:15:10]Clear old archive folders... [14:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:10]tlvbuf is 01BD7B60 [14:15:10]SAM_PROTO_ClearQueue [14:15:10]wFMCommunicate request_size=4 [14:15:10]MH_SAM_APDU [14:15:10]CAPDU: 80 09 00 00 [14:15:10]Write to MH i2c: E2 08 00 D6 01 80 09 00 00 00 00 00 00 49 [14:15:10]Write i2c OK [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 [14:15:10]MH_I2C_Read... [14:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:10]Read from MH i2c: E2 03 00 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [14:15:10]RAPDU: 90 00 [14:15:10]wFMCommunicate OK [14:15:10]SAM_PROTO_ClearQueue done [14:15:10]KKMCreateOFDPacket [14:15:10]OFDProtocolAddRootSTLVToBuf [14:15:10]FM_MakeSignedData [14:15:10]FM_MakeSignedData [14:15:10]SAM_PROTO_SignData [14:15:10]wFMCommunicate request_size=4 [14:15:10]MH_SAM_APDU [14:15:10]CAPDU: 80 0D 01 02 [14:15:10]Write to MH i2c: E2 08 00 D7 01 80 0D 01 02 00 00 00 00 51 [14:15:10]Write i2c OK [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 [14:15:10]MH_I2C_Read... [14:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:10]Read from MH i2c: E2 03 00 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [14:15:10]RAPDU: 90 00 [14:15:10]wFMCommunicate OK [14:15:10]wFMCommunicate request_size=255 [14:15:10]MH_SAM_APDU [14:15:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 8C 00 00 00 F4 03 04 00 ED 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B7 01 00 35 04 06 00 23 [14:15:10]Write to MH i2c: E2 02 01 D8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 8C 00 00 00 F4 03 04 00 ED 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B7 01 00 35 04 06 00 23 00 00 47 [14:15:10]Write i2c OK [14:15:10]MH_I2C_Read... [14:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:11]Read from MH i2c: E2 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: E2 03 00 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [14:15:11]RAPDU: 90 00 [14:15:11]wFMCommunicate OK [14:15:11]wFMCommunicate request_size=10 [14:15:11]MH_SAM_APDU [14:15:11]CAPDU: 80 0D 02 02 05 90 EF 42 63 2D [14:15:11]Write to MH i2c: E2 0D 00 D9 01 80 0D 02 02 05 00 90 EF 42 63 2D 00 00 AF [14:15:11]Write i2c OK [14:15:11]MH_I2C_Read... [14:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:11]Read from MH i2c: E2 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: E2 03 00 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [14:15:11]RAPDU: 90 00 [14:15:11]wFMCommunicate OK [14:15:11]wFMCommunicate request_size=4 [14:15:11]MH_SAM_APDU [14:15:11]CAPDU: 80 0D 03 02 [14:15:11]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [14:15:11]Write i2c OK [14:15:11]MH_I2C_Read... [14:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:11]Read from MH i2c: E2 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: E2 0B 00 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: E2 0B 00 DA 01 00 D2 23 6D DC 24 9E 20 EE 90 00 65 [14:15:11]RAPDU: D2 23 6D DC 24 9E 20 EE 90 00 [14:15:11]wFMCommunicate OK [14:15:11]SAM_PROTO_SignData done [14:15:11]FM_MakeSignedData done [14:15:11]CreateOFDProtocolMessage [14:15:11]wFMCommunicate request_size=4 [14:15:11]MH_SAM_APDU [14:15:11]CAPDU: 80 11 00 00 [14:15:11]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [14:15:11]Write i2c OK [14:15:11]MH_I2C_Read... [14:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:11]Read from MH i2c: E2 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: E2 17 00 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [14:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:15:11]wFMCommunicate OK [14:15:11]CreateOFDProtocolMessage done [14:15:11]OFDSenderStorePacket 112539 [14:15:11]StoreOFDPacket docnum=112539 [14:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 61 05 07 01 A2 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 8C 00 00 00 F4 03 04 00 ED 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B7 01 00 35 04 06 00 23 90 EF 42 63 2D D2 23 6D DC 24 9E 20 EE [14:15:11]CheckFolder [14:15:11]dirname=/storage/ofd_packets [14:15:11]CheckFolder done [14:15:11]ProducePacketName [14:15:11]name=ofd_packets/00112539 [14:15:11]NVStorageSaveData ofd_packets/00112539 [14:15:11]File name is /storage/ofd_packets/00112539 [14:15:11]Write 301 bytes [14:15:11]NVStorageSaveData done [14:15:11]OFDSenderStorePacket done [14:15:11]KKMCreateOFDPacket done [14:15:11]NVStorageSaveData kkm_last_timestamp [14:15:11]File name is /storage/kkm_last_timestamp [14:15:11]Write 4 bytes [14:15:11]NVStorageSaveData done [14:15:11]ExternCall_PrintAddStr [14:15:11]wPrintStart [14:15:11]Write to MH i2c: 01 00 00 DC 01 DD [14:15:11]Write i2c OK [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: 01 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: 01 07 00 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [14:15:11]RasterBufferAndPrint [14:15:11]line Счет N : (1)321222 [14:15:11]line ИНН: 02508201610067 [14:15:11]line Контрольно-Кассовый Чек [14:15:11]line ПРОДАЖА [14:15:11]line ТРК (МРК, ГНК) : 11 [14:15:11]line Товар: 2710124130 [14:15:11]line Аи-92-К-5 [14:15:11]line 3.020 * 66.40 [14:15:11]line = 200.53 [14:15:11]line НДС 12% НСП 1% [14:15:11]line > о реализуемом товаре [14:15:11]line ОКРУГЛЕНИЕ: -0.53 [14:15:11]line ИТОГО: 200.00 [14:15:11]line Внесено: 200.00 [14:15:11]line СДАЧА: 0.00 [14:15:11]line НСП 1% : 1.77 [14:15:11]line НДС 12% : 21.29 [14:15:11]line Наличными: 200.00 [14:15:11]line Безнал.: 0.00 [14:15:11]line Место: АЗС № 65 "Партнер Нефть" [14:15:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:15:11]line СНО: Общий режим [14:15:11]line Чек 140 23.06.2024 14:15 [14:15:11]line Смена: 392 ФФД: 1.0 [14:15:11]line ЗНМ: 0300000198 [14:15:11]line РНМ: 0000000000092771 [14:15:11]line Версия ККМ: 001 [14:15:11]line ФМ: 0000000000875083 [14:15:11]line ФД: 112539 [14:15:11]line ФПД: 39105396368173 [14:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141509&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112539&fm=39105396368173&tin=02508201610067®Number=0000000000092771&sum=20000 [14:15:11]OFD Sender: Processing packet 112539 [packets to send 38, broken 37] [14:15:11]ProducePacketName [14:15:11]name=ofd_packets/00112539 [14:15:11]OFD Sender: To server: pG, [14:15:11]CommunicateWithHost lk.salyk.kg:30040 [14:15:11]ConnectInit lk.salyk.kg [14:15:11]written 0, free lines is 4095 [14:15:11]Connected sock=10 [14:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 61 05 07 01 A2 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 8C 00 00 00 F4 03 04 00 ED 2D 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B7 01 00 35 04 06 00 23 90 EF 42 63 2D D2 23 6D DC 24 9E 20 EE [14:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC EA 47 00 BB 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B7 01 00 F4 03 04 00 D9 C4 77 66 B6 04 01 00 00 2B F3 98 32 87 4E 0A 6F [14:15:12]CommunicateWithHost err = 0 [14:15:12]CheckOFDResponse [14:15:12]1017 (14) - 77093643461234 [14:15:12]1041 (16) - 0000000000875083 [14:15:12]1040 (4) - 112539 [14:15:12]1012 (4) - 23.06.2024 06:46 [14:15:12]1206 (1) - 0 [14:15:12]OFD Sender: Remove packet 112539 [14:15:12]ProducePacketName [14:15:12]name=ofd_packets/00112539 [14:15:12]NVStorageDeleteData [14:15:12]Write to MH i2c: 01 00 00 07 02 09 [14:15:12]Write i2c OK [14:15:12]MH_I2C_Read... [14:15:12]Read from MH i2c: 01 [14:15:12]MH_I2C_Read... [14:15:12]Read from MH i2c: 01 07 00 [14:15:12]MH_I2C_Read... [14:15:12]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 CD 0C E9 [14:15:12]RasterBufferAndPrint [14:15:12]line [14:15:12]line [14:15:12]line [14:15:12]line [14:15:12]line [14:15:12]written 0, free lines is 3283 [14:15:12]MH_Cut [14:15:12]Write to MH i2c: D1 01 00 0E 02 01 E2 [14:15:12]Write i2c OK [14:15:12]MH_I2C_Read... [14:15:12]Read from MH i2c: D1 [14:15:12]MH_I2C_Read... [14:15:12]Read from MH i2c: D1 01 00 [14:15:12]MH_I2C_Read... [14:15:12]Read from MH i2c: D1 01 00 0E 02 00 E1 [14:15:12]Write to MH i2c: 01 00 00 0F 02 11 [14:15:12]Write i2c OK [14:15:12]MH_I2C_Read... [14:15:12]OFD Sender: No OFD packet to send [14:15:12]*** Cut start [14:15:12]*** Partial cut [14:15:12]*** CUTSNS_PIN = 1 [14:15:12]*** CUTSNS_PIN = 0 [14:15:13]*** Brake cut motor [14:15:13]Read from MH i2c: 01 [14:15:13]MH_I2C_Read... [14:15:13]*** Stop cut motor [14:15:13]*** Cut end [14:15:13]Read from MH i2c: 01 07 00 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [14:15:13]process_action close_receipt done [14:15:13]requested_data is exist [14:15:13]produce_requested_data [14:15:13]requested_item fm.sn is exist - process it [14:15:13]wFMCommunicate request_size=4 [14:15:13]MH_SAM_APDU [14:15:13]CAPDU: 80 11 00 00 [14:15:13]Write to MH i2c: E2 08 00 10 02 80 11 00 00 00 00 00 00 8C [14:15:13]Write i2c OK [14:15:13]MH_I2C_Read... [14:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:13]Read from MH i2c: E2 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 17 00 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 17 00 10 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [14:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:15:13]wFMCommunicate OK [14:15:13]requested_item fd.num is exist - process it [14:15:13]SAM_PROTO_GetFieldsCounters [14:15:13]wFMCommunicate request_size=4 [14:15:13]MH_SAM_APDU [14:15:13]CAPDU: 80 13 00 00 [14:15:13]Write to MH i2c: E2 08 00 11 02 80 13 00 00 00 00 00 00 8F [14:15:13]Write i2c OK [14:15:13]MH_I2C_Read... [14:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:13]Read from MH i2c: E2 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 62 00 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 62 00 11 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B7 01 00 0E 04 04 00 88 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 30 [14:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B7 01 00 0E 04 04 00 88 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 [14:15:13]wFMCommunicate OK [14:15:13]SAM_PROTO_GetFieldsCounters done [14:15:13]requested_item shift.num is exist - process it [14:15:13]requested_item shift.opened is exist - process it [14:15:13]req_shift_opened [14:15:13]FM_GetShiftState [14:15:13]SAM_PROTO_GetShiftState [14:15:13]wFMCommunicate request_size=4 [14:15:13]MH_SAM_APDU [14:15:13]CAPDU: 80 13 01 00 [14:15:13]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [14:15:13]Write i2c OK [14:15:13]MH_I2C_Read... [14:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:13]Read from MH i2c: E2 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 0E 00 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 AF [14:15:13]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:15:13]wFMCommunicate OK [14:15:13]SAM_PROTO_GetShiftState done [14:15:13]FM_GetShiftState done [14:15:13]req_shift_opened done [14:15:13]requested_item shift.open_date is exist - process it [14:15:13]req_shift_open_date [14:15:13]req_shift_open_date done [14:15:13]produce_requested_data done [14:15:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112539,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:15:13]process_action_free close_receipt [14:15:13]json_value_free [14:15:13]json_value_free done [14:15:13]process_json_proto returns [14:15:13]Send response to host [14:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112539,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:15:13]free response buf [14:15:13]execute_script done [14:15:13]execute_script returns [14:15:13]free content buf [14:15:13]Sock 8.Close socket [14:15:13]Sock 8.Thread stoped [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:16]accept exits with 9 [14:16:16]New connection [14:16:16]New thread 3066674532 created [14:16:16]Thread 3066817892 joined [14:16:16]Waiting for new connection... [14:16:16] Sock 9.Parse request [14:16:16]Sock 9.Check first char [14:16:16]Sock 9.First char is OK [14:16:16]request: POST /json_proto HTTP/1.0 [14:16:16]Method: POST [14:16:16]URL: /json_proto [14:16:16]Method is POST - this is cgi request [14:16:16]url: /json_proto [14:16:16]query_string will be loaded in cgi processing [14:16:16]execute_cgi json_proto POST (null) [14:16:16]execute_cgi path=json_proto method=POST [14:16:16]POST find Content-Length [14:16:16]Host: 172.17.59.68:8080 [14:16:16]Content-Length: 677 [14:16:16]Content-Type: application/json [14:16:16] [14:16:16]POST finish read [14:16:16]Found Content-Length = 677 [14:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:16:16]execute_script... [14:16: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)321223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:16:16]POST & json_proto [14:16:16]process_json_proto [14:16:16]json parsed OK: [14:16:16]protocol is kg_v1.0 [14:16:16]action value=close_receipt [14:16:16]process_action close_receipt [14:16:16]cmd_close_receipt [14:16:16]MH_GetDate [14:16:16]Write to MH i2c: F0 00 00 13 02 04 [14:16:16]Write i2c OK [14:16:16]MH_I2C_Read... [14:16:16]Read from MH i2c: F0 [14:16:16]MH_I2C_Read... [14:16:16]Read from MH i2c: F0 09 00 [14:16:16]MH_I2C_Read... [14:16:16]Read from MH i2c: F0 09 00 13 02 00 31 2E 78 66 BC EC 60 65 B7 [14:16:16]GetLastDocTimeStamp 1719152109 [14:16:16]current date 1719152177 [14:16:16]FM_GetShiftState [14:16:16]SAM_PROTO_GetShiftState [14:16:16]wFMCommunicate request_size=4 [14:16:16]MH_SAM_APDU [14:16:16]CAPDU: 80 13 01 00 [14:16:16]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [14:16:16]Write i2c OK [14:16:16]MH_I2C_Read... [14:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:16]Read from MH i2c: E2 [14:16:16]MH_I2C_Read... [14:16:16]Read from MH i2c: E2 0E 00 [14:16:16]MH_I2C_Read... [14:16:16]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B1 [14:16:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:16:16]wFMCommunicate OK [14:16:16]SAM_PROTO_GetShiftState done [14:16:16]FM_GetShiftState done [14:16:16]opened in 1719106490 [14:16:16]opened+sec_in_day 1719192890 [14:16:16]quantity*price = 50065 [14:16:16]sum+1 = 50067 [14:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 141 23.06.2024 14:16 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112540 ФПД: 277831164905378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141617&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112540&fm=277831164905378&tin=02508201610067®Number=0000000000092771&sum=50000 [14:16:18]StoreToDocumentArchive [14:16:18]shift 392 fd 112540 [14:16:18]save to /storage/0392/doc_00112540 [14:16:18]save last doc name /storage/0392/doc_00112540 to /storage/kkm_last_doc_name [14:16:18]save OK [14:16:18]Clear old archive folders... [14:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:18]tlvbuf is 01BB1170 [14:16:18]SAM_PROTO_ClearQueue [14:16:18]wFMCommunicate request_size=4 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 09 00 00 [14:16:18]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [14:16:18]RAPDU: 90 00 [14:16:18]wFMCommunicate OK [14:16:18]SAM_PROTO_ClearQueue done [14:16:18]KKMCreateOFDPacket [14:16:18]OFDProtocolAddRootSTLVToBuf [14:16:18]FM_MakeSignedData [14:16:18]FM_MakeSignedData [14:16:18]SAM_PROTO_SignData [14:16:18]wFMCommunicate request_size=4 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 0D 01 02 [14:16:18]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [14:16:18]RAPDU: 90 00 [14:16:18]wFMCommunicate OK [14:16:18]wFMCommunicate request_size=255 [14:16:18]MH_SAM_APDU [14:16: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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 8D 00 00 00 F4 03 04 00 31 2E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B7 01 00 35 04 06 00 FC [14:16:18]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 8D 00 00 00 F4 03 04 00 31 2E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B7 01 00 35 04 06 00 FC 00 00 F4 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [14:16:18]RAPDU: 90 00 [14:16:18]wFMCommunicate OK [14:16:18]wFMCommunicate request_size=10 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 0D 02 02 05 AF 9B E4 47 A2 [14:16:18]Write to MH i2c: E2 0D 00 24 02 80 0D 02 02 05 00 AF 9B E4 47 A2 00 00 C1 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [14:16:18]RAPDU: 90 00 [14:16:18]wFMCommunicate OK [14:16:18]wFMCommunicate request_size=4 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 0D 03 02 [14:16:18]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 0B 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 0B 00 25 02 00 AB 33 6C 44 8F BF 9F 91 90 00 AF [14:16:18]RAPDU: AB 33 6C 44 8F BF 9F 91 90 00 [14:16:18]wFMCommunicate OK [14:16:18]SAM_PROTO_SignData done [14:16:18]FM_MakeSignedData done [14:16:18]CreateOFDProtocolMessage [14:16:18]wFMCommunicate request_size=4 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 11 00 00 [14:16:18]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 17 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [14:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:18]wFMCommunicate OK [14:16:18]CreateOFDProtocolMessage done [14:16:18]OFDSenderStorePacket 112540 [14:16:18]StoreOFDPacket docnum=112540 [14:16:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 2B 07 01 56 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 8D 00 00 00 F4 03 04 00 31 2E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B7 01 00 35 04 06 00 FC AF 9B E4 47 A2 AB 33 6C 44 8F BF 9F 91 [14:16:18]CheckFolder [14:16:18]dirname=/storage/ofd_packets [14:16:18]CheckFolder done [14:16:18]ProducePacketName [14:16:18]name=ofd_packets/00112540 [14:16:18]NVStorageSaveData ofd_packets/00112540 [14:16:18]File name is /storage/ofd_packets/00112540 [14:16:18]Write 301 bytes [14:16:18]NVStorageSaveData done [14:16:18]OFDSenderStorePacket done [14:16:18]KKMCreateOFDPacket done [14:16:18]NVStorageSaveData kkm_last_timestamp [14:16:18]File name is /storage/kkm_last_timestamp [14:16:18]Write 4 bytes [14:16:18]NVStorageSaveData done [14:16:18]ExternCall_PrintAddStr [14:16:18]wPrintStart [14:16:18]Write to MH i2c: 01 00 00 27 02 29 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: 01 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: 01 07 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [14:16:18]RasterBufferAndPrint [14:16:18]line Счет N : (1)321223 [14:16:18]line ИНН: 02508201610067 [14:16:18]line Контрольно-Кассовый Чек [14:16:18]line ПРОДАЖА [14:16:18]line ТРК (МРК, ГНК) : 11 [14:16:18]line Товар: 2710124130 [14:16:18]line Аи-92-К-5 [14:16:18]line 7.540 * 66.40 [14:16:18]line = 500.66 [14:16:18]line НДС 12% НСП 1% [14:16:18]line > о реализуемом товаре [14:16:18]line ОКРУГЛЕНИЕ: -0.66 [14:16:18]line ИТОГО: 500.00 [14:16:18]line Внесено: 500.00 [14:16:18]line СДАЧА: 0.00 [14:16:18]line НСП 1% : 4.43 [14:16:18]line НДС 12% : 53.17 [14:16:18]line Наличными: 500.00 [14:16:18]line Безнал.: 0.00 [14:16:18]line Место: АЗС № 65 "Партнер Нефть" [14:16:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:16:18]line СНО: Общий режим [14:16:18]line Чек 141 23.06.2024 14:16 [14:16:18]line Смена: 392 ФФД: 1.0 [14:16:18]line ЗНМ: 0300000198 [14:16:18]line РНМ: 0000000000092771 [14:16:18]line Версия ККМ: 001 [14:16:18]line ФМ: 0000000000875083 [14:16:18]line ФД: 112540 [14:16:18]line ФПД: 277831164905378 [14:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141617&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112540&fm=277831164905378&tin=02508201610067®Number=0000000000092771&sum=50000 [14:16:18]OFD Sender: Processing packet 112540 [packets to send 38, broken 37] [14:16:18]ProducePacketName [14:16:18]name=ofd_packets/00112540 [14:16:18]OFD Sender: To server: pG, [14:16:18]CommunicateWithHost lk.salyk.kg:30040 [14:16:18]ConnectInit lk.salyk.kg [14:16:18]written 0, free lines is 4095 [14:16:18]Connected sock=8 [14:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 2B 07 01 56 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 8D 00 00 00 F4 03 04 00 31 2E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B7 01 00 35 04 06 00 FC AF 9B E4 47 A2 AB 33 6C 44 8F BF 9F 91 [14:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 57 17 47 00 D5 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B7 01 00 F4 03 04 00 1C C5 77 66 B6 04 01 00 00 8A 26 44 9C A7 88 92 1A [14:16:19]CommunicateWithHost err = 0 [14:16:19]CheckOFDResponse [14:16:19]1017 (14) - 77093643461234 [14:16:19]1041 (16) - 0000000000875083 [14:16:19]1040 (4) - 112540 [14:16:19]1012 (4) - 23.06.2024 06:47 [14:16:19]1206 (1) - 0 [14:16:19]OFD Sender: Remove packet 112540 [14:16:19]ProducePacketName [14:16:19]name=ofd_packets/00112540 [14:16:19]NVStorageDeleteData [14:16:19]Write to MH i2c: 01 00 00 52 02 54 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 F5 0C 5C [14:16:19]RasterBufferAndPrint [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]written 0, free lines is 3324 [14:16:19]MH_Cut [14:16:19]Write to MH i2c: D1 01 00 59 02 01 2D [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 01 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 01 00 59 02 00 2C [14:16:19]Write to MH i2c: 01 00 00 5A 02 5C [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]OFD Sender: No OFD packet to send [14:16:20]*** Cut start [14:16:20]*** Partial cut [14:16:20]*** CUTSNS_PIN = 1 [14:16:20]*** CUTSNS_PIN = 0 [14:16:20]*** Brake cut motor [14:16:20]Read from MH i2c: 01 [14:16:20]MH_I2C_Read... [14:16:20]*** Stop cut motor [14:16:20]*** Cut end [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 5A 02 00 00 00 00 00 FF 0F 71 [14:16:20]process_action close_receipt done [14:16:20]requested_data is exist [14:16:20]produce_requested_data [14:16:20]requested_item fm.sn is exist - process it [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 5B 02 80 11 00 00 00 00 00 00 D7 [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 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [14:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:20]wFMCommunicate OK [14:16:20]requested_item fd.num is exist - process it [14:16:20]SAM_PROTO_GetFieldsCounters [14:16:20]wFMCommunicate request_size=4 [14:16:20]MH_SAM_APDU [14:16:20]CAPDU: 80 13 00 00 [14:16:20]Write to MH i2c: E2 08 00 5C 02 80 13 00 00 00 00 00 00 DA [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:20]Read from MH i2c: E2 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 62 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 62 00 5C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B7 01 00 0E 04 04 00 88 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 7F [14:16:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B7 01 00 0E 04 04 00 88 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 [14:16:20]wFMCommunicate OK [14:16:20]SAM_PROTO_GetFieldsCounters done [14:16:20]requested_item shift.num is exist - process it [14:16:20]requested_item shift.opened is exist - process it [14:16:20]req_shift_opened [14:16:20]FM_GetShiftState [14:16:20]SAM_PROTO_GetShiftState [14:16:20]wFMCommunicate request_size=4 [14:16:20]MH_SAM_APDU [14:16:20]CAPDU: 80 13 01 00 [14:16:20]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:20]Read from MH i2c: E2 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 0E 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FA [14:16:20]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:16:20]wFMCommunicate OK [14:16:20]SAM_PROTO_GetShiftState done [14:16:20]FM_GetShiftState done [14:16:20]req_shift_opened done [14:16:20]requested_item shift.open_date is exist - process it [14:16:20]req_shift_open_date [14:16:20]req_shift_open_date done [14:16:20]produce_requested_data done [14:16:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112540,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:16:20]process_action_free close_receipt [14:16:20]json_value_free [14:16:20]json_value_free done [14:16:20]process_json_proto returns [14:16:20]Send response to host [14:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112540,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:16:20]free response buf [14:16:20]execute_script done [14:16:20]execute_script returns [14:16:20]free content buf [14:16:20]Sock 9.Close socket [14:16:20]Sock 9.Thread stoped [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:05]accept exits with 10 [14:17:05]New connection [14:17:05]New thread 3066817892 created [14:17:05]Thread 3066674532 joined [14:17:05]Waiting for new connection... [14:17:05] Sock 10.Parse request [14:17:05]Sock 10.Check first char [14:17:05]Sock 10.First char is OK [14:17:05]request: POST /json_proto HTTP/1.0 [14:17:05]Method: POST [14:17:05]URL: /json_proto [14:17:05]Method is POST - this is cgi request [14:17:05]url: /json_proto [14:17:05]query_string will be loaded in cgi processing [14:17:05]execute_cgi json_proto POST (null) [14:17:05]execute_cgi path=json_proto method=POST [14:17:05]POST find Content-Length [14:17:05]Host: 172.17.59.68:8080 [14:17:05]Content-Length: 677 [14:17:05]Content-Type: application/json [14:17:05] [14:17:05]POST finish read [14:17:05]Found Content-Length = 677 [14:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:17:05]execute_script... [14:17: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)321224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:17:05]POST & json_proto [14:17:05]process_json_proto [14:17:05]json parsed OK: [14:17:05]protocol is kg_v1.0 [14:17:05]action value=close_receipt [14:17:05]process_action close_receipt [14:17:05]cmd_close_receipt [14:17:05]MH_GetDate [14:17:05]Write to MH i2c: F0 00 00 5E 02 4F [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: F0 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: F0 09 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: F0 09 00 5E 02 00 62 2E 78 66 BC EC 60 65 33 [14:17:05]GetLastDocTimeStamp 1719152177 [14:17:05]current date 1719152226 [14:17:05]FM_GetShiftState [14:17:05]SAM_PROTO_GetShiftState [14:17:05]wFMCommunicate request_size=4 [14:17:05]MH_SAM_APDU [14:17:05]CAPDU: 80 13 01 00 [14:17:05]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:05]Read from MH i2c: E2 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: E2 0E 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 FC [14:17:05]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:17:05]wFMCommunicate OK [14:17:05]SAM_PROTO_GetShiftState done [14:17:05]FM_GetShiftState done [14:17:05]opened in 1719106490 [14:17:05]opened+sec_in_day 1719192890 [14:17:05]quantity*price = 50065 [14:17:05]sum+1 = 50067 [14:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 142 23.06.2024 14:17 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112541 ФПД: 214928593728227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141706&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112541&fm=214928593728227&tin=02508201610067®Number=0000000000092771&sum=50000 [14:17:06]StoreToDocumentArchive [14:17:06]shift 392 fd 112541 [14:17:06]save to /storage/0392/doc_00112541 [14:17:06]save last doc name /storage/0392/doc_00112541 to /storage/kkm_last_doc_name [14:17:06]save OK [14:17:06]Clear old archive folders... [14:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:06]tlvbuf is 01B72A40 [14:17:06]SAM_PROTO_ClearQueue [14:17:06]wFMCommunicate request_size=4 [14:17:06]MH_SAM_APDU [14:17:06]CAPDU: 80 09 00 00 [14:17:06]Write to MH i2c: E2 08 00 6C 02 80 09 00 00 00 00 00 00 E0 [14:17:06]Write i2c OK [14:17:06]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [14:17:07]RAPDU: 90 00 [14:17:07]wFMCommunicate OK [14:17:07]SAM_PROTO_ClearQueue done [14:17:07]KKMCreateOFDPacket [14:17:07]OFDProtocolAddRootSTLVToBuf [14:17:07]FM_MakeSignedData [14:17:07]FM_MakeSignedData [14:17:07]SAM_PROTO_SignData [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 0D 01 02 [14:17:07]Write to MH i2c: E2 08 00 6D 02 80 0D 01 02 00 00 00 00 E8 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [14:17:07]RAPDU: 90 00 [14:17:07]wFMCommunicate OK [14:17:07]wFMCommunicate request_size=255 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 8E 00 00 00 F4 03 04 00 62 2E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B7 01 00 35 04 06 00 C3 [14:17:07]Write to MH i2c: E2 02 01 6E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 8E 00 00 00 F4 03 04 00 62 2E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B7 01 00 35 04 06 00 C3 00 00 39 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [14:17:07]RAPDU: 90 00 [14:17:07]wFMCommunicate OK [14:17:07]wFMCommunicate request_size=10 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 0D 02 02 05 79 F6 7B 32 E3 [14:17:07]Write to MH i2c: E2 0D 00 6F 02 80 0D 02 02 05 00 79 F6 7B 32 E3 00 00 F4 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [14:17:07]RAPDU: 90 00 [14:17:07]wFMCommunicate OK [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 0D 03 02 [14:17:07]Write to MH i2c: E2 08 00 70 02 80 0D 03 02 00 00 00 00 ED [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 0B 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 0B 00 70 02 00 1D 2D 97 B2 25 97 90 D2 90 00 9F [14:17:07]RAPDU: 1D 2D 97 B2 25 97 90 D2 90 00 [14:17:07]wFMCommunicate OK [14:17:07]SAM_PROTO_SignData done [14:17:07]FM_MakeSignedData done [14:17:07]CreateOFDProtocolMessage [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 11 00 00 [14:17:07]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [14:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:17:07]wFMCommunicate OK [14:17:07]CreateOFDProtocolMessage done [14:17:07]OFDSenderStorePacket 112541 [14:17:07]StoreOFDPacket docnum=112541 [14:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 D6 07 01 37 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 8E 00 00 00 F4 03 04 00 62 2E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B7 01 00 35 04 06 00 C3 79 F6 7B 32 E3 1D 2D 97 B2 25 97 90 D2 [14:17:07]CheckFolder [14:17:07]dirname=/storage/ofd_packets [14:17:07]CheckFolder done [14:17:07]ProducePacketName [14:17:07]name=ofd_packets/00112541 [14:17:07]NVStorageSaveData ofd_packets/00112541 [14:17:07]File name is /storage/ofd_packets/00112541 [14:17:07]Write 301 bytes [14:17:07]NVStorageSaveData done [14:17:07]OFDSenderStorePacket done [14:17:07]KKMCreateOFDPacket done [14:17:07]NVStorageSaveData kkm_last_timestamp [14:17:07]File name is /storage/kkm_last_timestamp [14:17:07]Write 4 bytes [14:17:07]NVStorageSaveData done [14:17:07]ExternCall_PrintAddStr [14:17:07]wPrintStart [14:17:07]Write to MH i2c: 01 00 00 72 02 74 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: 01 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: 01 07 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [14:17:07]RasterBufferAndPrint [14:17:07]line Счет N : (1)321224 [14:17:07]line ИНН: 02508201610067 [14:17:07]line Контрольно-Кассовый Чек [14:17:07]line ПРОДАЖА [14:17:07]line ТРК (МРК, ГНК) : 11 [14:17:07]line Товар: 2710124130 [14:17:07]line Аи-92-К-5 [14:17:07]line 7.540 * 66.40 [14:17:07]line = 500.66 [14:17:07]line НДС 12% НСП 1% [14:17:07]line > о реализуемом товаре [14:17:07]line ОКРУГЛЕНИЕ: -0.66 [14:17:07]line ИТОГО: 500.00 [14:17:07]line Внесено: 500.00 [14:17:07]line СДАЧА: 0.00 [14:17:07]line НСП 1% : 4.43 [14:17:07]line НДС 12% : 53.17 [14:17:07]line Наличными: 500.00 [14:17:07]line Безнал.: 0.00 [14:17:07]line Место: АЗС № 65 "Партнер Нефть" [14:17:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:17:07]line СНО: Общий режим [14:17:07]line Чек 142 23.06.2024 14:17 [14:17:07]line Смена: 392 ФФД: 1.0 [14:17:07]line ЗНМ: 0300000198 [14:17:07]line РНМ: 0000000000092771 [14:17:07]line Версия ККМ: 001 [14:17:07]line ФМ: 0000000000875083 [14:17:07]line ФД: 112541 [14:17:07]line ФПД: 214928593728227 [14:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T141706&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112541&fm=214928593728227&tin=02508201610067®Number=0000000000092771&sum=50000 [14:17:07]OFD Sender: Processing packet 112541 [packets to send 38, broken 37] [14:17:07]ProducePacketName [14:17:07]name=ofd_packets/00112541 [14:17:07]OFD Sender: To server: pG, [14:17:07]CommunicateWithHost lk.salyk.kg:30040 [14:17:07]ConnectInit lk.salyk.kg [14:17:07]written 0, free lines is 4095 [14:17:07]Connected sock=9 [14:17:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 D6 07 01 37 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 8E 00 00 00 F4 03 04 00 62 2E 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B7 01 00 35 04 06 00 C3 79 F6 7B 32 E3 1D 2D 97 B2 25 97 90 D2 [14:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3A 49 47 00 B1 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B7 01 00 F4 03 04 00 4D C5 77 66 B6 04 01 00 00 B9 61 91 E4 FE 73 29 29 [14:17:08]CommunicateWithHost err = 0 [14:17:08]CheckOFDResponse [14:17:08]1017 (14) - 77093643461234 [14:17:08]1041 (16) - 0000000000875083 [14:17:08]1040 (4) - 112541 [14:17:08]1012 (4) - 23.06.2024 06:48 [14:17:08]1206 (1) - 0 [14:17:08]OFD Sender: Remove packet 112541 [14:17:08]ProducePacketName [14:17:08]name=ofd_packets/00112541 [14:17:08]NVStorageDeleteData [14:17:08]Write to MH i2c: 01 00 00 9D 02 9F [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 07 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 E4 0C 96 [14:17:08]RasterBufferAndPrint [14:17:08]line [14:17:08]line [14:17:08]line [14:17:08]line [14:17:08]line [14:17:08]written 0, free lines is 3306 [14:17:08]MH_Cut [14:17:08]Write to MH i2c: D1 01 00 A4 02 01 78 [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: D1 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: D1 01 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: D1 01 00 A4 02 00 77 [14:17:08]Write to MH i2c: 01 00 00 A5 02 A7 [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]OFD Sender: No OFD packet to send [14:17:09]*** Cut start [14:17:09]*** Partial cut [14:17:09]*** CUTSNS_PIN = 1 [14:17:09]*** CUTSNS_PIN = 0 [14:17:09]*** Brake cut motor [14:17:09]Read from MH i2c: 01 [14:17:09]MH_I2C_Read... [14:17:09]*** Stop cut motor [14:17:09]*** Cut end [14:17:09]Read from MH i2c: 01 07 00 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 FF 0F BC [14:17:09]process_action close_receipt done [14:17:09]requested_data is exist [14:17:09]produce_requested_data [14:17:09]requested_item fm.sn is exist - process it [14:17:09]wFMCommunicate request_size=4 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 11 00 00 [14:17:09]Write to MH i2c: E2 08 00 A6 02 80 11 00 00 00 00 00 00 22 [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:09]Read from MH i2c: E2 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 17 00 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 17 00 A6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [14:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:17:09]wFMCommunicate OK [14:17:09]requested_item fd.num is exist - process it [14:17:09]SAM_PROTO_GetFieldsCounters [14:17:09]wFMCommunicate request_size=4 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 13 00 00 [14:17:09]Write to MH i2c: E2 08 00 A7 02 80 13 00 00 00 00 00 00 25 [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:09]Read from MH i2c: E2 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 62 00 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 62 00 A7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B7 01 00 0E 04 04 00 88 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 CE [14:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B7 01 00 0E 04 04 00 88 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 [14:17:09]wFMCommunicate OK [14:17:09]SAM_PROTO_GetFieldsCounters done [14:17:09]requested_item shift.num is exist - process it [14:17:09]requested_item shift.opened is exist - process it [14:17:09]req_shift_opened [14:17:09]FM_GetShiftState [14:17:09]SAM_PROTO_GetShiftState [14:17:09]wFMCommunicate request_size=4 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 13 01 00 [14:17:09]Write to MH i2c: E2 08 00 A8 02 80 13 01 00 00 00 00 00 27 [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:09]Read from MH i2c: E2 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 0E 00 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 0E 00 A8 02 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 45 [14:17:09]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:17:09]wFMCommunicate OK [14:17:09]SAM_PROTO_GetShiftState done [14:17:09]FM_GetShiftState done [14:17:09]req_shift_opened done [14:17:09]requested_item shift.open_date is exist - process it [14:17:09]req_shift_open_date [14:17:09]req_shift_open_date done [14:17:09]produce_requested_data done [14:17:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112541,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:17:09]process_action_free close_receipt [14:17:09]json_value_free [14:17:09]json_value_free done [14:17:09]process_json_proto returns [14:17:09]Send response to host [14:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112541,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:17:09]free response buf [14:17:09]execute_script done [14:17:09]execute_script returns [14:17:09]free content buf [14:17:09]Sock 10.Close socket [14:17:09]Sock 10.Thread stoped [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:00]accept exits with 8 [14:21:00]New connection [14:21:00]New thread 3066674532 created [14:21:00]Thread 3066817892 joined [14:21:00]Waiting for new connection... [14:21:00] Sock 8.Parse request [14:21:00]Sock 8.Check first char [14:21:00]Sock 8.First char is OK [14:21:00]request: POST /json_proto HTTP/1.0 [14:21:00]Method: POST [14:21:00]URL: /json_proto [14:21:00]Method is POST - this is cgi request [14:21:00]url: /json_proto [14:21:00]query_string will be loaded in cgi processing [14:21:00]execute_cgi json_proto POST (null) [14:21:00]execute_cgi path=json_proto method=POST [14:21:00]POST find Content-Length [14:21:00]Host: 172.17.59.68:8080 [14:21:00]Content-Length: 675 [14:21:00]Content-Type: application/json [14:21:00] [14:21:00]POST finish read [14:21:00]Found Content-Length = 675 [14:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:00]execute_script... [14:21: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)321225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:00]POST & json_proto [14:21:00]process_json_proto [14:21:00]json parsed OK: [14:21:00]protocol is kg_v1.0 [14:21:00]action value=close_receipt [14:21:00]process_action close_receipt [14:21:00]cmd_close_receipt [14:21:00]MH_GetDate [14:21:00]Write to MH i2c: F0 00 00 A9 02 9A [14:21:00]Write i2c OK [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: F0 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: F0 09 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: F0 09 00 A9 02 00 4D 2F 78 66 BC EC 60 65 6A [14:21:00]GetLastDocTimeStamp 1719152226 [14:21:00]current date 1719152461 [14:21:00]FM_GetShiftState [14:21:00]SAM_PROTO_GetShiftState [14:21:00]wFMCommunicate request_size=4 [14:21:00]MH_SAM_APDU [14:21:00]CAPDU: 80 13 01 00 [14:21:00]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [14:21:00]Write i2c OK [14:21:00]MH_I2C_Read... [14:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:00]Read from MH i2c: E2 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 0E 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 47 [14:21:00]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:21:00]wFMCommunicate OK [14:21:00]SAM_PROTO_GetShiftState done [14:21:00]FM_GetShiftState done [14:21:00]opened in 1719106490 [14:21:00]opened+sec_in_day 1719192890 [14:21:00]quantity*price = 75014 [14:21:00]sum+1 = 75015 [14:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 143 23.06.2024 14:21 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112542 ФПД: 10518483929484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142101&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112542&fm=10518483929484&tin=02508201610067®Number=0000000000092771&sum=75000 [14:21:01]StoreToDocumentArchive [14:21:01]shift 392 fd 112542 [14:21:01]save to /storage/0392/doc_00112542 [14:21:01]save last doc name /storage/0392/doc_00112542 to /storage/kkm_last_doc_name [14:21:01]save OK [14:21:01]Clear old archive folders... [14:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:01]tlvbuf is 01BD2D50 [14:21:01]SAM_PROTO_ClearQueue [14:21:01]wFMCommunicate request_size=4 [14:21:01]MH_SAM_APDU [14:21:01]CAPDU: 80 09 00 00 [14:21:01]Write to MH i2c: E2 08 00 B7 02 80 09 00 00 00 00 00 00 2B [14:21:01]Write i2c OK [14:21:01]MH_I2C_Read... [14:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:01]Read from MH i2c: E2 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: E2 03 00 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [14:21:01]RAPDU: 90 00 [14:21:01]wFMCommunicate OK [14:21:01]SAM_PROTO_ClearQueue done [14:21:01]KKMCreateOFDPacket [14:21:01]OFDProtocolAddRootSTLVToBuf [14:21:01]FM_MakeSignedData [14:21:01]FM_MakeSignedData [14:21:01]SAM_PROTO_SignData [14:21:01]wFMCommunicate request_size=4 [14:21:01]MH_SAM_APDU [14:21:01]CAPDU: 80 0D 01 02 [14:21:01]Write to MH i2c: E2 08 00 B8 02 80 0D 01 02 00 00 00 00 33 [14:21:01]Write i2c OK [14:21:01]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]wFMCommunicate request_size=255 [14:21:02]MH_SAM_APDU [14:21: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 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4D 2F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B7 01 00 35 04 06 00 09 91 06 7F [14:21:02]Write to MH i2c: E2 02 01 B9 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 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4D 2F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B7 01 00 35 04 06 00 09 91 06 7F 00 00 A4 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]wFMCommunicate request_size=7 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 02 02 02 89 8C [14:21:02]Write to MH i2c: E2 0A 00 BA 02 80 0D 02 02 02 00 89 8C 00 00 4F [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 03 02 [14:21:02]Write to MH i2c: E2 08 00 BB 02 80 0D 03 02 00 00 00 00 38 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 0B 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 0B 00 BB 02 00 08 1C 7A 36 FE 5E FE 6E 90 00 D5 [14:21:02]RAPDU: 08 1C 7A 36 FE 5E FE 6E 90 00 [14:21:02]wFMCommunicate OK [14:21:02]SAM_PROTO_SignData done [14:21:02]FM_MakeSignedData done [14:21:02]CreateOFDProtocolMessage [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 11 00 00 [14:21:02]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 17 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [14:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:21:02]wFMCommunicate OK [14:21:02]CreateOFDProtocolMessage done [14:21:02]OFDSenderStorePacket 112542 [14:21:02]StoreOFDPacket docnum=112542 [14:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7E 7A 04 01 BC 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4D 2F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B7 01 00 35 04 06 00 09 91 06 7F 89 8C 08 1C 7A 36 FE 5E FE 6E [14:21:02]CheckFolder [14:21:02]dirname=/storage/ofd_packets [14:21:02]CheckFolder done [14:21:02]ProducePacketName [14:21:02]name=ofd_packets/00112542 [14:21:02]NVStorageSaveData ofd_packets/00112542 [14:21:02]File name is /storage/ofd_packets/00112542 [14:21:02]Write 298 bytes [14:21:02]NVStorageSaveData done [14:21:02]OFDSenderStorePacket done [14:21:02]KKMCreateOFDPacket done [14:21:02]NVStorageSaveData kkm_last_timestamp [14:21:02]File name is /storage/kkm_last_timestamp [14:21:02]Write 4 bytes [14:21:02]NVStorageSaveData done [14:21:02]ExternCall_PrintAddStr [14:21:02]wPrintStart [14:21:02]Write to MH i2c: 01 00 00 BD 02 BF [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 07 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 07 00 BD 02 00 00 00 00 00 FF 0F D4 [14:21:02]RasterBufferAndPrint [14:21:02]line Счет N : (1)321225 [14:21:02]line ИНН: 02508201610067 [14:21:02]line Контрольно-Кассовый Чек [14:21:02]line ПРОДАЖА [14:21:02]line ТРК (МРК, ГНК) : 22 [14:21:02]line Товар: 2710194210 [14:21:02]line ДТ-К-5 [14:21:02]line 10.290 * 72.90 [14:21:02]line = 750.14 [14:21:02]line НДС 12% НСП 1% [14:21:02]line > о реализуемом товаре [14:21:02]line ОКРУГЛЕНИЕ: -0.14 [14:21:02]line ИТОГО: 750.00 [14:21:02]line Внесено: 750.00 [14:21:02]line СДАЧА: 0.00 [14:21:02]line НСП 1% : 6.64 [14:21:02]line НДС 12% : 79.66 [14:21:02]line Наличными: 750.00 [14:21:02]line Безнал.: 0.00 [14:21:02]line Место: АЗС № 65 "Партнер Нефть" [14:21:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:21:02]line СНО: Общий режим [14:21:02]line Чек 143 23.06.2024 14:21 [14:21:02]line Смена: 392 ФФД: 1.0 [14:21:02]line ЗНМ: 0300000198 [14:21:02]line РНМ: 0000000000092771 [14:21:02]line Версия ККМ: 001 [14:21:02]line ФМ: 0000000000875083 [14:21:02]line ФД: 112542 [14:21:02]line ФПД: 10518483929484 [14:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142101&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112542&fm=10518483929484&tin=02508201610067®Number=0000000000092771&sum=75000 [14:21:02]OFD Sender: Processing packet 112542 [packets to send 38, broken 37] [14:21:02]ProducePacketName [14:21:02]name=ofd_packets/00112542 [14:21:02]OFD Sender: To server: pG, [14:21:02]CommunicateWithHost lk.salyk.kg:30040 [14:21:02]ConnectInit lk.salyk.kg [14:21:02]written 0, free lines is 4095 [14:21:02]Connected sock=10 [14:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7E 7A 04 01 BC 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4D 2F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B7 01 00 35 04 06 00 09 91 06 7F 89 8C 08 1C 7A 36 FE 5E FE 6E [14:21:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 09 B5 47 00 CA EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B7 01 00 F4 03 04 00 38 C6 77 66 B6 04 01 00 00 A9 FE D4 F0 00 4C 5D 44 [14:21:03]CommunicateWithHost err = 0 [14:21:03]CheckOFDResponse [14:21:03]1017 (14) - 77093643461234 [14:21:03]1041 (16) - 0000000000875083 [14:21:03]1040 (4) - 112542 [14:21:03]1012 (4) - 23.06.2024 06:52 [14:21:03]1206 (1) - 0 [14:21:03]OFD Sender: Remove packet 112542 [14:21:03]ProducePacketName [14:21:03]name=ofd_packets/00112542 [14:21:03]NVStorageDeleteData [14:21:03]Write to MH i2c: 01 00 00 E8 02 EA [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 07 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 EA 0C E7 [14:21:03]RasterBufferAndPrint [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]written 0, free lines is 3312 [14:21:03]MH_Cut [14:21:03]Write to MH i2c: D1 01 00 EF 02 01 C3 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 01 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 01 00 EF 02 00 C2 [14:21:03]Write to MH i2c: 01 00 00 F0 02 F2 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]OFD Sender: No OFD packet to send [14:21:03]*** Cut start [14:21:03]*** Partial cut [14:21:03]*** CUTSNS_PIN = 1 [14:21:04]*** CUTSNS_PIN = 0 [14:21:04]*** Brake cut motor [14:21:04]Read from MH i2c: 01 [14:21:04]MH_I2C_Read... [14:21:04]*** Stop cut motor [14:21:04]*** Cut end [14:21:04]Read from MH i2c: 01 07 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [14:21:04]process_action close_receipt done [14:21:04]requested_data is exist [14:21:04]produce_requested_data [14:21:04]requested_item fm.sn is exist - process it [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 11 00 00 [14:21:04]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 17 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [14:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:21:04]wFMCommunicate OK [14:21:04]requested_item fd.num is exist - process it [14:21:04]SAM_PROTO_GetFieldsCounters [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 13 00 00 [14:21:04]Write to MH i2c: E2 08 00 F2 02 80 13 00 00 00 00 00 00 70 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 62 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 62 00 F2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B7 01 00 0E 04 04 00 88 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 1D [14:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B7 01 00 0E 04 04 00 88 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 [14:21:04]wFMCommunicate OK [14:21:04]SAM_PROTO_GetFieldsCounters done [14:21:04]requested_item shift.num is exist - process it [14:21:04]requested_item shift.opened is exist - process it [14:21:04]req_shift_opened [14:21:04]FM_GetShiftState [14:21:04]SAM_PROTO_GetShiftState [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 13 01 00 [14:21:04]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 0E 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 90 [14:21:04]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:21:04]wFMCommunicate OK [14:21:04]SAM_PROTO_GetShiftState done [14:21:04]FM_GetShiftState done [14:21:04]req_shift_opened done [14:21:04]requested_item shift.open_date is exist - process it [14:21:04]req_shift_open_date [14:21:04]req_shift_open_date done [14:21:04]produce_requested_data done [14:21:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112542,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:21:04]process_action_free close_receipt [14:21:04]json_value_free [14:21:04]json_value_free done [14:21:04]process_json_proto returns [14:21:04]Send response to host [14:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112542,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:21:04]free response buf [14:21:04]execute_script done [14:21:04]execute_script returns [14:21:04]free content buf [14:21:04]Sock 8.Close socket [14:21:04]Sock 8.Thread stoped [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:54]accept exits with 9 [14:22:54]New connection [14:22:54]New thread 3066817892 created [14:22:54]Thread 3066674532 joined [14:22:54]Waiting for new connection... [14:22:54] Sock 9.Parse request [14:22:54]Sock 9.Check first char [14:22:54]Sock 9.First char is OK [14:22:54]request: POST /json_proto HTTP/1.0 [14:22:54]Method: POST [14:22:54]URL: /json_proto [14:22:54]Method is POST - this is cgi request [14:22:54]url: /json_proto [14:22:54]query_string will be loaded in cgi processing [14:22:54]execute_cgi json_proto POST (null) [14:22:54]execute_cgi path=json_proto method=POST [14:22:54]POST find Content-Length [14:22:54]Host: 172.17.59.68:8080 [14:22:54]Content-Length: 674 [14:22:54]Content-Type: application/json [14:22:54] [14:22:54]POST finish read [14:22:54]Found Content-Length = 674 [14:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:22:54]execute_script... [14:22: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)321226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:22:54]POST & json_proto [14:22:54]process_json_proto [14:22:54]json parsed OK: [14:22:54]protocol is kg_v1.0 [14:22:54]action value=close_receipt [14:22:54]process_action close_receipt [14:22:54]cmd_close_receipt [14:22:54]MH_GetDate [14:22:54]Write to MH i2c: F0 00 00 F4 02 E5 [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 09 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 09 00 F4 02 00 BE 2F 78 66 BC EC 60 65 26 [14:22:54]GetLastDocTimeStamp 1719152461 [14:22:54]current date 1719152574 [14:22:54]FM_GetShiftState [14:22:54]SAM_PROTO_GetShiftState [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 13 01 00 [14:22:54]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 0E 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 92 [14:22:54]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:22:54]wFMCommunicate OK [14:22:54]SAM_PROTO_GetShiftState done [14:22:54]FM_GetShiftState done [14:22:54]opened in 1719106490 [14:22:54]opened+sec_in_day 1719192890 [14:22:54]quantity*price = 50009 [14:22:54]sum+1 = 50010 [14:22:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 144 23.06.2024 14:22 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112543 ФПД: 233818501911473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142254&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112543&fm=233818501911473&tin=02508201610067®Number=0000000000092771&sum=50000 [14:22:55]StoreToDocumentArchive [14:22:55]shift 392 fd 112543 [14:22:55]save to /storage/0392/doc_00112543 [14:22:55]save last doc name /storage/0392/doc_00112543 to /storage/kkm_last_doc_name [14:22:55]save OK [14:22:55]Clear old archive folders... [14:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:22:55]tlvbuf is 01BBCF00 [14:22:55]SAM_PROTO_ClearQueue [14:22:55]wFMCommunicate request_size=4 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 09 00 00 [14:22:55]Write to MH i2c: E2 08 00 02 03 80 09 00 00 00 00 00 00 77 [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:55]Read from MH i2c: E2 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 03 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [14:22:55]RAPDU: 90 00 [14:22:55]wFMCommunicate OK [14:22:55]SAM_PROTO_ClearQueue done [14:22:55]KKMCreateOFDPacket [14:22:55]OFDProtocolAddRootSTLVToBuf [14:22:55]FM_MakeSignedData [14:22:55]FM_MakeSignedData [14:22:55]SAM_PROTO_SignData [14:22:55]wFMCommunicate request_size=4 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 0D 01 02 [14:22:55]Write to MH i2c: E2 08 00 03 03 80 0D 01 02 00 00 00 00 7F [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:55]Read from MH i2c: E2 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 03 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [14:22:55]RAPDU: 90 00 [14:22:55]wFMCommunicate OK [14:22:55]wFMCommunicate request_size=255 [14:22:55]MH_SAM_APDU [14:22: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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 90 00 00 00 F4 03 04 00 BE 2F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B7 01 00 35 04 06 00 D4 A8 1C BF [14:22:55]Write to MH i2c: E2 02 01 04 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 90 00 00 00 F4 03 04 00 BE 2F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B7 01 00 35 04 06 00 D4 A8 1C BF 00 00 BB [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:55]Read from MH i2c: E2 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 03 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [14:22:55]RAPDU: 90 00 [14:22:55]wFMCommunicate OK [14:22:55]wFMCommunicate request_size=7 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 0D 02 02 02 93 B1 [14:22:55]Write to MH i2c: E2 0A 00 05 03 80 0D 02 02 02 00 93 B1 00 00 CA [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:55]Read from MH i2c: E2 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 03 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [14:22:55]RAPDU: 90 00 [14:22:55]wFMCommunicate OK [14:22:55]wFMCommunicate request_size=4 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 0D 03 02 [14:22:55]Write to MH i2c: E2 08 00 06 03 80 0D 03 02 00 00 00 00 84 [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:55]Read from MH i2c: E2 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 0B 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 0B 00 06 03 00 2D E1 8A 90 69 97 D3 5E 90 00 DE [14:22:55]RAPDU: 2D E1 8A 90 69 97 D3 5E 90 00 [14:22:55]wFMCommunicate OK [14:22:55]SAM_PROTO_SignData done [14:22:55]FM_MakeSignedData done [14:22:55]CreateOFDProtocolMessage [14:22:55]wFMCommunicate request_size=4 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 11 00 00 [14:22:55]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 17 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [14:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:22:56]wFMCommunicate OK [14:22:56]CreateOFDProtocolMessage done [14:22:56]OFDSenderStorePacket 112543 [14:22:56]StoreOFDPacket docnum=112543 [14:22:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E3 53 04 01 E1 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 90 00 00 00 F4 03 04 00 BE 2F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B7 01 00 35 04 06 00 D4 A8 1C BF 93 B1 2D E1 8A 90 69 97 D3 5E [14:22:56]CheckFolder [14:22:56]dirname=/storage/ofd_packets [14:22:56]CheckFolder done [14:22:56]ProducePacketName [14:22:56]name=ofd_packets/00112543 [14:22:56]NVStorageSaveData ofd_packets/00112543 [14:22:56]File name is /storage/ofd_packets/00112543 [14:22:56]Write 298 bytes [14:22:56]NVStorageSaveData done [14:22:56]OFDSenderStorePacket done [14:22:56]KKMCreateOFDPacket done [14:22:56]NVStorageSaveData kkm_last_timestamp [14:22:56]File name is /storage/kkm_last_timestamp [14:22:56]Write 4 bytes [14:22:56]NVStorageSaveData done [14:22:56]ExternCall_PrintAddStr [14:22:56]wPrintStart [14:22:56]Write to MH i2c: 01 00 00 08 03 0B [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 FF 0F 20 [14:22:56]RasterBufferAndPrint [14:22:56]line Счет N : (1)321226 [14:22:56]line ИНН: 02508201610067 [14:22:56]line Контрольно-Кассовый Чек [14:22:56]line ПРОДАЖА [14:22:56]line ТРК (МРК, ГНК) : 22 [14:22:56]line Товар: 2710194210 [14:22:56]line ДТ-К-5 [14:22:56]line 6.860 * 72.90 [14:22:56]line = 500.09 [14:22:56]line НДС 12% НСП 1% [14:22:56]line > о реализуемом товаре [14:22:56]line ОКРУГЛЕНИЕ: -0.09 [14:22:56]line ИТОГО: 500.00 [14:22:56]line Внесено: 500.00 [14:22:56]line СДАЧА: 0.00 [14:22:56]line НСП 1% : 4.43 [14:22:56]line НДС 12% : 53.11 [14:22:56]line Наличными: 500.00 [14:22:56]line Безнал.: 0.00 [14:22:56]line Место: АЗС № 65 "Партнер Нефть" [14:22:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:22:56]line СНО: Общий режим [14:22:56]line Чек 144 23.06.2024 14:22 [14:22:56]line Смена: 392 ФФД: 1.0 [14:22:56]line ЗНМ: 0300000198 [14:22:56]line РНМ: 0000000000092771 [14:22:56]line Версия ККМ: 001 [14:22:56]line ФМ: 0000000000875083 [14:22:56]line ФД: 112543 [14:22:56]line ФПД: 233818501911473 [14:22:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142254&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112543&fm=233818501911473&tin=02508201610067®Number=0000000000092771&sum=50000 [14:22:56]OFD Sender: Processing packet 112543 [packets to send 38, broken 37] [14:22:56]ProducePacketName [14:22:56]name=ofd_packets/00112543 [14:22:56]OFD Sender: To server: pG, [14:22:56]CommunicateWithHost lk.salyk.kg:30040 [14:22:56]ConnectInit lk.salyk.kg [14:22:56]written 0, free lines is 4095 [14:22:56]Connected sock=10 [14:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E3 53 04 01 E1 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 90 00 00 00 F4 03 04 00 BE 2F 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B7 01 00 35 04 06 00 D4 A8 1C BF 93 B1 2D E1 8A 90 69 97 D3 5E [14:22:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 43 36 47 00 95 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B7 01 00 F4 03 04 00 A9 C6 77 66 B6 04 01 00 00 C6 56 A1 9E 06 00 2C C0 [14:22:56]CommunicateWithHost err = 0 [14:22:56]CheckOFDResponse [14:22:56]1017 (14) - 77093643461234 [14:22:56]1041 (16) - 0000000000875083 [14:22:56]1040 (4) - 112543 [14:22:56]1012 (4) - 23.06.2024 06:54 [14:22:56]1206 (1) - 0 [14:22:56]OFD Sender: Remove packet 112543 [14:22:56]ProducePacketName [14:22:56]name=ofd_packets/00112543 [14:22:56]NVStorageDeleteData [14:22:56]Write to MH i2c: 01 00 00 33 03 36 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 E8 0C 31 [14:22:56]RasterBufferAndPrint [14:22:56]line [14:22:56]line [14:22:56]line [14:22:56]line [14:22:56]line [14:22:56]written 0, free lines is 3310 [14:22:56]MH_Cut [14:22:56]Write to MH i2c: D1 01 00 3A 03 01 0F [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: D1 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: D1 01 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: D1 01 00 3A 03 00 0E [14:22:56]Write to MH i2c: 01 00 00 3B 03 3E [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:57]OFD Sender: No OFD packet to send [14:22:57]*** Cut start [14:22:57]*** Partial cut [14:22:57]*** CUTSNS_PIN = 1 [14:22:57]*** CUTSNS_PIN = 0 [14:22:57]*** Brake cut motor [14:22:58]Read from MH i2c: 01 [14:22:58]MH_I2C_Read... [14:22:58]*** Stop cut motor [14:22:58]*** Cut end [14:22:58]Read from MH i2c: 01 07 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 FF 0F 53 [14:22:58]process_action close_receipt done [14:22:58]requested_data is exist [14:22:58]produce_requested_data [14:22:58]requested_item fm.sn is exist - process it [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 11 00 00 [14:22:58]Write to MH i2c: E2 08 00 3C 03 80 11 00 00 00 00 00 00 B9 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 17 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 17 00 3C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [14:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:22:58]wFMCommunicate OK [14:22:58]requested_item fd.num is exist - process it [14:22:58]SAM_PROTO_GetFieldsCounters [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 13 00 00 [14:22:58]Write to MH i2c: E2 08 00 3D 03 80 13 00 00 00 00 00 00 BC [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 62 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 62 00 3D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B7 01 00 0E 04 04 00 88 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 6D [14:22:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B7 01 00 0E 04 04 00 88 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 [14:22:58]wFMCommunicate OK [14:22:58]SAM_PROTO_GetFieldsCounters done [14:22:58]requested_item shift.num is exist - process it [14:22:58]requested_item shift.opened is exist - process it [14:22:58]req_shift_opened [14:22:58]FM_GetShiftState [14:22:58]SAM_PROTO_GetShiftState [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 13 01 00 [14:22:58]Write to MH i2c: E2 08 00 3E 03 80 13 01 00 00 00 00 00 BE [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 0E 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 0E 00 3E 03 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 DC [14:22:58]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:22:58]wFMCommunicate OK [14:22:58]SAM_PROTO_GetShiftState done [14:22:58]FM_GetShiftState done [14:22:58]req_shift_opened done [14:22:58]requested_item shift.open_date is exist - process it [14:22:58]req_shift_open_date [14:22:58]req_shift_open_date done [14:22:58]produce_requested_data done [14:22:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112543,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:22:58]process_action_free close_receipt [14:22:58]json_value_free [14:22:58]json_value_free done [14:22:58]process_json_proto returns [14:22:58]Send response to host [14:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112543,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:22:58]free response buf [14:22:58]execute_script done [14:22:58]execute_script returns [14:22:58]free content buf [14:22:58]Sock 9.Close socket [14:22:58]Sock 9.Thread stoped [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:48]accept exits with 8 [14:24:48]New connection [14:24:48]New thread 3066674532 created [14:24:48]Thread 3066817892 joined [14:24:48]Waiting for new connection... [14:24:48] Sock 8.Parse request [14:24:48]Sock 8.Check first char [14:24:48]Sock 8.First char is OK [14:24:48]request: POST /json_proto HTTP/1.0 [14:24:48]Method: POST [14:24:48]URL: /json_proto [14:24:48]Method is POST - this is cgi request [14:24:48]url: /json_proto [14:24:48]query_string will be loaded in cgi processing [14:24:48]execute_cgi json_proto POST (null) [14:24:48]execute_cgi path=json_proto method=POST [14:24:48]POST find Content-Length [14:24:48]Host: 172.17.59.68:8080 [14:24:48]Content-Length: 677 [14:24:48]Content-Type: application/json [14:24:48] [14:24:48]POST finish read [14:24:48]Found Content-Length = 677 [14:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.290, "sum" : 550.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:48]execute_script... [14:24: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)321227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.290, "sum" : 550.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:48]POST & json_proto [14:24:48]process_json_proto [14:24:48]json parsed OK: [14:24:48]protocol is kg_v1.0 [14:24:48]action value=close_receipt [14:24:48]process_action close_receipt [14:24:48]cmd_close_receipt [14:24:48]MH_GetDate [14:24:48]Write to MH i2c: F0 00 00 3F 03 31 [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: F0 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: F0 09 00 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: F0 09 00 3F 03 00 30 30 78 66 BC EC 60 65 E5 [14:24:48]GetLastDocTimeStamp 1719152574 [14:24:48]current date 1719152688 [14:24:48]FM_GetShiftState [14:24:48]SAM_PROTO_GetShiftState [14:24:48]wFMCommunicate request_size=4 [14:24:48]MH_SAM_APDU [14:24:48]CAPDU: 80 13 01 00 [14:24:48]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:48]Read from MH i2c: E2 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 0E 00 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 DE [14:24:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:24:48]wFMCommunicate OK [14:24:48]SAM_PROTO_GetShiftState done [14:24:48]FM_GetShiftState done [14:24:48]opened in 1719106490 [14:24:48]opened+sec_in_day 1719192890 [14:24:48]quantity*price = 55045 [14:24:48]sum+1 = 55047 [14:24:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 145 23.06.2024 14:24 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112544 ФПД: 261119527024473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142448&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112544&fm=261119527024473&tin=02508201610067®Number=0000000000092771&sum=55000 [14:24:49]StoreToDocumentArchive [14:24:49]shift 392 fd 112544 [14:24:49]save to /storage/0392/doc_00112544 [14:24:49]save last doc name /storage/0392/doc_00112544 to /storage/kkm_last_doc_name [14:24:49]save OK [14:24:49]Clear old archive folders... [14:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:49]tlvbuf is 01BD6D60 [14:24:49]SAM_PROTO_ClearQueue [14:24:49]wFMCommunicate request_size=4 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 09 00 00 [14:24:49]Write to MH i2c: E2 08 00 4D 03 80 09 00 00 00 00 00 00 C2 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [14:24:49]RAPDU: 90 00 [14:24:49]wFMCommunicate OK [14:24:49]SAM_PROTO_ClearQueue done [14:24:49]KKMCreateOFDPacket [14:24:49]OFDProtocolAddRootSTLVToBuf [14:24:49]FM_MakeSignedData [14:24:49]FM_MakeSignedData [14:24:49]SAM_PROTO_SignData [14:24:49]wFMCommunicate request_size=4 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 0D 01 02 [14:24:49]Write to MH i2c: E2 08 00 4E 03 80 0D 01 02 00 00 00 00 CA [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [14:24:49]RAPDU: 90 00 [14:24:49]wFMCommunicate OK [14:24:49]wFMCommunicate request_size=255 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 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 D6 16 00 00 00 00 07 04 06 00 D8 D6 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 30 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B7 01 00 35 04 06 00 ED [14:24:49]Write to MH i2c: E2 02 01 4F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 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 D6 16 00 00 00 00 07 04 06 00 D8 D6 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 30 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B7 01 00 35 04 06 00 ED 00 00 09 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [14:24:49]RAPDU: 90 00 [14:24:49]wFMCommunicate OK [14:24:49]wFMCommunicate request_size=10 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 0D 02 02 05 7C A0 A6 F7 59 [14:24:49]Write to MH i2c: E2 0D 00 50 03 80 0D 02 02 05 00 7C A0 A6 F7 59 00 00 E9 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [14:24:49]RAPDU: 90 00 [14:24:49]wFMCommunicate OK [14:24:49]wFMCommunicate request_size=4 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 0D 03 02 [14:24:49]Write to MH i2c: E2 08 00 51 03 80 0D 03 02 00 00 00 00 CF [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 0B 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 0B 00 51 03 00 D2 3D CD 6F B7 6B 3F 57 90 00 D3 [14:24:49]RAPDU: D2 3D CD 6F B7 6B 3F 57 90 00 [14:24:49]wFMCommunicate OK [14:24:49]SAM_PROTO_SignData done [14:24:49]FM_MakeSignedData done [14:24:49]CreateOFDProtocolMessage [14:24:49]wFMCommunicate request_size=4 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 11 00 00 [14:24:49]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 17 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [14:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:24:49]wFMCommunicate OK [14:24:49]CreateOFDProtocolMessage done [14:24:49]OFDSenderStorePacket 112544 [14:24:49]StoreOFDPacket docnum=112544 [14:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F0 B6 07 01 9F 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 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 D6 16 00 00 00 00 07 04 06 00 D8 D6 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 30 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B7 01 00 35 04 06 00 ED 7C A0 A6 F7 59 D2 3D CD 6F B7 6B 3F 57 [14:24:49]CheckFolder [14:24:49]dirname=/storage/ofd_packets [14:24:49]CheckFolder done [14:24:49]ProducePacketName [14:24:49]name=ofd_packets/00112544 [14:24:49]NVStorageSaveData ofd_packets/00112544 [14:24:49]File name is /storage/ofd_packets/00112544 [14:24:49]Write 301 bytes [14:24:49]NVStorageSaveData done [14:24:49]OFDSenderStorePacket done [14:24:49]KKMCreateOFDPacket done [14:24:49]NVStorageSaveData kkm_last_timestamp [14:24:49]File name is /storage/kkm_last_timestamp [14:24:49]Write 4 bytes [14:24:49]NVStorageSaveData done [14:24:49]ExternCall_PrintAddStr [14:24:49]wPrintStart [14:24:49]Write to MH i2c: 01 00 00 53 03 56 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 07 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [14:24:49]RasterBufferAndPrint [14:24:49]line Счет N : (1)321227 [14:24:49]line ИНН: 02508201610067 [14:24:49]line Контрольно-Кассовый Чек [14:24:49]line ПРОДАЖА [14:24:49]line ТРК (МРК, ГНК) : 11 [14:24:49]line Товар: 2710124130 [14:24:49]line Аи-92-К-5 [14:24:49]line 8.290 * 66.40 [14:24:49]line = 550.46 [14:24:49]line НДС 12% НСП 1% [14:24:49]line > о реализуемом товаре [14:24:49]line ОКРУГЛЕНИЕ: -0.46 [14:24:49]line ИТОГО: 550.00 [14:24:49]line Внесено: 550.00 [14:24:49]line СДАЧА: 0.00 [14:24:49]line НСП 1% : 4.87 [14:24:49]line НДС 12% : 58.46 [14:24:49]line Наличными: 550.00 [14:24:49]line Безнал.: 0.00 [14:24:49]line Место: АЗС № 65 "Партнер Нефть" [14:24:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:24:49]line СНО: Общий режим [14:24:49]line Чек 145 23.06.2024 14:24 [14:24:49]line Смена: 392 ФФД: 1.0 [14:24:49]line ЗНМ: 0300000198 [14:24:49]line РНМ: 0000000000092771 [14:24:49]line Версия ККМ: 001 [14:24:49]line ФМ: 0000000000875083 [14:24:49]line ФД: 112544 [14:24:49]line ФПД: 261119527024473 [14:24:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142448&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112544&fm=261119527024473&tin=02508201610067®Number=0000000000092771&sum=55000 [14:24:50]OFD Sender: Processing packet 112544 [packets to send 38, broken 37] [14:24:50]ProducePacketName [14:24:50]name=ofd_packets/00112544 [14:24:50]OFD Sender: To server: pG, [14:24:50]CommunicateWithHost lk.salyk.kg:30040 [14:24:50]ConnectInit lk.salyk.kg [14:24:50]written 0, free lines is 4095 [14:24:50]Connected sock=10 [14:24:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F0 B6 07 01 9F 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 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 D6 16 00 00 00 00 07 04 06 00 D8 D6 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 30 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B7 01 00 35 04 06 00 ED 7C A0 A6 F7 59 D2 3D CD 6F B7 6B 3F 57 [14:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A5 BA 47 00 17 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B7 01 00 F4 03 04 00 1B C7 77 66 B6 04 01 00 00 34 5C E4 4B D7 59 70 F2 [14:24:50]CommunicateWithHost err = 0 [14:24:50]CheckOFDResponse [14:24:50]1017 (14) - 77093643461234 [14:24:50]1041 (16) - 0000000000875083 [14:24:50]1040 (4) - 112544 [14:24:50]1012 (4) - 23.06.2024 06:56 [14:24:50]1206 (1) - 0 [14:24:50]OFD Sender: Remove packet 112544 [14:24:50]ProducePacketName [14:24:50]name=ofd_packets/00112544 [14:24:50]NVStorageDeleteData [14:24:50]Write to MH i2c: 01 00 00 7E 03 81 [14:24:50]Write i2c OK [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: 01 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: 01 07 00 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: 01 07 00 7E 03 00 00 00 00 00 E6 0C 7A [14:24:50]RasterBufferAndPrint [14:24:50]line [14:24:50]line [14:24:50]line [14:24:50]line [14:24:50]line [14:24:50]written 0, free lines is 3308 [14:24:50]MH_Cut [14:24:50]Write to MH i2c: D1 01 00 85 03 01 5A [14:24:50]Write i2c OK [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: D1 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: D1 01 00 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: D1 01 00 85 03 00 59 [14:24:50]Write to MH i2c: 01 00 00 86 03 89 [14:24:50]Write i2c OK [14:24:50]MH_I2C_Read... [14:24:50]OFD Sender: No OFD packet to send [14:24:51]*** Cut start [14:24:51]*** Partial cut [14:24:51]*** CUTSNS_PIN = 1 [14:24:51]*** CUTSNS_PIN = 0 [14:24:51]*** Brake cut motor [14:24:51]Read from MH i2c: 01 [14:24:51]MH_I2C_Read... [14:24:51]*** Stop cut motor [14:24:51]*** Cut end [14:24:51]Read from MH i2c: 01 07 00 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 FF 0F 9E [14:24:51]process_action close_receipt done [14:24:51]requested_data is exist [14:24:51]produce_requested_data [14:24:51]requested_item fm.sn is exist - process it [14:24:51]wFMCommunicate request_size=4 [14:24:51]MH_SAM_APDU [14:24:51]CAPDU: 80 11 00 00 [14:24:51]Write to MH i2c: E2 08 00 87 03 80 11 00 00 00 00 00 00 04 [14:24:51]Write i2c OK [14:24:51]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 [14:24:52]MH_I2C_Read... [14:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:52]Read from MH i2c: E2 17 00 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 17 00 87 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [14:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:24:52]wFMCommunicate OK [14:24:52]requested_item fd.num is exist - process it [14:24:52]SAM_PROTO_GetFieldsCounters [14:24:52]wFMCommunicate request_size=4 [14:24:52]MH_SAM_APDU [14:24:52]CAPDU: 80 13 00 00 [14:24:52]Write to MH i2c: E2 08 00 88 03 80 13 00 00 00 00 00 00 07 [14:24:52]Write i2c OK [14:24:52]MH_I2C_Read... [14:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:52]Read from MH i2c: E2 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 62 00 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 62 00 88 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B7 01 00 0E 04 04 00 88 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 BC [14:24:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B7 01 00 0E 04 04 00 88 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 [14:24:52]wFMCommunicate OK [14:24:52]SAM_PROTO_GetFieldsCounters done [14:24:52]requested_item shift.num is exist - process it [14:24:52]requested_item shift.opened is exist - process it [14:24:52]req_shift_opened [14:24:52]FM_GetShiftState [14:24:52]SAM_PROTO_GetShiftState [14:24:52]wFMCommunicate request_size=4 [14:24:52]MH_SAM_APDU [14:24:52]CAPDU: 80 13 01 00 [14:24:52]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [14:24:52]Write i2c OK [14:24:52]MH_I2C_Read... [14:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:52]Read from MH i2c: E2 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 0E 00 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 27 [14:24:52]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:24:52]wFMCommunicate OK [14:24:52]SAM_PROTO_GetShiftState done [14:24:52]FM_GetShiftState done [14:24:52]req_shift_opened done [14:24:52]requested_item shift.open_date is exist - process it [14:24:52]req_shift_open_date [14:24:52]req_shift_open_date done [14:24:52]produce_requested_data done [14:24:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112544,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:24:52]process_action_free close_receipt [14:24:52]json_value_free [14:24:52]json_value_free done [14:24:52]process_json_proto returns [14:24:52]Send response to host [14:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112544,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:24:52]free response buf [14:24:52]execute_script done [14:24:52]execute_script returns [14:24:52]free content buf [14:24:52]Sock 8.Close socket [14:24:52]Sock 8.Thread stoped [14:24:55]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:50]accept exits with 9 [14:25:50]New connection [14:25:50]New thread 3066817892 created [14:25:50]Thread 3066674532 joined [14:25:50]Waiting for new connection... [14:25:50] Sock 9.Parse request [14:25:50]Sock 9.Check first char [14:25:50]Sock 9.First char is OK [14:25:50]request: POST /json_proto HTTP/1.0 [14:25:50]Method: POST [14:25:50]URL: /json_proto [14:25:50]Method is POST - this is cgi request [14:25:50]url: /json_proto [14:25:50]query_string will be loaded in cgi processing [14:25:50]execute_cgi json_proto POST (null) [14:25:50]execute_cgi path=json_proto method=POST [14:25:50]POST find Content-Length [14:25:50]Host: 172.17.59.68:8080 [14:25:50]Content-Length: 679 [14:25:50]Content-Type: application/json [14:25:50] [14:25:50]POST finish read [14:25:50]Found Content-Length = 679 [14:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:50]execute_script... [14:25: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)321228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:50]POST & json_proto [14:25:50]process_json_proto [14:25:50]json parsed OK: [14:25:50]protocol is kg_v1.0 [14:25:50]action value=close_receipt [14:25:50]process_action close_receipt [14:25:50]cmd_close_receipt [14:25:50]MH_GetDate [14:25:50]Write to MH i2c: F0 00 00 8A 03 7C [14:25:50]Write i2c OK [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: F0 [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: F0 09 00 [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: F0 09 00 8A 03 00 6E 30 78 66 BC EC 60 65 6E [14:25:50]GetLastDocTimeStamp 1719152688 [14:25:50]current date 1719152750 [14:25:50]FM_GetShiftState [14:25:50]SAM_PROTO_GetShiftState [14:25:50]wFMCommunicate request_size=4 [14:25:50]MH_SAM_APDU [14:25:50]CAPDU: 80 13 01 00 [14:25:50]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [14:25:50]Write i2c OK [14:25:50]MH_I2C_Read... [14:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:50]Read from MH i2c: E2 [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: E2 0E 00 [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 29 [14:25:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:25:50]wFMCommunicate OK [14:25:50]SAM_PROTO_GetShiftState done [14:25:50]FM_GetShiftState done [14:25:50]opened in 1719106490 [14:25:50]opened+sec_in_day 1719192890 [14:25:50]quantity*price = 220012 [14:25:50]sum+1 = 220013 [14:25:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 146 23.06.2024 14:25 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112545 ФПД: 62344744576641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142550&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112545&fm=62344744576641&tin=02508201610067®Number=0000000000092771&sum=220000 [14:25:51]StoreToDocumentArchive [14:25:51]shift 392 fd 112545 [14:25:51]save to /storage/0392/doc_00112545 [14:25:51]save last doc name /storage/0392/doc_00112545 to /storage/kkm_last_doc_name [14:25:51]save OK [14:25:51]Clear old archive folders... [14:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:25:51]tlvbuf is 01BDE950 [14:25:51]SAM_PROTO_ClearQueue [14:25:51]wFMCommunicate request_size=4 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 09 00 00 [14:25:51]Write to MH i2c: E2 08 00 98 03 80 09 00 00 00 00 00 00 0D [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 03 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [14:25:51]RAPDU: 90 00 [14:25:51]wFMCommunicate OK [14:25:51]SAM_PROTO_ClearQueue done [14:25:51]KKMCreateOFDPacket [14:25:51]OFDProtocolAddRootSTLVToBuf [14:25:51]FM_MakeSignedData [14:25:51]FM_MakeSignedData [14:25:51]SAM_PROTO_SignData [14:25:51]wFMCommunicate request_size=4 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 0D 01 02 [14:25:51]Write to MH i2c: E2 08 00 99 03 80 0D 01 02 00 00 00 00 15 [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 03 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [14:25:51]RAPDU: 90 00 [14:25:51]wFMCommunicate OK [14:25:51]wFMCommunicate request_size=255 [14:25:51]MH_SAM_APDU [14:25: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 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 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 6E 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B7 01 00 35 04 06 00 38 B3 C4 5A [14:25:51]Write to MH i2c: E2 02 01 9A 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 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 6E 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B7 01 00 35 04 06 00 38 B3 C4 5A 00 00 E1 [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 03 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [14:25:51]RAPDU: 90 00 [14:25:51]wFMCommunicate OK [14:25:51]wFMCommunicate request_size=7 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 0D 02 02 02 A6 81 [14:25:51]Write to MH i2c: E2 0A 00 9B 03 80 0D 02 02 02 00 A6 81 00 00 43 [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 03 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [14:25:51]RAPDU: 90 00 [14:25:51]wFMCommunicate OK [14:25:51]wFMCommunicate request_size=4 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 0D 03 02 [14:25:51]Write to MH i2c: E2 08 00 9C 03 80 0D 03 02 00 00 00 00 1A [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 0B 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 0B 00 9C 03 00 66 C1 1A FA 0D 63 30 4D 90 00 43 [14:25:51]RAPDU: 66 C1 1A FA 0D 63 30 4D 90 00 [14:25:51]wFMCommunicate OK [14:25:51]SAM_PROTO_SignData done [14:25:51]FM_MakeSignedData done [14:25:51]CreateOFDProtocolMessage [14:25:51]wFMCommunicate request_size=4 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 11 00 00 [14:25:51]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 17 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [14:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:25:51]wFMCommunicate OK [14:25:51]CreateOFDProtocolMessage done [14:25:51]OFDSenderStorePacket 112545 [14:25:51]StoreOFDPacket docnum=112545 [14:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 92 F5 04 01 B3 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 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 6E 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B7 01 00 35 04 06 00 38 B3 C4 5A A6 81 66 C1 1A FA 0D 63 30 4D [14:25:51]CheckFolder [14:25:51]dirname=/storage/ofd_packets [14:25:51]CheckFolder done [14:25:51]ProducePacketName [14:25:51]name=ofd_packets/00112545 [14:25:51]NVStorageSaveData ofd_packets/00112545 [14:25:51]File name is /storage/ofd_packets/00112545 [14:25:51]Write 298 bytes [14:25:51]NVStorageSaveData done [14:25:51]OFDSenderStorePacket done [14:25:51]KKMCreateOFDPacket done [14:25:51]NVStorageSaveData kkm_last_timestamp [14:25:51]File name is /storage/kkm_last_timestamp [14:25:51]Write 4 bytes [14:25:51]NVStorageSaveData done [14:25:51]ExternCall_PrintAddStr [14:25:51]wPrintStart [14:25:51]Write to MH i2c: 01 00 00 9E 03 A1 [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: 01 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: 01 07 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 FF 0F B6 [14:25:51]RasterBufferAndPrint [14:25:51]line Счет N : (1)321228 [14:25:51]line ИНН: 02508201610067 [14:25:51]line Контрольно-Кассовый Чек [14:25:51]line ПРОДАЖА [14:25:51]line ТРК (МРК, ГНК) : 22 [14:25:51]line Товар: 2710194210 [14:25:51]line ДТ-К-5 [14:25:51]line 30.180 * 72.90 [14:25:51]line = 2200.12 [14:25:51]line НДС 12% НСП 1% [14:25:51]line > о реализуемом товаре [14:25:51]line ОКРУГЛЕНИЕ: -0.12 [14:25:51]line ИТОГО: 2200.00 [14:25:51]line Внесено: 2200.00 [14:25:51]line СДАЧА: 0.00 [14:25:51]line НСП 1% : 19.47 [14:25:51]line НДС 12% : 233.64 [14:25:51]line Наличными: 2200.00 [14:25:51]line Безнал.: 0.00 [14:25:51]line Место: АЗС № 65 "Партнер Нефть" [14:25:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:25:51]line СНО: Общий режим [14:25:51]line Чек 146 23.06.2024 14:25 [14:25:51]line Смена: 392 ФФД: 1.0 [14:25:51]line ЗНМ: 0300000198 [14:25:51]line РНМ: 0000000000092771 [14:25:51]line Версия ККМ: 001 [14:25:51]line ФМ: 0000000000875083 [14:25:51]line ФД: 112545 [14:25:51]line ФПД: 62344744576641 [14:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142550&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112545&fm=62344744576641&tin=02508201610067®Number=0000000000092771&sum=220000 [14:25:52]OFD Sender: Processing packet 112545 [packets to send 38, broken 37] [14:25:52]ProducePacketName [14:25:52]name=ofd_packets/00112545 [14:25:52]OFD Sender: To server: pG, [14:25:52]CommunicateWithHost lk.salyk.kg:30040 [14:25:52]ConnectInit lk.salyk.kg [14:25:52]written 0, free lines is 4095 [14:25:52]Connected sock=8 [14:25:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 92 F5 04 01 B3 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 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 6E 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B7 01 00 35 04 06 00 38 B3 C4 5A A6 81 66 C1 1A FA 0D 63 30 4D [14:25:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 28 31 47 00 29 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B7 01 00 F4 03 04 00 59 C7 77 66 B6 04 01 00 00 E5 8C 14 04 FC E1 33 B9 [14:25:52]CommunicateWithHost err = 0 [14:25:52]CheckOFDResponse [14:25:52]1017 (14) - 77093643461234 [14:25:52]1041 (16) - 0000000000875083 [14:25:52]1040 (4) - 112545 [14:25:52]1012 (4) - 23.06.2024 06:57 [14:25:52]1206 (1) - 0 [14:25:52]OFD Sender: Remove packet 112545 [14:25:52]ProducePacketName [14:25:52]name=ofd_packets/00112545 [14:25:52]NVStorageDeleteData [14:25:52]Write to MH i2c: 01 00 00 C9 03 CC [14:25:52]Write i2c OK [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: 01 [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: 01 07 00 [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 EC 0C CB [14:25:52]RasterBufferAndPrint [14:25:52]line [14:25:52]line [14:25:52]line [14:25:52]line [14:25:52]line [14:25:52]written 0, free lines is 3315 [14:25:52]MH_Cut [14:25:52]Write to MH i2c: D1 01 00 D0 03 01 A5 [14:25:52]Write i2c OK [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: D1 [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: D1 01 00 [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: D1 01 00 D0 03 00 A4 [14:25:52]Write to MH i2c: 01 00 00 D1 03 D4 [14:25:52]Write i2c OK [14:25:52]MH_I2C_Read... [14:25:52]OFD Sender: No OFD packet to send [14:25:53]*** Cut start [14:25:53]*** Partial cut [14:25:53]*** CUTSNS_PIN = 1 [14:25:53]*** CUTSNS_PIN = 0 [14:25:53]*** Brake cut motor [14:25:53]Read from MH i2c: 01 [14:25:53]MH_I2C_Read... [14:25:53]*** Stop cut motor [14:25:53]*** Cut end [14:25:53]Read from MH i2c: 01 07 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [14:25:53]process_action close_receipt done [14:25:53]requested_data is exist [14:25:53]produce_requested_data [14:25:53]requested_item fm.sn is exist - process it [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 11 00 00 [14:25:53]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 17 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [14:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:25:53]wFMCommunicate OK [14:25:53]requested_item fd.num is exist - process it [14:25:53]SAM_PROTO_GetFieldsCounters [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 13 00 00 [14:25:53]Write to MH i2c: E2 08 00 D3 03 80 13 00 00 00 00 00 00 52 [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:54]Read from MH i2c: E2 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 62 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 62 00 D3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B7 01 00 0E 04 04 00 88 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 0B [14:25:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B7 01 00 0E 04 04 00 88 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 [14:25:54]wFMCommunicate OK [14:25:54]SAM_PROTO_GetFieldsCounters done [14:25:54]requested_item shift.num is exist - process it [14:25:54]requested_item shift.opened is exist - process it [14:25:54]req_shift_opened [14:25:54]FM_GetShiftState [14:25:54]SAM_PROTO_GetShiftState [14:25:54]wFMCommunicate request_size=4 [14:25:54]MH_SAM_APDU [14:25:54]CAPDU: 80 13 01 00 [14:25:54]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:54]Read from MH i2c: E2 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 0E 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 72 [14:25:54]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:25:54]wFMCommunicate OK [14:25:54]SAM_PROTO_GetShiftState done [14:25:54]FM_GetShiftState done [14:25:54]req_shift_opened done [14:25:54]requested_item shift.open_date is exist - process it [14:25:54]req_shift_open_date [14:25:54]req_shift_open_date done [14:25:54]produce_requested_data done [14:25:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112545,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:25:54]process_action_free close_receipt [14:25:54]json_value_free [14:25:54]json_value_free done [14:25:54]process_json_proto returns [14:25:54]Send response to host [14:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112545,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:25:54]free response buf [14:25:54]execute_script done [14:25:54]execute_script returns [14:25:54]free content buf [14:25:54]Sock 9.Close socket [14:25:54]Sock 9.Thread stoped [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:53]accept exits with 10 [14:26:53]New connection [14:26:53]New thread 3066674532 created [14:26:53]Thread 3066817892 joined [14:26:53]Waiting for new connection... [14:26:53] Sock 10.Parse request [14:26:53]Sock 10.Check first char [14:26:53]Sock 10.First char is OK [14:26:53]request: POST /json_proto HTTP/1.0 [14:26:53]Method: POST [14:26:53]URL: /json_proto [14:26:53]Method is POST - this is cgi request [14:26:53]url: /json_proto [14:26:53]query_string will be loaded in cgi processing [14:26:53]execute_cgi json_proto POST (null) [14:26:53]execute_cgi path=json_proto method=POST [14:26:53]POST find Content-Length [14:26:53]Host: 172.17.59.68:8080 [14:26:53]Content-Length: 682 [14:26:53]Content-Type: application/json [14:26:53] [14:26:53]POST finish read [14:26:53]Found Content-Length = 682 [14:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:26:53]execute_script... [14:26: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)321229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:26:53]POST & json_proto [14:26:53]process_json_proto [14:26:53]json parsed OK: [14:26:53]protocol is kg_v1.0 [14:26:53]action value=close_receipt [14:26:53]process_action close_receipt [14:26:53]cmd_close_receipt [14:26:53]MH_GetDate [14:26:53]Write to MH i2c: F0 00 00 D5 03 C7 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: F0 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: F0 09 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: F0 09 00 D5 03 00 AD 30 78 66 BC EC 60 65 F8 [14:26:53]GetLastDocTimeStamp 1719152750 [14:26:53]current date 1719152813 [14:26:53]FM_GetShiftState [14:26:53]SAM_PROTO_GetShiftState [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 13 01 00 [14:26:53]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 0E 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 74 [14:26:53]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:26:53]wFMCommunicate OK [14:26:53]SAM_PROTO_GetShiftState done [14:26:53]FM_GetShiftState done [14:26:53]opened in 1719106490 [14:26:53]opened+sec_in_day 1719192890 [14:26:53]quantity*price = 200063 [14:26:53]sum+1 = 200064 [14:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 147 23.06.2024 14:26 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112546 ФПД: 3269424965139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142654&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112546&fm=3269424965139&tin=02508201610067®Number=0000000000092771&sum=200000 [14:26:54]StoreToDocumentArchive [14:26:54]shift 392 fd 112546 [14:26:54]save to /storage/0392/doc_00112546 [14:26:54]save last doc name /storage/0392/doc_00112546 to /storage/kkm_last_doc_name [14:26:54]save OK [14:26:54]Clear old archive folders... [14:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:54]tlvbuf is 01BBAAC0 [14:26:54]SAM_PROTO_ClearQueue [14:26:54]wFMCommunicate request_size=4 [14:26:54]MH_SAM_APDU [14:26:54]CAPDU: 80 09 00 00 [14:26:54]Write to MH i2c: E2 08 00 E3 03 80 09 00 00 00 00 00 00 58 [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:54]Read from MH i2c: E2 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 03 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [14:26:54]RAPDU: 90 00 [14:26:54]wFMCommunicate OK [14:26:54]SAM_PROTO_ClearQueue done [14:26:54]KKMCreateOFDPacket [14:26:54]OFDProtocolAddRootSTLVToBuf [14:26:54]FM_MakeSignedData [14:26:54]FM_MakeSignedData [14:26:54]SAM_PROTO_SignData [14:26:54]wFMCommunicate request_size=4 [14:26:54]MH_SAM_APDU [14:26:54]CAPDU: 80 0D 01 02 [14:26:54]Write to MH i2c: E2 08 00 E4 03 80 0D 01 02 00 00 00 00 60 [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:54]Read from MH i2c: E2 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 03 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [14:26:54]RAPDU: 90 00 [14:26:54]wFMCommunicate OK [14:26:54]wFMCommunicate request_size=255 [14:26:54]MH_SAM_APDU [14:26:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 93 00 00 00 F4 03 04 00 AE 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B7 01 00 35 04 06 00 02 [14:26:54]Write to MH i2c: E2 02 01 E5 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 93 00 00 00 F4 03 04 00 AE 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B7 01 00 35 04 06 00 02 00 00 3D [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]wFMCommunicate request_size=10 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 0D 02 02 05 F9 38 E9 E6 13 [14:26:55]Write to MH i2c: E2 0D 00 E6 03 80 0D 02 02 05 00 F9 38 E9 E6 13 00 00 80 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 0D 03 02 [14:26:55]Write to MH i2c: E2 08 00 E7 03 80 0D 03 02 00 00 00 00 65 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 0B 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 0B 00 E7 03 00 BE 31 73 7A D8 0A 24 07 90 00 4F [14:26:55]RAPDU: BE 31 73 7A D8 0A 24 07 90 00 [14:26:55]wFMCommunicate OK [14:26:55]SAM_PROTO_SignData done [14:26:55]FM_MakeSignedData done [14:26:55]CreateOFDProtocolMessage [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 11 00 00 [14:26:55]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 17 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B7 [14:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:26:55]wFMCommunicate OK [14:26:55]CreateOFDProtocolMessage done [14:26:55]OFDSenderStorePacket 112546 [14:26:55]StoreOFDPacket docnum=112546 [14:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DB FB 07 01 E7 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 93 00 00 00 F4 03 04 00 AE 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B7 01 00 35 04 06 00 02 F9 38 E9 E6 13 BE 31 73 7A D8 0A 24 07 [14:26:55]CheckFolder [14:26:55]dirname=/storage/ofd_packets [14:26:55]CheckFolder done [14:26:55]ProducePacketName [14:26:55]name=ofd_packets/00112546 [14:26:55]NVStorageSaveData ofd_packets/00112546 [14:26:55]File name is /storage/ofd_packets/00112546 [14:26:55]Write 301 bytes [14:26:55]NVStorageSaveData done [14:26:55]OFDSenderStorePacket done [14:26:55]KKMCreateOFDPacket done [14:26:55]NVStorageSaveData kkm_last_timestamp [14:26:55]File name is /storage/kkm_last_timestamp [14:26:55]Write 4 bytes [14:26:55]NVStorageSaveData done [14:26:55]ExternCall_PrintAddStr [14:26:55]wPrintStart [14:26:55]Write to MH i2c: 01 00 00 E9 03 EC [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: 01 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: 01 07 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 FF 0F 01 [14:26:55]RasterBufferAndPrint [14:26:55]line Счет N : (1)321229 [14:26:55]line ИНН: 02508201610067 [14:26:55]line Контрольно-Кассовый Чек [14:26:55]line ПРОДАЖА [14:26:55]line ТРК (МРК, ГНК) : 11 [14:26:55]line Товар: 2710124130 [14:26:55]line Аи-92-К-5 [14:26:55]line 30.130 * 66.40 [14:26:55]line = 2000.63 [14:26:55]line НДС 12% НСП 1% [14:26:55]line > о реализуемом товаре [14:26:55]line ОКРУГЛЕНИЕ: -0.63 [14:26:55]line ИТОГО: 2000.00 [14:26:55]line Внесено: 2000.00 [14:26:55]line СДАЧА: 0.00 [14:26:55]line НСП 1% : 17.70 [14:26:55]line НДС 12% : 212.46 [14:26:55]line Наличными: 2000.00 [14:26:55]line Безнал.: 0.00 [14:26:55]line Место: АЗС № 65 "Партнер Нефть" [14:26:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:26:55]line СНО: Общий режим [14:26:55]line Чек 147 23.06.2024 14:26 [14:26:55]line Смена: 392 ФФД: 1.0 [14:26:55]line ЗНМ: 0300000198 [14:26:55]line РНМ: 0000000000092771 [14:26:55]line Версия ККМ: 001 [14:26:55]line ФМ: 0000000000875083 [14:26:55]line ФД: 112546 [14:26:55]line ФПД: 3269424965139 [14:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142654&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112546&fm=3269424965139&tin=02508201610067®Number=0000000000092771&sum=200000 [14:26:55]OFD Sender: Processing packet 112546 [packets to send 38, broken 37] [14:26:55]ProducePacketName [14:26:55]name=ofd_packets/00112546 [14:26:55]OFD Sender: To server: pG, [14:26:55]CommunicateWithHost lk.salyk.kg:30040 [14:26:55]ConnectInit lk.salyk.kg [14:26:55]written 0, free lines is 4095 [14:26:55]Connected sock=9 [14:26:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DB FB 07 01 E7 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 93 00 00 00 F4 03 04 00 AE 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B7 01 00 35 04 06 00 02 F9 38 E9 E6 13 BE 31 73 7A D8 0A 24 07 [14:26:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C5 6E 47 00 52 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B7 01 00 F4 03 04 00 98 C7 77 66 B6 04 01 00 00 93 FE 4B F7 FC AC 68 D9 [14:26:55]CommunicateWithHost err = 0 [14:26:55]CheckOFDResponse [14:26:55]1017 (14) - 77093643461234 [14:26:55]1041 (16) - 0000000000875083 [14:26:55]1040 (4) - 112546 [14:26:55]1012 (4) - 23.06.2024 06:58 [14:26:55]1206 (1) - 0 [14:26:55]OFD Sender: Remove packet 112546 [14:26:55]ProducePacketName [14:26:55]name=ofd_packets/00112546 [14:26:55]NVStorageDeleteData [14:26:56]Write to MH i2c: 01 00 00 14 04 18 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 EE 0C 19 [14:26:56]RasterBufferAndPrint [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]written 0, free lines is 3316 [14:26:56]MH_Cut [14:26:56]Write to MH i2c: D1 01 00 1B 04 01 F1 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 01 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 01 00 1B 04 00 F0 [14:26:56]Write to MH i2c: 01 00 00 1C 04 20 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]OFD Sender: No OFD packet to send [14:26:56]*** Cut start [14:26:56]*** Partial cut [14:26:56]*** CUTSNS_PIN = 1 [14:26:56]*** CUTSNS_PIN = 0 [14:26:56]*** Brake cut motor [14:26:57]Read from MH i2c: 01 [14:26:57]MH_I2C_Read... [14:26:57]*** Stop cut motor [14:26:57]*** Cut end [14:26:57]Read from MH i2c: 01 07 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 FF 0F 35 [14:26:57]process_action close_receipt done [14:26:57]requested_data is exist [14:26:57]produce_requested_data [14:26:57]requested_item fm.sn is exist - process it [14:26:57]wFMCommunicate request_size=4 [14:26:57]MH_SAM_APDU [14:26:57]CAPDU: 80 11 00 00 [14:26:57]Write to MH i2c: E2 08 00 1D 04 80 11 00 00 00 00 00 00 9B [14:26:57]Write i2c OK [14:26:57]MH_I2C_Read... [14:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:57]Read from MH i2c: E2 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 17 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 17 00 1D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 ED [14:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:26:57]wFMCommunicate OK [14:26:57]requested_item fd.num is exist - process it [14:26:57]SAM_PROTO_GetFieldsCounters [14:26:57]wFMCommunicate request_size=4 [14:26:57]MH_SAM_APDU [14:26:57]CAPDU: 80 13 00 00 [14:26:57]Write to MH i2c: E2 08 00 1E 04 80 13 00 00 00 00 00 00 9E [14:26:57]Write i2c OK [14:26:57]MH_I2C_Read... [14:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:57]Read from MH i2c: E2 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 62 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 62 00 1E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B7 01 00 0E 04 04 00 88 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 5B [14:26:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B7 01 00 0E 04 04 00 88 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 [14:26:57]wFMCommunicate OK [14:26:57]SAM_PROTO_GetFieldsCounters done [14:26:57]requested_item shift.num is exist - process it [14:26:57]requested_item shift.opened is exist - process it [14:26:57]req_shift_opened [14:26:57]FM_GetShiftState [14:26:57]SAM_PROTO_GetShiftState [14:26:57]wFMCommunicate request_size=4 [14:26:57]MH_SAM_APDU [14:26:57]CAPDU: 80 13 01 00 [14:26:57]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [14:26:57]Write i2c OK [14:26:57]MH_I2C_Read... [14:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:57]Read from MH i2c: E2 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 0E 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 BE [14:26:57]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:26:57]wFMCommunicate OK [14:26:57]SAM_PROTO_GetShiftState done [14:26:57]FM_GetShiftState done [14:26:57]req_shift_opened done [14:26:57]requested_item shift.open_date is exist - process it [14:26:57]req_shift_open_date [14:26:57]req_shift_open_date done [14:26:57]produce_requested_data done [14:26:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112546,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:26:57]process_action_free close_receipt [14:26:57]json_value_free [14:26:57]json_value_free done [14:26:57]process_json_proto returns [14:26:57]Send response to host [14:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112546,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:26:57]free response buf [14:26:57]execute_script done [14:26:57]execute_script returns [14:26:57]free content buf [14:26:57]Sock 10.Close socket [14:26:57]Sock 10.Thread stoped [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:55]accept exits with 8 [14:27:55]New connection [14:27:55]New thread 3066817892 created [14:27:55]Thread 3066674532 joined [14:27:55]Waiting for new connection... [14:27:55] Sock 8.Parse request [14:27:55]Sock 8.Check first char [14:27:55]Sock 8.First char is OK [14:27:55]request: POST /json_proto HTTP/1.0 [14:27:55]Method: POST [14:27:55]URL: /json_proto [14:27:55]Method is POST - this is cgi request [14:27:55]url: /json_proto [14:27:55]query_string will be loaded in cgi processing [14:27:55]execute_cgi json_proto POST (null) [14:27:55]execute_cgi path=json_proto method=POST [14:27:55]POST find Content-Length [14:27:55]Host: 172.17.59.68:8080 [14:27:55]Content-Length: 677 [14:27:55]Content-Type: application/json [14:27:55] [14:27:55]POST finish read [14:27:55]Found Content-Length = 677 [14:27:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:27:55]execute_script... [14:27: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)321230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:27:55]POST & json_proto [14:27:55]process_json_proto [14:27:55]json parsed OK: [14:27:55]protocol is kg_v1.0 [14:27:55]action value=close_receipt [14:27:55]process_action close_receipt [14:27:55]cmd_close_receipt [14:27:55]MH_GetDate [14:27:55]Write to MH i2c: F0 00 00 20 04 13 [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: F0 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: F0 09 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: F0 09 00 20 04 00 EC 30 78 66 BC EC 60 65 83 [14:27:55]GetLastDocTimeStamp 1719152814 [14:27:55]current date 1719152876 [14:27:55]FM_GetShiftState [14:27:55]SAM_PROTO_GetShiftState [14:27:55]wFMCommunicate request_size=4 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 13 01 00 [14:27:55]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 0E 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C0 [14:27:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:27:55]wFMCommunicate OK [14:27:55]SAM_PROTO_GetShiftState done [14:27:55]FM_GetShiftState done [14:27:55]opened in 1719106490 [14:27:55]opened+sec_in_day 1719192890 [14:27:55]quantity*price = 60025 [14:27:55]sum+1 = 60027 [14:27:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 148 23.06.2024 14:27 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112547 ФПД: 75212202027469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142756&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112547&fm=75212202027469&tin=02508201610067®Number=0000000000092771&sum=60000 [14:27:57]StoreToDocumentArchive [14:27:57]shift 392 fd 112547 [14:27:57]save to /storage/0392/doc_00112547 [14:27:57]save last doc name /storage/0392/doc_00112547 to /storage/kkm_last_doc_name [14:27:57]save OK [14:27:57]Clear old archive folders... [14:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:57]tlvbuf is 01BAE0A0 [14:27:57]SAM_PROTO_ClearQueue [14:27:57]wFMCommunicate request_size=4 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 09 00 00 [14:27:57]Write to MH i2c: E2 08 00 2E 04 80 09 00 00 00 00 00 00 A4 [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 03 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [14:27:57]RAPDU: 90 00 [14:27:57]wFMCommunicate OK [14:27:57]SAM_PROTO_ClearQueue done [14:27:57]KKMCreateOFDPacket [14:27:57]OFDProtocolAddRootSTLVToBuf [14:27:57]FM_MakeSignedData [14:27:57]FM_MakeSignedData [14:27:57]SAM_PROTO_SignData [14:27:57]wFMCommunicate request_size=4 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 0D 01 02 [14:27:57]Write to MH i2c: E2 08 00 2F 04 80 0D 01 02 00 00 00 00 AC [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 03 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [14:27:57]RAPDU: 90 00 [14:27:57]wFMCommunicate OK [14:27:57]wFMCommunicate request_size=255 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 94 00 00 00 F4 03 04 00 EC 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B7 01 00 35 04 06 00 44 [14:27:57]Write to MH i2c: E2 02 01 30 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 94 00 00 00 F4 03 04 00 EC 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B7 01 00 35 04 06 00 44 00 00 F3 [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:57]Read from MH i2c: E2 03 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [14:27:57]RAPDU: 90 00 [14:27:57]wFMCommunicate OK [14:27:57]wFMCommunicate request_size=10 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 0D 02 02 05 67 B4 95 A9 CD [14:27:57]Write to MH i2c: E2 0D 00 31 04 80 0D 02 02 05 00 67 B4 95 A9 CD 00 00 DF [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 03 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [14:27:57]RAPDU: 90 00 [14:27:57]wFMCommunicate OK [14:27:57]wFMCommunicate request_size=4 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 0D 03 02 [14:27:57]Write to MH i2c: E2 08 00 32 04 80 0D 03 02 00 00 00 00 B1 [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 0B 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 0B 00 32 04 00 70 3D 6E 87 A5 1B E7 B5 90 00 B0 [14:27:57]RAPDU: 70 3D 6E 87 A5 1B E7 B5 90 00 [14:27:57]wFMCommunicate OK [14:27:57]SAM_PROTO_SignData done [14:27:57]FM_MakeSignedData done [14:27:57]CreateOFDProtocolMessage [14:27:57]wFMCommunicate request_size=4 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 11 00 00 [14:27:57]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 17 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 03 [14:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:27:57]wFMCommunicate OK [14:27:57]CreateOFDProtocolMessage done [14:27:57]OFDSenderStorePacket 112547 [14:27:57]StoreOFDPacket docnum=112547 [14:27:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 31 07 01 FF 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 94 00 00 00 F4 03 04 00 EC 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B7 01 00 35 04 06 00 44 67 B4 95 A9 CD 70 3D 6E 87 A5 1B E7 B5 [14:27:57]CheckFolder [14:27:57]dirname=/storage/ofd_packets [14:27:57]CheckFolder done [14:27:57]ProducePacketName [14:27:57]name=ofd_packets/00112547 [14:27:57]NVStorageSaveData ofd_packets/00112547 [14:27:57]File name is /storage/ofd_packets/00112547 [14:27:57]Write 301 bytes [14:27:57]NVStorageSaveData done [14:27:57]OFDSenderStorePacket done [14:27:57]KKMCreateOFDPacket done [14:27:57]NVStorageSaveData kkm_last_timestamp [14:27:57]File name is /storage/kkm_last_timestamp [14:27:57]Write 4 bytes [14:27:57]NVStorageSaveData done [14:27:57]ExternCall_PrintAddStr [14:27:57]wPrintStart [14:27:57]Write to MH i2c: 01 00 00 34 04 38 [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: 01 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: 01 07 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 FF 0F 4D [14:27:57]RasterBufferAndPrint [14:27:57]line Счет N : (1)321230 [14:27:57]line ИНН: 02508201610067 [14:27:57]line Контрольно-Кассовый Чек [14:27:57]line ПРОДАЖА [14:27:57]line ТРК (МРК, ГНК) : 11 [14:27:57]line Товар: 2710124130 [14:27:57]line Аи-92-К-5 [14:27:57]line 9.040 * 66.40 [14:27:57]line = 600.26 [14:27:57]line НДС 12% НСП 1% [14:27:57]line > о реализуемом товаре [14:27:57]line ОКРУГЛЕНИЕ: -0.26 [14:27:57]line ИТОГО: 600.00 [14:27:57]line Внесено: 600.00 [14:27:57]line СДАЧА: 0.00 [14:27:57]line НСП 1% : 5.31 [14:27:57]line НДС 12% : 63.74 [14:27:57]line Наличными: 600.00 [14:27:57]line Безнал.: 0.00 [14:27:57]line Место: АЗС № 65 "Партнер Нефть" [14:27:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:27:57]line СНО: Общий режим [14:27:57]line Чек 148 23.06.2024 14:27 [14:27:57]line Смена: 392 ФФД: 1.0 [14:27:57]line ЗНМ: 0300000198 [14:27:57]line РНМ: 0000000000092771 [14:27:57]line Версия ККМ: 001 [14:27:57]line ФМ: 0000000000875083 [14:27:57]line ФД: 112547 [14:27:57]line ФПД: 75212202027469 [14:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142756&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112547&fm=75212202027469&tin=02508201610067®Number=0000000000092771&sum=60000 [14:27:57]OFD Sender: Processing packet 112547 [packets to send 38, broken 37] [14:27:57]ProducePacketName [14:27:57]name=ofd_packets/00112547 [14:27:57]OFD Sender: To server: pG, [14:27:57]CommunicateWithHost lk.salyk.kg:30040 [14:27:57]ConnectInit lk.salyk.kg [14:27:57]written 0, free lines is 4095 [14:27:57]Connected sock=10 [14:27:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 31 07 01 FF 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 94 00 00 00 F4 03 04 00 EC 30 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B7 01 00 35 04 06 00 44 67 B4 95 A9 CD 70 3D 6E 87 A5 1B E7 B5 [14:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 86 47 00 BF E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B7 01 00 F4 03 04 00 D7 C7 77 66 B6 04 01 00 00 7F 11 FE C8 0E 4B 26 0E [14:27:58]CommunicateWithHost err = 0 [14:27:58]CheckOFDResponse [14:27:58]1017 (14) - 77093643461234 [14:27:58]1041 (16) - 0000000000875083 [14:27:58]1040 (4) - 112547 [14:27:58]1012 (4) - 23.06.2024 06:59 [14:27:58]1206 (1) - 0 [14:27:58]OFD Sender: Remove packet 112547 [14:27:58]ProducePacketName [14:27:58]name=ofd_packets/00112547 [14:27:58]NVStorageDeleteData [14:27:58]Write to MH i2c: 01 00 00 5F 04 63 [14:27:58]Write i2c OK [14:27:58]MH_I2C_Read... [14:27:58]Read from MH i2c: 01 [14:27:58]MH_I2C_Read... [14:27:58]Read from MH i2c: 01 07 00 [14:27:58]MH_I2C_Read... [14:27:58]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 ED 0C 63 [14:27:58]RasterBufferAndPrint [14:27:58]line [14:27:58]line [14:27:58]line [14:27:58]line [14:27:58]line [14:27:58]written 0, free lines is 3315 [14:27:58]MH_Cut [14:27:58]Write to MH i2c: D1 01 00 66 04 01 3C [14:27:58]Write i2c OK [14:27:58]MH_I2C_Read... [14:27:58]Read from MH i2c: D1 [14:27:58]MH_I2C_Read... [14:27:58]Read from MH i2c: D1 01 00 [14:27:58]MH_I2C_Read... [14:27:58]Read from MH i2c: D1 01 00 66 04 00 3B [14:27:58]Write to MH i2c: 01 00 00 67 04 6B [14:27:58]Write i2c OK [14:27:58]MH_I2C_Read... [14:27:58]OFD Sender: No OFD packet to send [14:27:59]*** Cut start [14:27:59]*** Partial cut [14:27:59]*** CUTSNS_PIN = 1 [14:27:59]*** CUTSNS_PIN = 0 [14:27:59]*** Brake cut motor [14:27:59]Read from MH i2c: 01 [14:27:59]MH_I2C_Read... [14:27:59]*** Stop cut motor [14:27:59]*** Cut end [14:27:59]Read from MH i2c: 01 07 00 [14:27:59]MH_I2C_Read... [14:27:59]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 FF 0F 80 [14:27:59]process_action close_receipt done [14:27:59]requested_data is exist [14:27:59]produce_requested_data [14:27:59]requested_item fm.sn is exist - process it [14:27:59]wFMCommunicate request_size=4 [14:27:59]MH_SAM_APDU [14:27:59]CAPDU: 80 11 00 00 [14:27:59]Write to MH i2c: E2 08 00 68 04 80 11 00 00 00 00 00 00 E6 [14:27:59]Write i2c OK [14:27:59]MH_I2C_Read... [14:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:59]Read from MH i2c: E2 [14:27:59]MH_I2C_Read... [14:27:59]Read from MH i2c: E2 17 00 [14:27:59]MH_I2C_Read... [14:27:59]Read from MH i2c: E2 17 00 68 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [14:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:27:59]wFMCommunicate OK [14:27:59]requested_item fd.num is exist - process it [14:27:59]SAM_PROTO_GetFieldsCounters [14:27:59]wFMCommunicate request_size=4 [14:27:59]MH_SAM_APDU [14:27:59]CAPDU: 80 13 00 00 [14:27:59]Write to MH i2c: E2 08 00 69 04 80 13 00 00 00 00 00 00 E9 [14:27:59]Write i2c OK [14:27:59]MH_I2C_Read... [14:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:59]Read from MH i2c: E2 [14:27:59]MH_I2C_Read... [14:27:59]Read from MH i2c: E2 62 00 [14:27:59]MH_I2C_Read... [14:27:59]Read from MH i2c: E2 62 00 69 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B7 01 00 0E 04 04 00 88 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 AA [14:27:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B7 01 00 0E 04 04 00 88 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 [14:27:59]wFMCommunicate OK [14:27:59]SAM_PROTO_GetFieldsCounters done [14:27:59]requested_item shift.num is exist - process it [14:27:59]requested_item shift.opened is exist - process it [14:27:59]req_shift_opened [14:27:59]FM_GetShiftState [14:27:59]SAM_PROTO_GetShiftState [14:27:59]wFMCommunicate request_size=4 [14:27:59]MH_SAM_APDU [14:27:59]CAPDU: 80 13 01 00 [14:27:59]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [14:27:59]Write i2c OK [14:27:59]MH_I2C_Read... [14:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:59]Read from MH i2c: E2 [14:27:59]MH_I2C_Read... [14:27:59]Read from MH i2c: E2 0E 00 [14:27:59]MH_I2C_Read... [14:27:59]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 09 [14:27:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:27:59]wFMCommunicate OK [14:27:59]SAM_PROTO_GetShiftState done [14:27:59]FM_GetShiftState done [14:27:59]req_shift_opened done [14:27:59]requested_item shift.open_date is exist - process it [14:27:59]req_shift_open_date [14:27:59]req_shift_open_date done [14:27:59]produce_requested_data done [14:27:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112547,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:27:59]process_action_free close_receipt [14:27:59]json_value_free [14:27:59]json_value_free done [14:27:59]process_json_proto returns [14:27:59]Send response to host [14:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112547,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:27:59]free response buf [14:27:59]execute_script done [14:27:59]execute_script returns [14:27:59]free content buf [14:27:59]Sock 8.Close socket [14:27:59]Sock 8.Thread stoped [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:56]accept exits with 9 [14:29:56]New connection [14:29:56]New thread 3066674532 created [14:29:56]Thread 3066817892 joined [14:29:56]Waiting for new connection... [14:29:56] Sock 9.Parse request [14:29:56]Sock 9.Check first char [14:29:56]Sock 9.First char is OK [14:29:56]request: POST /json_proto HTTP/1.0 [14:29:56]Method: POST [14:29:56]URL: /json_proto [14:29:56]Method is POST - this is cgi request [14:29:56]url: /json_proto [14:29:56]query_string will be loaded in cgi processing [14:29:56]execute_cgi json_proto POST (null) [14:29:56]execute_cgi path=json_proto method=POST [14:29:56]POST find Content-Length [14:29:56]Host: 172.17.59.68:8080 [14:29:56]Content-Length: 805 [14:29:56]Content-Type: application/json [14:29:56] [14:29:56]POST finish read [14:29:56]Found Content-Length = 805 [14:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:56]execute_script... [14:29: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)321232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:56]POST & json_proto [14:29:56]process_json_proto [14:29:56]json parsed OK: [14:29:56]protocol is kg_v1.0 [14:29:56]action value=close_receipt [14:29:56]process_action close_receipt [14:29:56]cmd_close_receipt [14:29:56]MH_GetDate [14:29:56]Write to MH i2c: F0 00 00 6B 04 5E [14:29:56]Write i2c OK [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: F0 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: F0 09 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: F0 09 00 6B 04 00 64 31 78 66 BC EC 60 65 47 [14:29:56]GetLastDocTimeStamp 1719152876 [14:29:56]current date 1719152996 [14:29:56]FM_GetShiftState [14:29:56]SAM_PROTO_GetShiftState [14:29:56]wFMCommunicate request_size=4 [14:29:56]MH_SAM_APDU [14:29:56]CAPDU: 80 13 01 00 [14:29:56]Write to MH i2c: E2 08 00 6C 04 80 13 01 00 00 00 00 00 ED [14:29:56]Write i2c OK [14:29:56]MH_I2C_Read... [14:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:56]Read from MH i2c: E2 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 0E 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 0E 00 6C 04 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0B [14:29:56]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:29:56]wFMCommunicate OK [14:29:56]SAM_PROTO_GetShiftState done [14:29:56]FM_GetShiftState done [14:29:56]opened in 1719106490 [14:29:56]opened+sec_in_day 1719192890 [14:29:56]quantity*price = 60025 [14:29:56]sum+1 = 60027 [14:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.26 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.26 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 149 23.06.2024 14:29 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112548 ФПД: 88868412626001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142956&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112548&fm=88868412626001&tin=02508201610067®Number=0000000000092771&sum=60026 [14:29:57]StoreToDocumentArchive [14:29:57]shift 392 fd 112548 [14:29:57]save to /storage/0392/doc_00112548 [14:29:57]save last doc name /storage/0392/doc_00112548 to /storage/kkm_last_doc_name [14:29:57]save OK [14:29:57]Clear old archive folders... [14:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:57]tlvbuf is 01BB2510 [14:29:57]SAM_PROTO_ClearQueue [14:29:57]wFMCommunicate request_size=4 [14:29:57]MH_SAM_APDU [14:29:57]CAPDU: 80 09 00 00 [14:29:57]Write to MH i2c: E2 08 00 79 04 80 09 00 00 00 00 00 00 EF [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:57]Read from MH i2c: E2 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 03 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [14:29:57]RAPDU: 90 00 [14:29:57]wFMCommunicate OK [14:29:57]SAM_PROTO_ClearQueue done [14:29:57]KKMCreateOFDPacket [14:29:57]OFDProtocolAddRootSTLVToBuf [14:29:57]FM_MakeSignedData [14:29:57]FM_MakeSignedData [14:29:57]SAM_PROTO_SignData [14:29:57]wFMCommunicate request_size=4 [14:29:57]MH_SAM_APDU [14:29:57]CAPDU: 80 0D 01 02 [14:29:57]Write to MH i2c: E2 08 00 7A 04 80 0D 01 02 00 00 00 00 F7 [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:57]Read from MH i2c: E2 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 03 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [14:29:57]RAPDU: 90 00 [14:29:57]wFMCommunicate OK [14:29:57]wFMCommunicate request_size=255 [14:29:57]MH_SAM_APDU [14:29:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 64 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B7 01 00 35 04 06 00 50 [14:29:57]Write to MH i2c: E2 02 01 7B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 64 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B7 01 00 35 04 06 00 50 00 00 F9 [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:57]Read from MH i2c: E2 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 03 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [14:29:57]RAPDU: 90 00 [14:29:57]wFMCommunicate OK [14:29:57]wFMCommunicate request_size=10 [14:29:57]MH_SAM_APDU [14:29:57]CAPDU: 80 0D 02 02 05 D3 4A 2A 94 51 [14:29:57]Write to MH i2c: E2 0D 00 7C 04 80 0D 02 02 05 00 D3 4A 2A 94 51 00 00 30 [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:57]Read from MH i2c: E2 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 03 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [14:29:57]RAPDU: 90 00 [14:29:57]wFMCommunicate OK [14:29:57]wFMCommunicate request_size=4 [14:29:57]MH_SAM_APDU [14:29:57]CAPDU: 80 0D 03 02 [14:29:57]Write to MH i2c: E2 08 00 7D 04 80 0D 03 02 00 00 00 00 FC [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:57]Read from MH i2c: E2 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 0B 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 0B 00 7D 04 00 82 A3 42 CC 48 89 9A 9D 90 00 38 [14:29:57]RAPDU: 82 A3 42 CC 48 89 9A 9D 90 00 [14:29:57]wFMCommunicate OK [14:29:57]SAM_PROTO_SignData done [14:29:57]FM_MakeSignedData done [14:29:57]CreateOFDProtocolMessage [14:29:57]wFMCommunicate request_size=4 [14:29:57]MH_SAM_APDU [14:29:57]CAPDU: 80 11 00 00 [14:29:57]Write to MH i2c: E2 08 00 7E 04 80 11 00 00 00 00 00 00 FC [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:57]Read from MH i2c: E2 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 17 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 17 00 7E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4E [14:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:29:57]wFMCommunicate OK [14:29:57]CreateOFDProtocolMessage done [14:29:57]OFDSenderStorePacket 112548 [14:29:57]StoreOFDPacket docnum=112548 [14:29:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9E 3C 07 01 B0 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 64 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B7 01 00 35 04 06 00 50 D3 4A 2A 94 51 82 A3 42 CC 48 89 9A 9D [14:29:57]CheckFolder [14:29:57]dirname=/storage/ofd_packets [14:29:57]CheckFolder done [14:29:57]ProducePacketName [14:29:57]name=ofd_packets/00112548 [14:29:57]NVStorageSaveData ofd_packets/00112548 [14:29:57]File name is /storage/ofd_packets/00112548 [14:29:57]Write 301 bytes [14:29:57]NVStorageSaveData done [14:29:57]OFDSenderStorePacket done [14:29:57]KKMCreateOFDPacket done [14:29:57]NVStorageSaveData kkm_last_timestamp [14:29:57]File name is /storage/kkm_last_timestamp [14:29:57]Write 4 bytes [14:29:57]NVStorageSaveData done [14:29:57]ExternCall_PrintAddStr [14:29:57]wPrintStart [14:29:57]Write to MH i2c: 01 00 00 7F 04 83 [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: 01 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: 01 07 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 FF 0F 98 [14:29:57]RasterBufferAndPrint [14:29:57]line Счет N : (1)321232 [14:29:57]line ИНН: 02508201610067 [14:29:57]line Контрольно-Кассовый Чек [14:29:57]line ПРОДАЖА [14:29:57]line ТРК (МРК, ГНК) : 11 [14:29:57]line Товар: 2710124130 [14:29:57]line Аи-92-К-5 [14:29:57]line 9.040 * 66.40 [14:29:57]line = 600.26 [14:29:57]line НДС 12% НСП 1% [14:29:57]line > о реализуемом товаре [14:29:57]line ИТОГО: 600.26 [14:29:57]line НСП 1% : 5.31 [14:29:57]line НДС 12% : 63.74 [14:29:57]line Наличными: 0.00 [14:29:57]line Безнал.: 600.26 [14:29:57]line Место: АЗС № 65 "Партнер Нефть" [14:29:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:29:57]line СНО: Общий режим [14:29:57]line Чек 149 23.06.2024 14:29 [14:29:57]line Смена: 392 ФФД: 1.0 [14:29:57]line ЗНМ: 0300000198 [14:29:57]line РНМ: 0000000000092771 [14:29:57]line Версия ККМ: 001 [14:29:58]line Платежная система: О! деньги [14:29:58]line ФМ: 0000000000875083 [14:29:58]line ФД: 112548 [14:29:58]line ФПД: 88868412626001 [14:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T142956&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112548&fm=88868412626001&tin=02508201610067®Number=0000000000092771&sum=60026 [14:29:58]OFD Sender: Processing packet 112548 [packets to send 38, broken 37] [14:29:58]ProducePacketName [14:29:58]name=ofd_packets/00112548 [14:29:58]OFD Sender: To server: pG, [14:29:58]CommunicateWithHost lk.salyk.kg:30040 [14:29:58]ConnectInit lk.salyk.kg [14:29:58]written 0, free lines is 4095 [14:29:58]Connected sock=10 [14:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9E 3C 07 01 B0 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 64 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B7 01 00 35 04 06 00 50 D3 4A 2A 94 51 82 A3 42 CC 48 89 9A 9D [14:29:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9A C1 47 00 20 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B7 01 00 F4 03 04 00 4F C8 77 66 B6 04 01 00 00 7E FF 78 C9 44 B0 AE B9 [14:29:58]CommunicateWithHost err = 0 [14:29:58]CheckOFDResponse [14:29:58]1017 (14) - 77093643461234 [14:29:58]1041 (16) - 0000000000875083 [14:29:58]1040 (4) - 112548 [14:29:58]1012 (4) - 23.06.2024 07:01 [14:29:58]1206 (1) - 0 [14:29:58]OFD Sender: Remove packet 112548 [14:29:58]ProducePacketName [14:29:58]name=ofd_packets/00112548 [14:29:58]NVStorageDeleteData [14:29:58]Write to MH i2c: 01 00 00 A9 04 AD [14:29:58]Write i2c OK [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: 01 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: 01 07 00 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: 01 07 00 A9 04 00 00 00 00 00 F2 0C B2 [14:29:58]RasterBufferAndPrint [14:29:58]line [14:29:58]line [14:29:58]line [14:29:58]line [14:29:58]line [14:29:58]written 0, free lines is 3320 [14:29:58]MH_Cut [14:29:58]Write to MH i2c: D1 01 00 B0 04 01 86 [14:29:58]Write i2c OK [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: D1 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: D1 01 00 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: D1 01 00 B0 04 00 85 [14:29:58]Write to MH i2c: 01 00 00 B1 04 B5 [14:29:58]Write i2c OK [14:29:58]MH_I2C_Read... [14:29:58]OFD Sender: No OFD packet to send [14:29:59]*** Cut start [14:29:59]*** Partial cut [14:29:59]*** CUTSNS_PIN = 1 [14:29:59]*** CUTSNS_PIN = 0 [14:29:59]*** Brake cut motor [14:29:59]Read from MH i2c: 01 [14:29:59]MH_I2C_Read... [14:29:59]*** Stop cut motor [14:29:59]*** Cut end [14:29:59]Read from MH i2c: 01 07 00 [14:29:59]MH_I2C_Read... [14:29:59]Read from MH i2c: 01 07 00 B1 04 00 00 00 00 00 FF 0F CA [14:29:59]process_action close_receipt done [14:29:59]requested_data is exist [14:29:59]produce_requested_data [14:29:59]requested_item fm.sn is exist - process it [14:29:59]wFMCommunicate request_size=4 [14:29:59]MH_SAM_APDU [14:29:59]CAPDU: 80 11 00 00 [14:29:59]Write to MH i2c: E2 08 00 B2 04 80 11 00 00 00 00 00 00 30 [14:29:59]Write i2c OK [14:29:59]MH_I2C_Read... [14:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:59]Read from MH i2c: E2 [14:29:59]MH_I2C_Read... [14:29:59]Read from MH i2c: E2 17 00 [14:29:59]MH_I2C_Read... [14:29:59]Read from MH i2c: E2 17 00 B2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 82 [14:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:29:59]wFMCommunicate OK [14:29:59]requested_item fd.num is exist - process it [14:29:59]SAM_PROTO_GetFieldsCounters [14:29:59]wFMCommunicate request_size=4 [14:29:59]MH_SAM_APDU [14:29:59]CAPDU: 80 13 00 00 [14:29:59]Write to MH i2c: E2 08 00 B3 04 80 13 00 00 00 00 00 00 33 [14:30:00]Write i2c OK [14:30:00]MH_I2C_Read... [14:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:00]Read from MH i2c: E2 [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: E2 62 00 [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: E2 62 00 B3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B7 01 00 0E 04 04 00 88 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 F8 [14:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B7 01 00 0E 04 04 00 88 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 [14:30:00]wFMCommunicate OK [14:30:00]SAM_PROTO_GetFieldsCounters done [14:30:00]requested_item shift.num is exist - process it [14:30:00]requested_item shift.opened is exist - process it [14:30:00]req_shift_opened [14:30:00]FM_GetShiftState [14:30:00]SAM_PROTO_GetShiftState [14:30:00]wFMCommunicate request_size=4 [14:30:00]MH_SAM_APDU [14:30:00]CAPDU: 80 13 01 00 [14:30:00]Write to MH i2c: E2 08 00 B4 04 80 13 01 00 00 00 00 00 35 [14:30:00]Write i2c OK [14:30:00]MH_I2C_Read... [14:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:00]Read from MH i2c: E2 [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: E2 0E 00 [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: E2 0E 00 B4 04 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 53 [14:30:00]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:30:00]wFMCommunicate OK [14:30:00]SAM_PROTO_GetShiftState done [14:30:00]FM_GetShiftState done [14:30:00]req_shift_opened done [14:30:00]requested_item shift.open_date is exist - process it [14:30:00]req_shift_open_date [14:30:00]req_shift_open_date done [14:30:00]produce_requested_data done [14:30:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112548,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:30:00]process_action_free close_receipt [14:30:00]json_value_free [14:30:00]json_value_free done [14:30:00]process_json_proto returns [14:30:00]Send response to host [14:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112548,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:30:00]free response buf [14:30:00]execute_script done [14:30:00]execute_script returns [14:30:00]free content buf [14:30:00]Sock 9.Close socket [14:30:00]Sock 9.Thread stoped [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:26]accept exits with 8 [14:31:26]New connection [14:31:26]New thread 3066817892 created [14:31:26]Thread 3066674532 joined [14:31:26]Waiting for new connection... [14:31:26] Sock 8.Parse request [14:31:26]Sock 8.Check first char [14:31:26]Sock 8.First char is OK [14:31:26]request: POST /json_proto HTTP/1.0 [14:31:26]Method: POST [14:31:26]URL: /json_proto [14:31:26]Method is POST - this is cgi request [14:31:26]url: /json_proto [14:31:26]query_string will be loaded in cgi processing [14:31:26]execute_cgi json_proto POST (null) [14:31:26]execute_cgi path=json_proto method=POST [14:31:26]POST find Content-Length [14:31:26]Host: 172.17.59.68:8080 [14:31:26]Content-Length: 682 [14:31:26]Content-Type: application/json [14:31:26] [14:31:26]POST finish read [14:31:26]Found Content-Length = 682 [14:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.11, "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" ] } } [14:31:26]execute_script... [14:31: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)321233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.11, "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" ] } } [14:31:26]POST & json_proto [14:31:26]process_json_proto [14:31:26]json parsed OK: [14:31:26]protocol is kg_v1.0 [14:31:26]action value=close_receipt [14:31:26]process_action close_receipt [14:31:26]cmd_close_receipt [14:31:26]MH_GetDate [14:31:26]Write to MH i2c: F0 00 00 B5 04 A8 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 09 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 09 00 B5 04 00 BE 31 78 66 BC EC 60 65 EB [14:31:26]GetLastDocTimeStamp 1719152996 [14:31:26]current date 1719153086 [14:31:26]FM_GetShiftState [14:31:26]SAM_PROTO_GetShiftState [14:31:26]wFMCommunicate request_size=4 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 13 01 00 [14:31:26]Write to MH i2c: E2 08 00 B6 04 80 13 01 00 00 00 00 00 37 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0E 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0E 00 B6 04 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 55 [14:31:26]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:31:26]wFMCommunicate OK [14:31:26]SAM_PROTO_GetShiftState done [14:31:26]FM_GetShiftState done [14:31:26]opened in 1719106490 [14:31:26]opened+sec_in_day 1719192890 [14:31:26]quantity*price = 130011 [14:31:26]sum+1 = 130012 [14:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 150 23.06.2024 14:31 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112549 ФПД: 89850046370800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143126&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112549&fm=89850046370800&tin=02508201610067®Number=0000000000092771&sum=130000 [14:31:27]StoreToDocumentArchive [14:31:27]shift 392 fd 112549 [14:31:27]save to /storage/0392/doc_00112549 [14:31:27]save last doc name /storage/0392/doc_00112549 to /storage/kkm_last_doc_name [14:31:27]save OK [14:31:27]Clear old archive folders... [14:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:27]tlvbuf is 01B59D50 [14:31:27]SAM_PROTO_ClearQueue [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 09 00 00 [14:31:27]Write to MH i2c: E2 08 00 C3 04 80 09 00 00 00 00 00 00 39 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [14:31:27]RAPDU: 90 00 [14:31:27]wFMCommunicate OK [14:31:27]SAM_PROTO_ClearQueue done [14:31:27]KKMCreateOFDPacket [14:31:27]OFDProtocolAddRootSTLVToBuf [14:31:27]FM_MakeSignedData [14:31:27]FM_MakeSignedData [14:31:27]SAM_PROTO_SignData [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 0D 01 02 [14:31:27]Write to MH i2c: E2 08 00 C4 04 80 0D 01 02 00 00 00 00 41 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [14:31:27]RAPDU: 90 00 [14:31:27]wFMCommunicate OK [14:31:27]wFMCommunicate request_size=255 [14:31:27]MH_SAM_APDU [14: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 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 96 00 00 00 F4 03 04 00 BE 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B7 01 00 35 04 06 00 51 [14:31:27]Write to MH i2c: E2 02 01 C5 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 96 00 00 00 F4 03 04 00 BE 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B7 01 00 35 04 06 00 51 00 00 CA [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [14:31:27]RAPDU: 90 00 [14:31:27]wFMCommunicate OK [14:31:27]wFMCommunicate request_size=10 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 0D 02 02 05 B7 D8 18 D3 F0 [14:31:27]Write to MH i2c: E2 0D 00 C6 04 80 0D 02 02 05 00 B7 D8 18 D3 F0 00 00 B8 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [14:31:27]RAPDU: 90 00 [14:31:27]wFMCommunicate OK [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 0D 03 02 [14:31:27]Write to MH i2c: E2 08 00 C7 04 80 0D 03 02 00 00 00 00 46 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 0B 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 0B 00 C7 04 00 3F 9B 44 4A 18 12 53 C5 90 00 F1 [14:31:27]RAPDU: 3F 9B 44 4A 18 12 53 C5 90 00 [14:31:27]wFMCommunicate OK [14:31:27]SAM_PROTO_SignData done [14:31:27]FM_MakeSignedData done [14:31:27]CreateOFDProtocolMessage [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 11 00 00 [14:31:27]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 17 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 98 [14:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:31:27]wFMCommunicate OK [14:31:27]CreateOFDProtocolMessage done [14:31:27]OFDSenderStorePacket 112549 [14:31:27]StoreOFDPacket docnum=112549 [14:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 2F 07 01 BC 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 96 00 00 00 F4 03 04 00 BE 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B7 01 00 35 04 06 00 51 B7 D8 18 D3 F0 3F 9B 44 4A 18 12 53 C5 [14:31:27]CheckFolder [14:31:27]dirname=/storage/ofd_packets [14:31:27]CheckFolder done [14:31:27]ProducePacketName [14:31:27]name=ofd_packets/00112549 [14:31:27]NVStorageSaveData ofd_packets/00112549 [14:31:27]File name is /storage/ofd_packets/00112549 [14:31:27]Write 301 bytes [14:31:27]NVStorageSaveData done [14:31:27]OFDSenderStorePacket done [14:31:27]KKMCreateOFDPacket done [14:31:27]NVStorageSaveData kkm_last_timestamp [14:31:27]File name is /storage/kkm_last_timestamp [14:31:27]Write 4 bytes [14:31:27]NVStorageSaveData done [14:31:27]ExternCall_PrintAddStr [14:31:27]wPrintStart [14:31:27]Write to MH i2c: 01 00 00 C9 04 CD [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 C9 04 00 00 00 00 00 FF 0F E2 [14:31:27]RasterBufferAndPrint [14:31:27]line Счет N : (1)321233 [14:31:27]line ИНН: 02508201610067 [14:31:27]line Контрольно-Кассовый Чек [14:31:27]line ПРОДАЖА [14:31:27]line ТРК (МРК, ГНК) : 11 [14:31:27]line Товар: 2710124130 [14:31:27]line Аи-92-К-5 [14:31:27]line 19.580 * 66.40 [14:31:27]line = 1300.11 [14:31:27]line НДС 12% НСП 1% [14:31:27]line > о реализуемом товаре [14:31:27]line ОКРУГЛЕНИЕ: -0.11 [14:31:27]line ИТОГО: 1300.00 [14:31:27]line Внесено: 1300.00 [14:31:27]line СДАЧА: 0.00 [14:31:27]line НСП 1% : 11.50 [14:31:27]line НДС 12% : 138.06 [14:31:27]line Наличными: 1300.00 [14:31:27]line Безнал.: 0.00 [14:31:27]line Место: АЗС № 65 "Партнер Нефть" [14:31:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:31:27]line СНО: Общий режим [14:31:27]line Чек 150 23.06.2024 14:31 [14:31:27]line Смена: 392 ФФД: 1.0 [14:31:27]line ЗНМ: 0300000198 [14:31:27]line РНМ: 0000000000092771 [14:31:27]line Версия ККМ: 001 [14:31:27]line ФМ: 0000000000875083 [14:31:27]line ФД: 112549 [14:31:27]line ФПД: 89850046370800 [14:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143126&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112549&fm=89850046370800&tin=02508201610067®Number=0000000000092771&sum=130000 [14:31:28]OFD Sender: Processing packet 112549 [packets to send 38, broken 37] [14:31:28]ProducePacketName [14:31:28]name=ofd_packets/00112549 [14:31:28]OFD Sender: To server: pG, [14:31:28]CommunicateWithHost lk.salyk.kg:30040 [14:31:28]ConnectInit lk.salyk.kg [14:31:28]written 0, free lines is 4095 [14:31:28]Connected sock=10 [14:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 2F 07 01 BC 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 96 00 00 00 F4 03 04 00 BE 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B7 01 00 35 04 06 00 51 B7 D8 18 D3 F0 3F 9B 44 4A 18 12 53 C5 [14:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D 64 47 00 EB 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B7 01 00 F4 03 04 00 A9 C8 77 66 B6 04 01 00 00 5B 7B BC AD 92 95 16 C9 [14:31:28]CommunicateWithHost err = 0 [14:31:28]CheckOFDResponse [14:31:28]1017 (14) - 77093643461234 [14:31:28]1041 (16) - 0000000000875083 [14:31:28]1040 (4) - 112549 [14:31:28]1012 (4) - 23.06.2024 07:03 [14:31:28]1206 (1) - 0 [14:31:28]OFD Sender: Remove packet 112549 [14:31:28]ProducePacketName [14:31:28]name=ofd_packets/00112549 [14:31:28]NVStorageDeleteData [14:31:28]Write to MH i2c: 01 00 00 F4 04 F8 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 07 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 07 00 F4 04 00 00 00 00 00 DA 0C E5 [14:31:28]RasterBufferAndPrint [14:31:28]line [14:31:28]line [14:31:28]line [14:31:28]line [14:31:28]line [14:31:28]written 0, free lines is 3297 [14:31:28]MH_Cut [14:31:28]Write to MH i2c: D1 01 00 FB 04 01 D1 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: D1 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: D1 01 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: D1 01 00 FB 04 00 D0 [14:31:28]Write to MH i2c: 01 00 00 FC 04 00 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:29]OFD Sender: No OFD packet to send [14:31:29]*** Cut start [14:31:29]*** Partial cut [14:31:29]*** CUTSNS_PIN = 1 [14:31:29]*** CUTSNS_PIN = 0 [14:31:29]*** Brake cut motor [14:31:30]Read from MH i2c: 01 [14:31:30]MH_I2C_Read... [14:31:30]*** Stop cut motor [14:31:30]*** Cut end [14:31:30]Read from MH i2c: 01 07 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 FC 04 00 00 00 00 00 FF 0F 15 [14:31:30]process_action close_receipt done [14:31:30]requested_data is exist [14:31:30]produce_requested_data [14:31:30]requested_item fm.sn is exist - process it [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 11 00 00 [14:31:30]Write to MH i2c: E2 08 00 FD 04 80 11 00 00 00 00 00 00 7B [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 FD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CD [14:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:31:30]wFMCommunicate OK [14:31:30]requested_item fd.num is exist - process it [14:31:30]SAM_PROTO_GetFieldsCounters [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 13 00 00 [14:31:30]Write to MH i2c: E2 08 00 FE 04 80 13 00 00 00 00 00 00 7E [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 62 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 62 00 FE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B7 01 00 0E 04 04 00 88 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 47 [14:31:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B7 01 00 0E 04 04 00 88 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 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_GetFieldsCounters done [14:31:30]requested_item shift.num is exist - process it [14:31:30]requested_item shift.opened is exist - process it [14:31:30]req_shift_opened [14:31:30]FM_GetShiftState [14:31:30]SAM_PROTO_GetShiftState [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 13 01 00 [14:31:30]Write to MH i2c: E2 08 00 FF 04 80 13 01 00 00 00 00 00 80 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0E 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0E 00 FF 04 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 9E [14:31:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_GetShiftState done [14:31:30]FM_GetShiftState done [14:31:30]req_shift_opened done [14:31:30]requested_item shift.open_date is exist - process it [14:31:30]req_shift_open_date [14:31:30]req_shift_open_date done [14:31:30]produce_requested_data done [14:31:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112549,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:31:30]process_action_free close_receipt [14:31:30]json_value_free [14:31:30]json_value_free done [14:31:30]process_json_proto returns [14:31:30]Send response to host [14:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112549,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:31:30]free response buf [14:31:30]execute_script done [14:31:30]execute_script returns [14:31:30]free content buf [14:31:30]Sock 8.Close socket [14:31:30]Sock 8.Thread stoped [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:58]accept exits with 9 [14:31:58]New connection [14:31:58]New thread 3066674532 created [14:31:58]Thread 3066817892 joined [14:31:58]Waiting for new connection... [14:31:58] Sock 9.Parse request [14:31:58]Sock 9.Check first char [14:31:58]Sock 9.First char is OK [14:31:58]request: POST /json_proto HTTP/1.0 [14:31:58]Method: POST [14:31:58]URL: /json_proto [14:31:58]Method is POST - this is cgi request [14:31:58]url: /json_proto [14:31:58]query_string will be loaded in cgi processing [14:31:58]execute_cgi json_proto POST (null) [14:31:58]execute_cgi path=json_proto method=POST [14:31:58]POST find Content-Length [14:31:58]Host: 172.17.59.68:8080 [14:31:58]Content-Length: 677 [14:31:58]Content-Type: application/json [14:31:58] [14:31:58]POST finish read [14:31:58]Found Content-Length = 677 [14:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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:31:58]execute_script... [14:31:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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:31:58]POST & json_proto [14:31:58]process_json_proto [14:31:58]json parsed OK: [14:31:58]protocol is kg_v1.0 [14:31:58]action value=close_receipt [14:31:58]process_action close_receipt [14:31:58]cmd_close_receipt [14:31:58]MH_GetDate [14:31:58]Write to MH i2c: F0 00 00 00 05 F4 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: F0 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: F0 09 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: F0 09 00 00 05 00 DF 31 78 66 BC EC 60 65 58 [14:31:58]GetLastDocTimeStamp 1719153086 [14:31:58]current date 1719153119 [14:31:58]FM_GetShiftState [14:31:58]SAM_PROTO_GetShiftState [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 13 01 00 [14:31:58]Write to MH i2c: E2 08 00 01 05 80 13 01 00 00 00 00 00 83 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0E 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0E 00 01 05 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A1 [14:31:58]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_GetShiftState done [14:31:58]FM_GetShiftState done [14:31:58]opened in 1719106490 [14:31:58]opened+sec_in_day 1719192890 [14:31:58]quantity*price = 50030 [14:31:58]sum+1 = 50031 [14:31:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 151 23.06.2024 14:31 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112550 ФПД: 209437425292274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143159&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112550&fm=209437425292274&tin=02508201610067®Number=0000000000092771&sum=50000 [14:31:59]StoreToDocumentArchive [14:31:59]shift 392 fd 112550 [14:31:59]save to /storage/0392/doc_00112550 [14:31:59]save last doc name /storage/0392/doc_00112550 to /storage/kkm_last_doc_name [14:31:59]save OK [14:31:59]Clear old archive folders... [14:31:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:59]tlvbuf is 01BB0050 [14:31:59]SAM_PROTO_ClearQueue [14:31:59]wFMCommunicate request_size=4 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 09 00 00 [14:31:59]Write to MH i2c: E2 08 00 0E 05 80 09 00 00 00 00 00 00 85 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 03 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [14:31:59]RAPDU: 90 00 [14:31:59]wFMCommunicate OK [14:31:59]SAM_PROTO_ClearQueue done [14:31:59]KKMCreateOFDPacket [14:31:59]OFDProtocolAddRootSTLVToBuf [14:31:59]FM_MakeSignedData [14:31:59]FM_MakeSignedData [14:31:59]SAM_PROTO_SignData [14:31:59]wFMCommunicate request_size=4 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 0D 01 02 [14:31:59]Write to MH i2c: E2 08 00 0F 05 80 0D 01 02 00 00 00 00 8D [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 03 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [14:31:59]RAPDU: 90 00 [14:31:59]wFMCommunicate OK [14:31:59]wFMCommunicate request_size=255 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 97 00 00 00 F4 03 04 00 DF 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B7 01 00 35 04 06 00 BE [14:31:59]Write to MH i2c: E2 02 01 10 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 97 00 00 00 F4 03 04 00 DF 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B7 01 00 35 04 06 00 BE 00 00 33 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:00]Read from MH i2c: E2 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 03 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [14:32:00]RAPDU: 90 00 [14:32:00]wFMCommunicate OK [14:32:00]wFMCommunicate request_size=10 [14:32:00]MH_SAM_APDU [14:32:00]CAPDU: 80 0D 02 02 05 7B 73 56 53 F2 [14:32:00]Write to MH i2c: E2 0D 00 11 05 80 0D 02 02 05 00 7B 73 56 53 F2 00 00 23 [14:32:00]Write i2c OK [14:32:00]MH_I2C_Read... [14:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:00]Read from MH i2c: E2 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 03 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [14:32:00]RAPDU: 90 00 [14:32:00]wFMCommunicate OK [14:32:00]wFMCommunicate request_size=4 [14:32:00]MH_SAM_APDU [14:32:00]CAPDU: 80 0D 03 02 [14:32:00]Write to MH i2c: E2 08 00 12 05 80 0D 03 02 00 00 00 00 92 [14:32:00]Write i2c OK [14:32:00]MH_I2C_Read... [14:32:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:00]Read from MH i2c: E2 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 0B 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 0B 00 12 05 00 CD A0 DE 97 98 1F 7A E6 90 00 8C [14:32:00]RAPDU: CD A0 DE 97 98 1F 7A E6 90 00 [14:32:00]wFMCommunicate OK [14:32:00]SAM_PROTO_SignData done [14:32:00]FM_MakeSignedData done [14:32:00]CreateOFDProtocolMessage [14:32:00]wFMCommunicate request_size=4 [14:32:00]MH_SAM_APDU [14:32:00]CAPDU: 80 11 00 00 [14:32:00]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [14:32:00]Write i2c OK [14:32:00]MH_I2C_Read... [14:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:00]Read from MH i2c: E2 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 17 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [14:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:32:00]wFMCommunicate OK [14:32:00]CreateOFDProtocolMessage done [14:32:00]OFDSenderStorePacket 112550 [14:32:00]StoreOFDPacket docnum=112550 [14:32:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 74 5E 07 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 97 00 00 00 F4 03 04 00 DF 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B7 01 00 35 04 06 00 BE 7B 73 56 53 F2 CD A0 DE 97 98 1F 7A E6 [14:32:00]CheckFolder [14:32:00]dirname=/storage/ofd_packets [14:32:00]CheckFolder done [14:32:00]ProducePacketName [14:32:00]name=ofd_packets/00112550 [14:32:00]NVStorageSaveData ofd_packets/00112550 [14:32:00]File name is /storage/ofd_packets/00112550 [14:32:00]Write 301 bytes [14:32:00]NVStorageSaveData done [14:32:00]OFDSenderStorePacket done [14:32:00]KKMCreateOFDPacket done [14:32:00]NVStorageSaveData kkm_last_timestamp [14:32:00]File name is /storage/kkm_last_timestamp [14:32:00]Write 4 bytes [14:32:00]NVStorageSaveData done [14:32:00]ExternCall_PrintAddStr [14:32:00]wPrintStart [14:32:00]Write to MH i2c: 01 00 00 14 05 19 [14:32:00]Write i2c OK [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: 01 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: 01 07 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: 01 07 00 14 05 00 00 00 00 00 FF 0F 2E [14:32:00]RasterBufferAndPrint [14:32:00]line Счет N : (1)321234 [14:32:00]line ИНН: 02508201610067 [14:32:00]line Контрольно-Кассовый Чек [14:32:00]line ПРОДАЖА [14:32:00]line ТРК (МРК, ГНК) : 12 [14:32:00]line Товар: 2710124500 [14:32:00]line Аи-95-К-5 [14:32:00]line 6.770 * 73.90 [14:32:00]line = 500.30 [14:32:00]line НДС 12% НСП 1% [14:32:00]line > о реализуемом товаре [14:32:00]line ОКРУГЛЕНИЕ: -0.30 [14:32:00]line ИТОГО: 500.00 [14:32:00]line Внесено: 500.00 [14:32:00]line СДАЧА: 0.00 [14:32:00]line НСП 1% : 4.43 [14:32:00]line НДС 12% : 53.13 [14:32:00]line Наличными: 500.00 [14:32:00]line Безнал.: 0.00 [14:32:00]line Место: АЗС № 65 "Партнер Нефть" [14:32:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:32:00]line СНО: Общий режим [14:32:00]line Чек 151 23.06.2024 14:31 [14:32:00]line Смена: 392 ФФД: 1.0 [14:32:00]line ЗНМ: 0300000198 [14:32:00]line РНМ: 0000000000092771 [14:32:00]line Версия ККМ: 001 [14:32:00]line ФМ: 0000000000875083 [14:32:00]line ФД: 112550 [14:32:00]line ФПД: 209437425292274 [14:32:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143159&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112550&fm=209437425292274&tin=02508201610067®Number=0000000000092771&sum=50000 [14:32:00]OFD Sender: Processing packet 112550 [packets to send 38, broken 37] [14:32:00]ProducePacketName [14:32:00]name=ofd_packets/00112550 [14:32:00]OFD Sender: To server: pG, [14:32:00]CommunicateWithHost lk.salyk.kg:30040 [14:32:00]ConnectInit lk.salyk.kg [14:32:00]written 0, free lines is 4095 [14:32:00]Connected sock=10 [14:32:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 74 5E 07 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 97 00 00 00 F4 03 04 00 DF 31 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B7 01 00 35 04 06 00 BE 7B 73 56 53 F2 CD A0 DE 97 98 1F 7A E6 [14:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D6 2B 47 00 8D BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B7 01 00 F4 03 04 00 CA C8 77 66 B6 04 01 00 00 AD FD 2C 2E FD B3 38 77 [14:32:00]CommunicateWithHost err = 0 [14:32:00]CheckOFDResponse [14:32:00]1017 (14) - 77093643461234 [14:32:00]1041 (16) - 0000000000875083 [14:32:00]1040 (4) - 112550 [14:32:00]1012 (4) - 23.06.2024 07:03 [14:32:00]1206 (1) - 0 [14:32:00]OFD Sender: Remove packet 112550 [14:32:00]ProducePacketName [14:32:00]name=ofd_packets/00112550 [14:32:00]NVStorageDeleteData [14:32:01]Write to MH i2c: 01 00 00 3F 05 44 [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: 01 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: 01 07 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: 01 07 00 3F 05 00 00 00 00 00 E4 0C 3B [14:32:01]RasterBufferAndPrint [14:32:01]line [14:32:01]line [14:32:01]line [14:32:01]line [14:32:01]line [14:32:01]written 0, free lines is 3306 [14:32:01]MH_Cut [14:32:01]Write to MH i2c: D1 01 00 46 05 01 1D [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: D1 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: D1 01 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: D1 01 00 46 05 00 1C [14:32:01]Write to MH i2c: 01 00 00 47 05 4C [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]OFD Sender: No OFD packet to send [14:32:01]*** Cut start [14:32:01]*** Partial cut [14:32:01]*** CUTSNS_PIN = 1 [14:32:01]*** CUTSNS_PIN = 0 [14:32:02]*** Brake cut motor [14:32:02]Read from MH i2c: 01 [14:32:02]MH_I2C_Read... [14:32:02]*** Stop cut motor [14:32:02]*** Cut end [14:32:02]Read from MH i2c: 01 07 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: 01 07 00 47 05 00 00 00 00 00 FF 0F 61 [14:32:02]process_action close_receipt done [14:32:02]requested_data is exist [14:32:02]produce_requested_data [14:32:02]requested_item fm.sn is exist - process it [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 11 00 00 [14:32:02]Write to MH i2c: E2 08 00 48 05 80 11 00 00 00 00 00 00 C7 [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 17 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 17 00 48 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 19 [14:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:32:02]wFMCommunicate OK [14:32:02]requested_item fd.num is exist - process it [14:32:02]SAM_PROTO_GetFieldsCounters [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 13 00 00 [14:32:02]Write to MH i2c: E2 08 00 49 05 80 13 00 00 00 00 00 00 CA [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 62 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 62 00 49 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B7 01 00 0E 04 04 00 88 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 97 [14:32:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B7 01 00 0E 04 04 00 88 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 [14:32:02]wFMCommunicate OK [14:32:02]SAM_PROTO_GetFieldsCounters done [14:32:02]requested_item shift.num is exist - process it [14:32:02]requested_item shift.opened is exist - process it [14:32:02]req_shift_opened [14:32:02]FM_GetShiftState [14:32:02]SAM_PROTO_GetShiftState [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 13 01 00 [14:32:02]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:02]Read from MH i2c: E2 0E 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EA [14:32:02]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:32:02]wFMCommunicate OK [14:32:02]SAM_PROTO_GetShiftState done [14:32:02]FM_GetShiftState done [14:32:02]req_shift_opened done [14:32:02]requested_item shift.open_date is exist - process it [14:32:02]req_shift_open_date [14:32:02]req_shift_open_date done [14:32:02]produce_requested_data done [14:32:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112550,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:32:02]process_action_free close_receipt [14:32:02]json_value_free [14:32:02]json_value_free done [14:32:02]process_json_proto returns [14:32:02]Send response to host [14:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112550,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:32:02]free response buf [14:32:02]execute_script done [14:32:02]execute_script returns [14:32:02]free content buf [14:32:02]Sock 9.Close socket [14:32:02]Sock 9.Thread stoped [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:07]accept exits with 8 [14:33:07]New connection [14:33:07]New thread 3066817892 created [14:33:07]Thread 3066674532 joined [14:33:07]Waiting for new connection... [14:33:07] Sock 8.Parse request [14:33:07]Sock 8.Check first char [14:33:07]Sock 8.First char is OK [14:33:07]request: POST /json_proto HTTP/1.0 [14:33:07]Method: POST [14:33:07]URL: /json_proto [14:33:07]Method is POST - this is cgi request [14:33:07]url: /json_proto [14:33:07]query_string will be loaded in cgi processing [14:33:07]execute_cgi json_proto POST (null) [14:33:07]execute_cgi path=json_proto method=POST [14:33:07]POST find Content-Length [14:33:07]Host: 172.17.59.68:8080 [14:33:07]Content-Length: 808 [14:33:07]Content-Type: application/json [14:33:07] [14:33:07]POST finish read [14:33:07]Found Content-Length = 808 [14:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:07]execute_script... [14:33: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)321231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:07]POST & json_proto [14:33:07]process_json_proto [14:33:07]json parsed OK: [14:33:07]protocol is kg_v1.0 [14:33:07]action value=close_receipt [14:33:07]process_action close_receipt [14:33:07]cmd_close_receipt [14:33:07]MH_GetDate [14:33:07]Write to MH i2c: F0 00 00 4B 05 3F [14:33:07]Write i2c OK [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: F0 [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: F0 09 00 [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: F0 09 00 4B 05 00 23 32 78 66 BC EC 60 65 E8 [14:33:07]GetLastDocTimeStamp 1719153119 [14:33:07]current date 1719153187 [14:33:07]FM_GetShiftState [14:33:07]SAM_PROTO_GetShiftState [14:33:07]wFMCommunicate request_size=4 [14:33:07]MH_SAM_APDU [14:33:07]CAPDU: 80 13 01 00 [14:33:07]Write to MH i2c: E2 08 00 4C 05 80 13 01 00 00 00 00 00 CE [14:33:07]Write i2c OK [14:33:07]MH_I2C_Read... [14:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:07]Read from MH i2c: E2 [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: E2 0E 00 [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: E2 0E 00 4C 05 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EC [14:33:07]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:33:07]wFMCommunicate OK [14:33:07]SAM_PROTO_GetShiftState done [14:33:07]FM_GetShiftState done [14:33:07]opened in 1719106490 [14:33:07]opened+sec_in_day 1719192890 [14:33:07]quantity*price = 1000042 [14:33:07]sum+1 = 1000043 [14:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.42 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 0.00 Безнал.: 10000.42 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 152 23.06.2024 14:33 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112551 ФПД: 27429153363124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143307&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112551&fm=27429153363124&tin=02508201610067®Number=0000000000092771&sum=1000042 [14:33:08]StoreToDocumentArchive [14:33:08]shift 392 fd 112551 [14:33:08]save to /storage/0392/doc_00112551 [14:33:08]save last doc name /storage/0392/doc_00112551 to /storage/kkm_last_doc_name [14:33:08]save OK [14:33:08]Clear old archive folders... [14:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:08]tlvbuf is 01BAEAE0 [14:33:08]SAM_PROTO_ClearQueue [14:33:08]wFMCommunicate request_size=4 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 09 00 00 [14:33:08]Write to MH i2c: E2 08 00 59 05 80 09 00 00 00 00 00 00 D0 [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 03 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [14:33:08]RAPDU: 90 00 [14:33:08]wFMCommunicate OK [14:33:08]SAM_PROTO_ClearQueue done [14:33:08]KKMCreateOFDPacket [14:33:08]OFDProtocolAddRootSTLVToBuf [14:33:08]FM_MakeSignedData [14:33:08]FM_MakeSignedData [14:33:08]SAM_PROTO_SignData [14:33:08]wFMCommunicate request_size=4 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 0D 01 02 [14:33:08]Write to MH i2c: E2 08 00 5A 05 80 0D 01 02 00 00 00 00 D8 [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 03 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [14:33:08]RAPDU: 90 00 [14:33:08]wFMCommunicate OK [14:33:08]wFMCommunicate request_size=255 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 23 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B7 01 00 35 04 06 00 18 F2 58 F1 [14:33:08]Write to MH i2c: E2 02 01 5B 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 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 23 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B7 01 00 35 04 06 00 18 F2 58 F1 00 00 21 [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 03 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [14:33:08]RAPDU: 90 00 [14:33:08]wFMCommunicate OK [14:33:08]wFMCommunicate request_size=7 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 0D 02 02 02 54 B4 [14:33:08]Write to MH i2c: E2 0A 00 5C 05 80 0D 02 02 02 00 54 B4 00 00 E7 [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 03 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [14:33:08]RAPDU: 90 00 [14:33:08]wFMCommunicate OK [14:33:08]wFMCommunicate request_size=4 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 0D 03 02 [14:33:08]Write to MH i2c: E2 08 00 5D 05 80 0D 03 02 00 00 00 00 DD [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 0B 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 0B 00 5D 05 00 5C 33 2B 27 83 80 FB F2 90 00 AF [14:33:08]RAPDU: 5C 33 2B 27 83 80 FB F2 90 00 [14:33:08]wFMCommunicate OK [14:33:08]SAM_PROTO_SignData done [14:33:08]FM_MakeSignedData done [14:33:08]CreateOFDProtocolMessage [14:33:08]wFMCommunicate request_size=4 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 11 00 00 [14:33:08]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 17 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 17 00 5E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [14:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:33:08]wFMCommunicate OK [14:33:08]CreateOFDProtocolMessage done [14:33:08]OFDSenderStorePacket 112551 [14:33:08]StoreOFDPacket docnum=112551 [14:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9B EE 04 01 3C 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 23 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B7 01 00 35 04 06 00 18 F2 58 F1 54 B4 5C 33 2B 27 83 80 FB F2 [14:33:08]CheckFolder [14:33:08]dirname=/storage/ofd_packets [14:33:08]CheckFolder done [14:33:08]ProducePacketName [14:33:08]name=ofd_packets/00112551 [14:33:08]NVStorageSaveData ofd_packets/00112551 [14:33:08]File name is /storage/ofd_packets/00112551 [14:33:08]Write 298 bytes [14:33:08]NVStorageSaveData done [14:33:08]OFDSenderStorePacket done [14:33:08]KKMCreateOFDPacket done [14:33:08]NVStorageSaveData kkm_last_timestamp [14:33:08]File name is /storage/kkm_last_timestamp [14:33:08]Write 4 bytes [14:33:08]NVStorageSaveData done [14:33:08]ExternCall_PrintAddStr [14:33:08]wPrintStart [14:33:08]Write to MH i2c: 01 00 00 5F 05 64 [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: 01 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: 01 07 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 FF 0F 79 [14:33:08]RasterBufferAndPrint [14:33:08]line Счет N : (1)321231 [14:33:08]line ИНН: 02508201610067 [14:33:08]line Контрольно-Кассовый Чек [14:33:08]line ПРОДАЖА [14:33:08]line ТРК (МРК, ГНК) : 22 [14:33:08]line Товар: 2710194210 [14:33:08]line ДТ-К-5 [14:33:08]line 137.180 * 72.90 [14:33:08]line = 10000.42 [14:33:08]line НДС 12% НСП 1% [14:33:08]line > о реализуемом товаре [14:33:08]line ИТОГО: 10000.42 [14:33:08]line НСП 1% : 88.50 [14:33:08]line НДС 12% : 1061.99 [14:33:08]line Наличными: 0.00 [14:33:08]line Безнал.: 10000.42 [14:33:08]line Место: АЗС № 65 "Партнер Нефть" [14:33:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:33:08]line СНО: Общий режим [14:33:08]line Чек 152 23.06.2024 14:33 [14:33:08]line Смена: 392 ФФД: 1.0 [14:33:08]line ЗНМ: 0300000198 [14:33:08]line РНМ: 0000000000092771 [14:33:08]line Версия ККМ: 001 [14:33:08]line Платежная система: О! деньги [14:33:08]line ФМ: 0000000000875083 [14:33:08]line ФД: 112551 [14:33:08]line ФПД: 27429153363124 [14:33:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143307&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112551&fm=27429153363124&tin=02508201610067®Number=0000000000092771&sum=1000042 [14:33:09]OFD Sender: Processing packet 112551 [packets to send 38, broken 37] [14:33:09]ProducePacketName [14:33:09]name=ofd_packets/00112551 [14:33:09]OFD Sender: To server: pG, [14:33:09]CommunicateWithHost lk.salyk.kg:30040 [14:33:09]ConnectInit lk.salyk.kg [14:33:09]written 0, free lines is 4095 [14:33:09]Connected sock=10 [14:33:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9B EE 04 01 3C 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 23 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B7 01 00 35 04 06 00 18 F2 58 F1 54 B4 5C 33 2B 27 83 80 FB F2 [14:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5F 29 47 00 7E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B7 01 00 F4 03 04 00 0E C9 77 66 B6 04 01 00 00 A8 A9 F6 FD 4A 1D F2 00 [14:33:09]CommunicateWithHost err = 0 [14:33:09]CheckOFDResponse [14:33:09]1017 (14) - 77093643461234 [14:33:09]1041 (16) - 0000000000875083 [14:33:09]1040 (4) - 112551 [14:33:09]1012 (4) - 23.06.2024 07:04 [14:33:09]1206 (1) - 0 [14:33:09]OFD Sender: Remove packet 112551 [14:33:09]ProducePacketName [14:33:09]name=ofd_packets/00112551 [14:33:09]NVStorageDeleteData [14:33:09]Write to MH i2c: 01 00 00 89 05 8E [14:33:09]Write i2c OK [14:33:09]MH_I2C_Read... [14:33:09]Read from MH i2c: 01 [14:33:09]MH_I2C_Read... [14:33:09]Read from MH i2c: 01 07 00 [14:33:09]MH_I2C_Read... [14:33:09]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 F5 0C 96 [14:33:09]RasterBufferAndPrint [14:33:09]line [14:33:09]line [14:33:09]line [14:33:09]line [14:33:09]line [14:33:09]written 0, free lines is 3322 [14:33:09]MH_Cut [14:33:09]Write to MH i2c: D1 01 00 90 05 01 67 [14:33:09]Write i2c OK [14:33:09]MH_I2C_Read... [14:33:09]Read from MH i2c: D1 [14:33:09]MH_I2C_Read... [14:33:09]Read from MH i2c: D1 01 00 [14:33:09]MH_I2C_Read... [14:33:09]Read from MH i2c: D1 01 00 90 05 00 66 [14:33:09]Write to MH i2c: 01 00 00 91 05 96 [14:33:09]Write i2c OK [14:33:09]MH_I2C_Read... [14:33:10]OFD Sender: No OFD packet to send [14:33:10]*** Cut start [14:33:10]*** Partial cut [14:33:10]*** CUTSNS_PIN = 1 [14:33:10]*** CUTSNS_PIN = 0 [14:33:10]*** Brake cut motor [14:33:11]Read from MH i2c: 01 [14:33:11]MH_I2C_Read... [14:33:11]*** Stop cut motor [14:33:11]*** Cut end [14:33:11]Read from MH i2c: 01 07 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [14:33:11]process_action close_receipt done [14:33:11]requested_data is exist [14:33:11]produce_requested_data [14:33:11]requested_item fm.sn is exist - process it [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 11 00 00 [14:33:11]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 17 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [14:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:33:11]wFMCommunicate OK [14:33:11]requested_item fd.num is exist - process it [14:33:11]SAM_PROTO_GetFieldsCounters [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 13 00 00 [14:33:11]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 62 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 62 00 93 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B7 01 00 0E 04 04 00 88 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 E5 [14:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B7 01 00 0E 04 04 00 88 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 [14:33:11]wFMCommunicate OK [14:33:11]SAM_PROTO_GetFieldsCounters done [14:33:11]requested_item shift.num is exist - process it [14:33:11]requested_item shift.opened is exist - process it [14:33:11]req_shift_opened [14:33:11]FM_GetShiftState [14:33:11]SAM_PROTO_GetShiftState [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 13 01 00 [14:33:11]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:11]Read from MH i2c: E2 0E 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 34 [14:33:11]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:33:11]wFMCommunicate OK [14:33:11]SAM_PROTO_GetShiftState done [14:33:11]FM_GetShiftState done [14:33:11]req_shift_opened done [14:33:11]requested_item shift.open_date is exist - process it [14:33:11]req_shift_open_date [14:33:11]req_shift_open_date done [14:33:11]produce_requested_data done [14:33:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112551,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:33:11]process_action_free close_receipt [14:33:11]json_value_free [14:33:11]json_value_free done [14:33:11]process_json_proto returns [14:33:11]Send response to host [14:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112551,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:33:11]free response buf [14:33:11]execute_script done [14:33:11]execute_script returns [14:33:11]free content buf [14:33:11]Sock 8.Close socket [14:33:11]Sock 8.Thread stoped [14:33:11]accept exits with 9 [14:33:11]New connection [14:33:11]New thread 3066674532 created [14:33:11]Thread 3066817892 joined [14:33:11]Waiting for new connection... [14:33:11] Sock 9.Parse request [14:33:11]Sock 9.Check first char [14:33:11]Sock 9.First char is OK [14:33:11]request: POST /json_proto HTTP/1.0 [14:33:11]Method: POST [14:33:11]URL: /json_proto [14:33:11]Method is POST - this is cgi request [14:33:11]url: /json_proto [14:33:11]query_string will be loaded in cgi processing [14:33:11]execute_cgi json_proto POST (null) [14:33:11]execute_cgi path=json_proto method=POST [14:33:11]POST find Content-Length [14:33:11]Host: 172.17.59.68:8080 [14:33:11]Content-Length: 682 [14:33:11]Content-Type: application/json [14:33:11] [14:33:11]POST finish read [14:33:11]Found Content-Length = 682 [14:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:11]execute_script... [14:33: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)321235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:11]POST & json_proto [14:33:11]process_json_proto [14:33:11]json parsed OK: [14:33:11]protocol is kg_v1.0 [14:33:11]action value=close_receipt [14:33:11]process_action close_receipt [14:33:11]cmd_close_receipt [14:33:11]MH_GetDate [14:33:11]Write to MH i2c: F0 00 00 95 05 89 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 09 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 09 00 95 05 00 28 32 78 66 BC EC 60 65 37 [14:33:11]GetLastDocTimeStamp 1719153187 [14:33:11]current date 1719153192 [14:33:11]FM_GetShiftState [14:33:11]SAM_PROTO_GetShiftState [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 13 01 00 [14:33:11]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 36 [14:33:11]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:33:11]wFMCommunicate OK [14:33:11]SAM_PROTO_GetShiftState done [14:33:11]FM_GetShiftState done [14:33:11]opened in 1719106490 [14:33:11]opened+sec_in_day 1719192890 [14:33:11]quantity*price = 100064 [14:33:11]sum+1 = 100066 [14:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 153 23.06.2024 14:33 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112552 ФПД: 127643227540306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143312&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112552&fm=127643227540306&tin=02508201610067®Number=0000000000092771&sum=100000 [14:33:13]StoreToDocumentArchive [14:33:13]shift 392 fd 112552 [14:33:13]save to /storage/0392/doc_00112552 [14:33:13]save last doc name /storage/0392/doc_00112552 to /storage/kkm_last_doc_name [14:33:13]save OK [14:33:13]Clear old archive folders... [14:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:13]tlvbuf is 01B8B450 [14:33:13]SAM_PROTO_ClearQueue [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 09 00 00 [14:33:13]Write to MH i2c: E2 08 00 A3 05 80 09 00 00 00 00 00 00 1A [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [14:33:13]RAPDU: 90 00 [14:33:13]wFMCommunicate OK [14:33:13]SAM_PROTO_ClearQueue done [14:33:13]KKMCreateOFDPacket [14:33:13]OFDProtocolAddRootSTLVToBuf [14:33:13]FM_MakeSignedData [14:33:13]FM_MakeSignedData [14:33:13]SAM_PROTO_SignData [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 0D 01 02 [14:33:13]Write to MH i2c: E2 08 00 A4 05 80 0D 01 02 00 00 00 00 22 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [14:33:13]RAPDU: 90 00 [14:33:13]wFMCommunicate OK [14:33:13]wFMCommunicate request_size=255 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 28 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B7 01 00 35 04 06 00 74 [14:33:13]Write to MH i2c: E2 02 01 A5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 28 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B7 01 00 35 04 06 00 74 00 00 54 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [14:33:13]RAPDU: 90 00 [14:33:13]wFMCommunicate OK [14:33:13]wFMCommunicate request_size=10 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 0D 02 02 05 17 41 3C 4B 52 [14:33:13]Write to MH i2c: E2 0D 00 A6 05 80 0D 02 02 05 00 17 41 3C 4B 52 00 00 60 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [14:33:13]RAPDU: 90 00 [14:33:13]wFMCommunicate OK [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 0D 03 02 [14:33:13]Write to MH i2c: E2 08 00 A7 05 80 0D 03 02 00 00 00 00 27 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 0B 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 0B 00 A7 05 00 98 B8 45 9D AE 1B E5 7B 90 00 83 [14:33:13]RAPDU: 98 B8 45 9D AE 1B E5 7B 90 00 [14:33:13]wFMCommunicate OK [14:33:13]SAM_PROTO_SignData done [14:33:13]FM_MakeSignedData done [14:33:13]CreateOFDProtocolMessage [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 11 00 00 [14:33:13]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 17 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [14:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:33:13]wFMCommunicate OK [14:33:13]CreateOFDProtocolMessage done [14:33:13]OFDSenderStorePacket 112552 [14:33:13]StoreOFDPacket docnum=112552 [14:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FC 40 07 01 9D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 28 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B7 01 00 35 04 06 00 74 17 41 3C 4B 52 98 B8 45 9D AE 1B E5 7B [14:33:13]CheckFolder [14:33:13]dirname=/storage/ofd_packets [14:33:13]CheckFolder done [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00112552 [14:33:13]NVStorageSaveData ofd_packets/00112552 [14:33:13]File name is /storage/ofd_packets/00112552 [14:33:13]Write 301 bytes [14:33:13]NVStorageSaveData done [14:33:13]OFDSenderStorePacket done [14:33:13]KKMCreateOFDPacket done [14:33:13]NVStorageSaveData kkm_last_timestamp [14:33:13]File name is /storage/kkm_last_timestamp [14:33:13]Write 4 bytes [14:33:13]NVStorageSaveData done [14:33:13]ExternCall_PrintAddStr [14:33:13]wPrintStart [14:33:13]Write to MH i2c: 01 00 00 A9 05 AE [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [14:33:13]RasterBufferAndPrint [14:33:13]line Счет N : (1)321235 [14:33:13]line ИНН: 02508201610067 [14:33:13]line Контрольно-Кассовый Чек [14:33:13]line ПРОДАЖА [14:33:13]line ТРК (МРК, ГНК) : 11 [14:33:13]line Товар: 2710124130 [14:33:13]line Аи-92-К-5 [14:33:13]line 15.070 * 66.40 [14:33:13]line = 1000.65 [14:33:13]line НДС 12% НСП 1% [14:33:13]line > о реализуемом товаре [14:33:13]line ОКРУГЛЕНИЕ: -0.65 [14:33:13]line ИТОГО: 1000.00 [14:33:13]line Внесено: 1000.00 [14:33:13]line СДАЧА: 0.00 [14:33:13]line НСП 1% : 8.85 [14:33:13]line НДС 12% : 106.26 [14:33:13]line Наличными: 1000.00 [14:33:13]line Безнал.: 0.00 [14:33:13]line Место: АЗС № 65 "Партнер Нефть" [14:33:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:33:13]line СНО: Общий режим [14:33:13]line Чек 153 23.06.2024 14:33 [14:33:14]line Смена: 392 ФФД: 1.0 [14:33:14]line ЗНМ: 0300000198 [14:33:14]line РНМ: 0000000000092771 [14:33:14]line Версия ККМ: 001 [14:33:14]line ФМ: 0000000000875083 [14:33:14]line ФД: 112552 [14:33:14]line ФПД: 127643227540306 [14:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143312&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112552&fm=127643227540306&tin=02508201610067®Number=0000000000092771&sum=100000 [14:33:14]OFD Sender: Processing packet 112552 [packets to send 38, broken 37] [14:33:14]ProducePacketName [14:33:14]name=ofd_packets/00112552 [14:33:14]OFD Sender: To server: pG, [14:33:14]CommunicateWithHost lk.salyk.kg:30040 [14:33:14]ConnectInit lk.salyk.kg [14:33:14]written 0, free lines is 4095 [14:33:14]Connected sock=8 [14:33:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FC 40 07 01 9D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 28 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B7 01 00 35 04 06 00 74 17 41 3C 4B 52 98 B8 45 9D AE 1B E5 7B [14:33:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2D 57 47 00 F5 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B7 01 00 F4 03 04 00 13 C9 77 66 B6 04 01 00 00 11 FD B0 D5 90 95 CA 94 [14:33:14]CommunicateWithHost err = 0 [14:33:14]CheckOFDResponse [14:33:14]1017 (14) - 77093643461234 [14:33:14]1041 (16) - 0000000000875083 [14:33:14]1040 (4) - 112552 [14:33:14]1012 (4) - 23.06.2024 07:04 [14:33:14]1206 (1) - 0 [14:33:14]OFD Sender: Remove packet 112552 [14:33:14]ProducePacketName [14:33:14]name=ofd_packets/00112552 [14:33:14]NVStorageDeleteData [14:33:14]Write to MH i2c: 01 00 00 D4 05 D9 [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: 01 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: 01 07 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 ED 0C D9 [14:33:14]RasterBufferAndPrint [14:33:14]line [14:33:14]line [14:33:14]line [14:33:14]line [14:33:14]line [14:33:14]written 0, free lines is 3321 [14:33:14]MH_Cut [14:33:14]Write to MH i2c: D1 01 00 DB 05 01 B2 [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: D1 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: D1 01 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: D1 01 00 DB 05 00 B1 [14:33:14]Write to MH i2c: 01 00 00 DC 05 E1 [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]OFD Sender: No OFD packet to send [14:33:15]*** Cut start [14:33:15]*** Partial cut [14:33:15]*** CUTSNS_PIN = 1 [14:33:15]*** CUTSNS_PIN = 0 [14:33:15]*** Brake cut motor [14:33:15]Read from MH i2c: 01 [14:33:15]MH_I2C_Read... [14:33:15]*** Stop cut motor [14:33:15]*** Cut end [14:33:15]Read from MH i2c: 01 07 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [14:33:15]process_action close_receipt done [14:33:15]requested_data is exist [14:33:15]produce_requested_data [14:33:15]requested_item fm.sn is exist - process it [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 11 00 00 [14:33:15]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 17 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AE [14:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:33:15]wFMCommunicate OK [14:33:15]requested_item fd.num is exist - process it [14:33:15]SAM_PROTO_GetFieldsCounters [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 13 00 00 [14:33:15]Write to MH i2c: E2 08 00 DE 05 80 13 00 00 00 00 00 00 5F [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 62 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 62 00 DE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B7 01 00 0E 04 04 00 88 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 34 [14:33:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B7 01 00 0E 04 04 00 88 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 [14:33:16]wFMCommunicate OK [14:33:16]SAM_PROTO_GetFieldsCounters done [14:33:16]requested_item shift.num is exist - process it [14:33:16]requested_item shift.opened is exist - process it [14:33:16]req_shift_opened [14:33:16]FM_GetShiftState [14:33:16]SAM_PROTO_GetShiftState [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 13 01 00 [14:33:16]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 0E 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 7F [14:33:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:33:16]wFMCommunicate OK [14:33:16]SAM_PROTO_GetShiftState done [14:33:16]FM_GetShiftState done [14:33:16]req_shift_opened done [14:33:16]requested_item shift.open_date is exist - process it [14:33:16]req_shift_open_date [14:33:16]req_shift_open_date done [14:33:16]produce_requested_data done [14:33:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112552,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:33:16]process_action_free close_receipt [14:33:16]json_value_free [14:33:16]json_value_free done [14:33:16]process_json_proto returns [14:33:16]Send response to host [14:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112552,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:33:16]free response buf [14:33:16]execute_script done [14:33:16]execute_script returns [14:33:16]free content buf [14:33:16]Sock 9.Close socket [14:33:16]Sock 9.Thread stoped [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:51]accept exits with 10 [14:33:51]New connection [14:33:51]New thread 3066817892 created [14:33:51]Thread 3066674532 joined [14:33:51]Waiting for new connection... [14:33:51] Sock 10.Parse request [14:33:51]Sock 10.Check first char [14:33:51]Sock 10.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.59.68:8080 [14:33:51]Content-Length: 675 [14:33:51]Content-Type: application/json [14:33:51] [14:33:51]POST finish read [14:33:51]Found Content-Length = 675 [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)321236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.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)321236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.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 E0 05 D4 [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 E0 05 00 50 32 78 66 BC EC 60 65 AA [14:33:51]GetLastDocTimeStamp 1719153192 [14:33:51]current date 1719153232 [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 E1 05 80 13 01 00 00 00 00 00 63 [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 E1 05 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 81 [14:33:51]RAPDU: 09 00 01 BA 7B 77 66 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 1719106490 [14:33:51]opened+sec_in_day 1719192890 [14:33:51]quantity*price = 73045 [14:33:51]sum+1 = 73047 [14:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 154 23.06.2024 14:33 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112553 ФПД: 125818423528275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112553&fm=125818423528275&tin=02508201610067®Number=0000000000092771&sum=73000 [14:33:52]StoreToDocumentArchive [14:33:52]shift 392 fd 112553 [14:33:52]save to /storage/0392/doc_00112553 [14:33:52]save last doc name /storage/0392/doc_00112553 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=248 [14:33:52]tlvbuf is 01BD3390 [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 EE 05 80 09 00 00 00 00 00 00 65 [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 EE 05 00 90 00 67 [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 EF 05 80 0D 01 02 00 00 00 00 6D [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [14:33:53]RAPDU: 90 00 [14:33:53]wFMCommunicate OK [14:33:53]wFMCommunicate request_size=255 [14:33:53]MH_SAM_APDU [14:33:53]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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 50 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B7 01 00 35 04 06 00 72 6E 62 70 [14:33:53]Write to MH i2c: E2 02 01 F0 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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 50 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B7 01 00 35 04 06 00 72 6E 62 70 00 00 34 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [14:33:53]RAPDU: 90 00 [14:33:53]wFMCommunicate OK [14:33:53]wFMCommunicate request_size=7 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 0D 02 02 02 CB 53 [14:33:53]Write to MH i2c: E2 0A 00 F1 05 80 0D 02 02 02 00 CB 53 00 00 92 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [14:33:53]RAPDU: 90 00 [14:33:53]wFMCommunicate OK [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 0D 03 02 [14:33:53]Write to MH i2c: E2 08 00 F2 05 80 0D 03 02 00 00 00 00 72 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 0B 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 0B 00 F2 05 00 CC F4 A3 25 B7 3A F6 2D 90 00 0F [14:33:53]RAPDU: CC F4 A3 25 B7 3A F6 2D 90 00 [14:33:53]wFMCommunicate OK [14:33:53]SAM_PROTO_SignData done [14:33:53]FM_MakeSignedData done [14:33:53]CreateOFDProtocolMessage [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 11 00 00 [14:33:53]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 17 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C4 [14:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:33:53]wFMCommunicate OK [14:33:53]CreateOFDProtocolMessage done [14:33:53]OFDSenderStorePacket 112553 [14:33:53]StoreOFDPacket docnum=112553 [14:33:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 79 2D 04 01 C5 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 50 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B7 01 00 35 04 06 00 72 6E 62 70 CB 53 CC F4 A3 25 B7 3A F6 2D [14:33:53]CheckFolder [14:33:53]dirname=/storage/ofd_packets [14:33:53]CheckFolder done [14:33:53]ProducePacketName [14:33:53]name=ofd_packets/00112553 [14:33:53]NVStorageSaveData ofd_packets/00112553 [14:33:53]File name is /storage/ofd_packets/00112553 [14:33:53]Write 298 bytes [14:33:53]NVStorageSaveData done [14:33:53]OFDSenderStorePacket done [14:33:53]KKMCreateOFDPacket done [14:33:53]NVStorageSaveData kkm_last_timestamp [14:33:53]File name is /storage/kkm_last_timestamp [14:33:53]Write 4 bytes [14:33:53]NVStorageSaveData done [14:33:53]ExternCall_PrintAddStr [14:33:53]wPrintStart [14:33:53]Write to MH i2c: 01 00 00 F4 05 F9 [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 F4 05 00 00 00 00 00 FF 0F 0E [14:33:53]RasterBufferAndPrint [14:33:53]line Счет N : (1)321236 [14:33:53]line ИНН: 02508201610067 [14:33:53]line Контрольно-Кассовый Чек [14:33:53]line ПРОДАЖА [14:33:53]line ТРК (МРК, ГНК) : 22 [14:33:53]line Товар: 2710194210 [14:33:53]line ДТ-К-5 [14:33:53]line 10.020 * 72.90 [14:33:53]line = 730.46 [14:33:53]line НДС 12% НСП 1% [14:33:53]line > о реализуемом товаре [14:33:53]line ОКРУГЛЕНИЕ: -0.46 [14:33:53]line ИТОГО: 730.00 [14:33:53]line Внесено: 730.00 [14:33:53]line СДАЧА: 0.00 [14:33:53]line НСП 1% : 6.46 [14:33:53]line НДС 12% : 77.57 [14:33:53]line Наличными: 730.00 [14:33:53]line Безнал.: 0.00 [14:33:53]line Место: АЗС № 65 "Партнер Нефть" [14:33:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:33:53]line СНО: Общий режим [14:33:53]line Чек 154 23.06.2024 14:33 [14:33:53]line Смена: 392 ФФД: 1.0 [14:33:53]line ЗНМ: 0300000198 [14:33:53]line РНМ: 0000000000092771 [14:33:53]line Версия ККМ: 001 [14:33:53]line ФМ: 0000000000875083 [14:33:53]line ФД: 112553 [14:33:53]line ФПД: 125818423528275 [14:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112553&fm=125818423528275&tin=02508201610067®Number=0000000000092771&sum=73000 [14:33:53]OFD Sender: Processing packet 112553 [packets to send 38, broken 37] [14:33:53]ProducePacketName [14:33:53]name=ofd_packets/00112553 [14:33:53]OFD Sender: To server: pG, [14:33:53]CommunicateWithHost lk.salyk.kg:30040 [14:33:53]ConnectInit lk.salyk.kg [14:33:53]written 0, free lines is 4095 [14:33:53]Connected sock=11 [14:33:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 79 2D 04 01 C5 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 50 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B7 01 00 35 04 06 00 72 6E 62 70 CB 53 CC F4 A3 25 B7 3A F6 2D [14:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A2 BD 47 00 87 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B7 01 00 F4 03 04 00 3B C9 77 66 B6 04 01 00 00 E9 CE E1 EE 7D 99 BC AC [14:33:54]CommunicateWithHost err = 0 [14:33:54]CheckOFDResponse [14:33:54]1017 (14) - 77093643461234 [14:33:54]1041 (16) - 0000000000875083 [14:33:54]1040 (4) - 112553 [14:33:54]1012 (4) - 23.06.2024 07:05 [14:33:54]1206 (1) - 0 [14:33:54]OFD Sender: Remove packet 112553 [14:33:54]ProducePacketName [14:33:54]name=ofd_packets/00112553 [14:33:54]NVStorageDeleteData [14:33:54]Write to MH i2c: 01 00 00 1F 06 25 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 04 0D 3D [14:33:54]RasterBufferAndPrint [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]written 0, free lines is 3336 [14:33:54]MH_Cut [14:33:54]Write to MH i2c: D1 01 00 26 06 01 FE [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 01 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 01 00 26 06 00 FD [14:33:54]Write to MH i2c: 01 00 00 27 06 2D [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]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:55]*** CUTSNS_PIN = 0 [14:33:55]*** 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 27 06 00 00 00 00 00 FF 0F 42 [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 28 06 80 11 00 00 00 00 00 00 A8 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 [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 17 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [14:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 29 06 80 13 00 00 00 00 00 00 AB [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 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B7 01 00 0E 04 04 00 88 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 84 [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 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B7 01 00 0E 04 04 00 88 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 [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 2A 06 80 13 01 00 00 00 00 00 AD [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 2A 06 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CB [14:33:55]RAPDU: 09 00 01 BA 7B 77 66 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":"0000000000875083","fd.num":112553,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [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":"0000000000875083","fd.num":112553,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [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 10.Close socket [14:33:55]Sock 10.Thread stoped [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:29]accept exits with 8 [14:34:29]New connection [14:34:29]New thread 3066674532 created [14:34:29]Thread 3066817892 joined [14:34:29]Waiting for new connection... [14:34:29] Sock 8.Parse request [14:34:29]Sock 8.Check first char [14:34:29]Sock 8.First char is OK [14:34:29]request: POST /json_proto HTTP/1.0 [14:34:29]Method: POST [14:34:29]URL: /json_proto [14:34:29]Method is POST - this is cgi request [14:34:29]url: /json_proto [14:34:29]query_string will be loaded in cgi processing [14:34:29]execute_cgi json_proto POST (null) [14:34:29]execute_cgi path=json_proto method=POST [14:34:29]POST find Content-Length [14:34:29]Host: 172.17.59.68:8080 [14:34:29]Content-Length: 677 [14:34:29]Content-Type: application/json [14:34:29] [14:34:29]POST finish read [14:34:29]Found Content-Length = 677 [14:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:29]execute_script... [14:34: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)321237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:29]POST & json_proto [14:34:29]process_json_proto [14:34:29]json parsed OK: [14:34:29]protocol is kg_v1.0 [14:34:29]action value=close_receipt [14:34:29]process_action close_receipt [14:34:29]cmd_close_receipt [14:34:29]MH_GetDate [14:34:29]Write to MH i2c: F0 00 00 2B 06 20 [14:34:29]Write i2c OK [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: F0 [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: F0 09 00 [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: F0 09 00 2B 06 00 76 32 78 66 BC EC 60 65 1C [14:34:29]GetLastDocTimeStamp 1719153232 [14:34:29]current date 1719153270 [14:34:29]FM_GetShiftState [14:34:29]SAM_PROTO_GetShiftState [14:34:29]wFMCommunicate request_size=4 [14:34:29]MH_SAM_APDU [14:34:29]CAPDU: 80 13 01 00 [14:34:29]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [14:34:29]Write i2c OK [14:34:29]MH_I2C_Read... [14:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:30]Read from MH i2c: E2 [14:34:30]MH_I2C_Read... [14:34:30]Read from MH i2c: E2 0E 00 [14:34:30]MH_I2C_Read... [14:34:30]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 CD [14:34:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:34:30]wFMCommunicate OK [14:34:30]SAM_PROTO_GetShiftState done [14:34:30]FM_GetShiftState done [14:34:30]opened in 1719106490 [14:34:30]opened+sec_in_day 1719192890 [14:34:30]quantity*price = 50065 [14:34:30]sum+1 = 50067 [14:34:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 155 23.06.2024 14:34 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112554 ФПД: 157630954960245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143430&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112554&fm=157630954960245&tin=02508201610067®Number=0000000000092771&sum=50000 [14:34:31]StoreToDocumentArchive [14:34:31]shift 392 fd 112554 [14:34:31]save to /storage/0392/doc_00112554 [14:34:31]save last doc name /storage/0392/doc_00112554 to /storage/kkm_last_doc_name [14:34:31]save OK [14:34:31]Clear old archive folders... [14:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:31]tlvbuf is 01B7C300 [14:34:31]SAM_PROTO_ClearQueue [14:34:31]wFMCommunicate request_size=4 [14:34:31]MH_SAM_APDU [14:34:31]CAPDU: 80 09 00 00 [14:34:31]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [14:34:31]Write i2c OK [14:34:31]MH_I2C_Read... [14:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:31]Read from MH i2c: E2 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 03 00 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [14:34:31]RAPDU: 90 00 [14:34:31]wFMCommunicate OK [14:34:31]SAM_PROTO_ClearQueue done [14:34:31]KKMCreateOFDPacket [14:34:31]OFDProtocolAddRootSTLVToBuf [14:34:31]FM_MakeSignedData [14:34:31]FM_MakeSignedData [14:34:31]SAM_PROTO_SignData [14:34:31]wFMCommunicate request_size=4 [14:34:31]MH_SAM_APDU [14:34:31]CAPDU: 80 0D 01 02 [14:34:31]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [14:34:31]Write i2c OK [14:34:31]MH_I2C_Read... [14:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:31]Read from MH i2c: E2 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 03 00 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [14:34:31]RAPDU: 90 00 [14:34:31]wFMCommunicate OK [14:34:31]wFMCommunicate request_size=255 [14:34:31]MH_SAM_APDU [14:34:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 9B 00 00 00 F4 03 04 00 76 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B7 01 00 35 04 06 00 8F [14:34:31]Write to MH i2c: E2 02 01 3B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 9B 00 00 00 F4 03 04 00 76 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B7 01 00 35 04 06 00 8F 00 00 08 [14:34:31]Write i2c OK [14:34:31]MH_I2C_Read... [14:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:31]Read from MH i2c: E2 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 03 00 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [14:34:31]RAPDU: 90 00 [14:34:31]wFMCommunicate OK [14:34:31]wFMCommunicate request_size=10 [14:34:31]MH_SAM_APDU [14:34:31]CAPDU: 80 0D 02 02 05 5D 51 13 75 75 [14:34:31]Write to MH i2c: E2 0D 00 3C 06 80 0D 02 02 05 00 5D 51 13 75 75 00 00 71 [14:34:31]Write i2c OK [14:34:31]MH_I2C_Read... [14:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:31]Read from MH i2c: E2 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 03 00 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [14:34:31]RAPDU: 90 00 [14:34:31]wFMCommunicate OK [14:34:31]wFMCommunicate request_size=4 [14:34:31]MH_SAM_APDU [14:34:31]CAPDU: 80 0D 03 02 [14:34:31]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [14:34:31]Write i2c OK [14:34:31]MH_I2C_Read... [14:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:31]Read from MH i2c: E2 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 0B 00 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 0B 00 3D 06 00 6D AE 39 14 E5 AF AD 48 90 00 B0 [14:34:31]RAPDU: 6D AE 39 14 E5 AF AD 48 90 00 [14:34:31]wFMCommunicate OK [14:34:31]SAM_PROTO_SignData done [14:34:31]FM_MakeSignedData done [14:34:31]CreateOFDProtocolMessage [14:34:31]wFMCommunicate request_size=4 [14:34:31]MH_SAM_APDU [14:34:31]CAPDU: 80 11 00 00 [14:34:31]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [14:34:31]Write i2c OK [14:34:31]MH_I2C_Read... [14:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:31]Read from MH i2c: E2 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 17 00 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [14:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:34:31]wFMCommunicate OK [14:34:31]CreateOFDProtocolMessage done [14:34:31]OFDSenderStorePacket 112554 [14:34:31]StoreOFDPacket docnum=112554 [14:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 F7 07 01 5A A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 9B 00 00 00 F4 03 04 00 76 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B7 01 00 35 04 06 00 8F 5D 51 13 75 75 6D AE 39 14 E5 AF AD 48 [14:34:31]CheckFolder [14:34:31]dirname=/storage/ofd_packets [14:34:31]CheckFolder done [14:34:31]ProducePacketName [14:34:31]name=ofd_packets/00112554 [14:34:31]NVStorageSaveData ofd_packets/00112554 [14:34:31]File name is /storage/ofd_packets/00112554 [14:34:31]Write 301 bytes [14:34:31]NVStorageSaveData done [14:34:31]OFDSenderStorePacket done [14:34:31]KKMCreateOFDPacket done [14:34:31]NVStorageSaveData kkm_last_timestamp [14:34:31]File name is /storage/kkm_last_timestamp [14:34:31]Write 4 bytes [14:34:31]NVStorageSaveData done [14:34:31]ExternCall_PrintAddStr [14:34:31]wPrintStart [14:34:31]Write to MH i2c: 01 00 00 3F 06 45 [14:34:31]Write i2c OK [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: 01 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: 01 07 00 [14:34:31]MH_I2C_Read... [14:34:31]Read from MH i2c: 01 07 00 3F 06 00 00 00 00 00 FF 0F 5A [14:34:31]RasterBufferAndPrint [14:34:31]line Счет N : (1)321237 [14:34:31]line ИНН: 02508201610067 [14:34:31]line Контрольно-Кассовый Чек [14:34:31]line ПРОДАЖА [14:34:31]line ТРК (МРК, ГНК) : 11 [14:34:31]line Товар: 2710124130 [14:34:31]line Аи-92-К-5 [14:34:31]line 7.540 * 66.40 [14:34:31]line = 500.66 [14:34:31]line НДС 12% НСП 1% [14:34:31]line > о реализуемом товаре [14:34:31]line ОКРУГЛЕНИЕ: -0.66 [14:34:31]line ИТОГО: 500.00 [14:34:31]line Внесено: 500.00 [14:34:31]line СДАЧА: 0.00 [14:34:31]line НСП 1% : 4.43 [14:34:31]line НДС 12% : 53.17 [14:34:31]line Наличными: 500.00 [14:34:31]line Безнал.: 0.00 [14:34:31]line Место: АЗС № 65 "Партнер Нефть" [14:34:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:34:31]line СНО: Общий режим [14:34:31]line Чек 155 23.06.2024 14:34 [14:34:31]line Смена: 392 ФФД: 1.0 [14:34:31]line ЗНМ: 0300000198 [14:34:31]line РНМ: 0000000000092771 [14:34:31]line Версия ККМ: 001 [14:34:31]line ФМ: 0000000000875083 [14:34:31]line ФД: 112554 [14:34:31]line ФПД: 157630954960245 [14:34:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143430&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112554&fm=157630954960245&tin=02508201610067®Number=0000000000092771&sum=50000 [14:34:32]OFD Sender: Processing packet 112554 [packets to send 38, broken 37] [14:34:32]ProducePacketName [14:34:32]name=ofd_packets/00112554 [14:34:32]OFD Sender: To server: pG, [14:34:32]CommunicateWithHost lk.salyk.kg:30040 [14:34:32]ConnectInit lk.salyk.kg [14:34:32]written 0, free lines is 4095 [14:34:32]Connected sock=10 [14:34:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 F7 07 01 5A A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 9B 00 00 00 F4 03 04 00 76 32 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B7 01 00 35 04 06 00 8F 5D 51 13 75 75 6D AE 39 14 E5 AF AD 48 [14:34:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 32 4B 47 00 2B 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B7 01 00 F4 03 04 00 61 C9 77 66 B6 04 01 00 00 15 53 B9 F7 97 32 5B 0C [14:34:32]CommunicateWithHost err = 0 [14:34:32]CheckOFDResponse [14:34:32]1017 (14) - 77093643461234 [14:34:32]1041 (16) - 0000000000875083 [14:34:32]1040 (4) - 112554 [14:34:32]1012 (4) - 23.06.2024 07:06 [14:34:32]1206 (1) - 0 [14:34:32]OFD Sender: Remove packet 112554 [14:34:32]ProducePacketName [14:34:32]name=ofd_packets/00112554 [14:34:32]NVStorageDeleteData [14:34:32]Write to MH i2c: 01 00 00 6A 06 70 [14:34:32]Write i2c OK [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: 01 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: 01 07 00 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 EB 0C 6E [14:34:32]RasterBufferAndPrint [14:34:32]line [14:34:32]line [14:34:32]line [14:34:32]line [14:34:32]line [14:34:32]written 0, free lines is 3313 [14:34:32]MH_Cut [14:34:32]Write to MH i2c: D1 01 00 71 06 01 49 [14:34:32]Write i2c OK [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: D1 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: D1 01 00 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: D1 01 00 71 06 00 48 [14:34:32]Write to MH i2c: 01 00 00 72 06 78 [14:34:32]Write i2c OK [14:34:32]MH_I2C_Read... [14:34:32]OFD Sender: No OFD packet to send [14:34:33]*** Cut start [14:34:33]*** Partial cut [14:34:33]*** CUTSNS_PIN = 1 [14:34:33]*** CUTSNS_PIN = 0 [14:34:33]*** Brake cut motor [14:34:33]Read from MH i2c: 01 [14:34:33]MH_I2C_Read... [14:34:33]*** Stop cut motor [14:34:33]*** Cut end [14:34:33]Read from MH i2c: 01 07 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [14:34:33]process_action close_receipt done [14:34:33]requested_data is exist [14:34:33]produce_requested_data [14:34:33]requested_item fm.sn is exist - process it [14:34:33]wFMCommunicate request_size=4 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 11 00 00 [14:34:33]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:33]Read from MH i2c: E2 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 17 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [14:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:34:33]wFMCommunicate OK [14:34:33]requested_item fd.num is exist - process it [14:34:33]SAM_PROTO_GetFieldsCounters [14:34:33]wFMCommunicate request_size=4 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 13 00 00 [14:34:33]Write to MH i2c: E2 08 00 74 06 80 13 00 00 00 00 00 00 F6 [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:33]Read from MH i2c: E2 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 62 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 62 00 74 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B7 01 00 0E 04 04 00 88 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 D3 [14:34:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B7 01 00 0E 04 04 00 88 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 [14:34:33]wFMCommunicate OK [14:34:33]SAM_PROTO_GetFieldsCounters done [14:34:33]requested_item shift.num is exist - process it [14:34:33]requested_item shift.opened is exist - process it [14:34:33]req_shift_opened [14:34:33]FM_GetShiftState [14:34:33]SAM_PROTO_GetShiftState [14:34:33]wFMCommunicate request_size=4 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 13 01 00 [14:34:33]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:34]Read from MH i2c: E2 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: E2 0E 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 16 [14:34:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:34:34]wFMCommunicate OK [14:34:34]SAM_PROTO_GetShiftState done [14:34:34]FM_GetShiftState done [14:34:34]req_shift_opened done [14:34:34]requested_item shift.open_date is exist - process it [14:34:34]req_shift_open_date [14:34:34]req_shift_open_date done [14:34:34]produce_requested_data done [14:34:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112554,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:34:34]process_action_free close_receipt [14:34:34]json_value_free [14:34:34]json_value_free done [14:34:34]process_json_proto returns [14:34:34]Send response to host [14:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112554,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:34:34]free response buf [14:34:34]execute_script done [14:34:34]execute_script returns [14:34:34]free content buf [14:34:34]Sock 8.Close socket [14:34:34]Sock 8.Thread stoped [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:10]accept exits with 9 [14:37:10]New connection [14:37:10]New thread 3066817892 created [14:37:10]Thread 3066674532 joined [14:37:10]Waiting for new connection... [14:37:10] Sock 9.Parse request [14:37:10]Sock 9.Check first char [14:37:10]Sock 9.First char is OK [14:37:10]request: POST /json_proto HTTP/1.0 [14:37:10]Method: POST [14:37:10]URL: /json_proto [14:37:10]Method is POST - this is cgi request [14:37:10]url: /json_proto [14:37:10]query_string will be loaded in cgi processing [14:37:10]execute_cgi json_proto POST (null) [14:37:10]execute_cgi path=json_proto method=POST [14:37:10]POST find Content-Length [14:37:10]Host: 172.17.59.68:8080 [14:37:10]Content-Length: 682 [14:37:10]Content-Type: application/json [14:37:10] [14:37:10]POST finish read [14:37:10]Found Content-Length = 682 [14:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "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" ] } } [14:37:10]execute_script... [14:37: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)321239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "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" ] } } [14:37:10]POST & json_proto [14:37:10]process_json_proto [14:37:10]json parsed OK: [14:37:10]protocol is kg_v1.0 [14:37:10]action value=close_receipt [14:37:10]process_action close_receipt [14:37:10]cmd_close_receipt [14:37:10]MH_GetDate [14:37:10]Write to MH i2c: F0 00 00 76 06 6B [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 09 00 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 09 00 76 06 00 17 33 78 66 BC EC 60 65 09 [14:37:10]GetLastDocTimeStamp 1719153270 [14:37:10]current date 1719153431 [14:37:10]FM_GetShiftState [14:37:10]SAM_PROTO_GetShiftState [14:37:10]wFMCommunicate request_size=4 [14:37:10]MH_SAM_APDU [14:37:10]CAPDU: 80 13 01 00 [14:37:10]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:10]Read from MH i2c: E2 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: E2 0E 00 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 18 [14:37:10]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:37:10]wFMCommunicate OK [14:37:10]SAM_PROTO_GetShiftState done [14:37:10]FM_GetShiftState done [14:37:10]opened in 1719106490 [14:37:10]opened+sec_in_day 1719192890 [14:37:10]quantity*price = 160024 [14:37:10]sum+1 = 160025 [14:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 156 23.06.2024 14:37 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112555 ФПД: 132410021737685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143711&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112555&fm=132410021737685&tin=02508201610067®Number=0000000000092771&sum=160000 [14:37:11]StoreToDocumentArchive [14:37:11]shift 392 fd 112555 [14:37:11]save to /storage/0392/doc_00112555 [14:37:11]save last doc name /storage/0392/doc_00112555 to /storage/kkm_last_doc_name [14:37:11]save OK [14:37:11]Clear old archive folders... [14:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:11]tlvbuf is 01B747C0 [14:37:11]SAM_PROTO_ClearQueue [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 09 00 00 [14:37:11]Write to MH i2c: E2 08 00 84 06 80 09 00 00 00 00 00 00 FC [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]SAM_PROTO_ClearQueue done [14:37:11]KKMCreateOFDPacket [14:37:11]OFDProtocolAddRootSTLVToBuf [14:37:11]FM_MakeSignedData [14:37:11]FM_MakeSignedData [14:37:11]SAM_PROTO_SignData [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 01 02 [14:37:11]Write to MH i2c: E2 08 00 85 06 80 0D 01 02 00 00 00 00 04 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]wFMCommunicate request_size=255 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 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 9C 00 00 00 F4 03 04 00 17 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B7 01 00 35 04 06 00 78 [14:37:11]Write to MH i2c: E2 02 01 86 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 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 9C 00 00 00 F4 03 04 00 17 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B7 01 00 35 04 06 00 78 00 00 63 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]wFMCommunicate request_size=10 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 02 02 05 6D 1C 4F 74 D5 [14:37:11]Write to MH i2c: E2 0D 00 87 06 80 0D 02 02 05 00 6D 1C 4F 74 D5 00 00 32 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:12]Read from MH i2c: E2 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 03 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [14:37:12]RAPDU: 90 00 [14:37:12]wFMCommunicate OK [14:37:12]wFMCommunicate request_size=4 [14:37:12]MH_SAM_APDU [14:37:12]CAPDU: 80 0D 03 02 [14:37:12]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:12]Read from MH i2c: E2 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 0B 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 0B 00 88 06 00 16 5F E1 7C 67 2E 43 09 90 00 BD [14:37:12]RAPDU: 16 5F E1 7C 67 2E 43 09 90 00 [14:37:12]wFMCommunicate OK [14:37:12]SAM_PROTO_SignData done [14:37:12]FM_MakeSignedData done [14:37:12]CreateOFDProtocolMessage [14:37:12]wFMCommunicate request_size=4 [14:37:12]MH_SAM_APDU [14:37:12]CAPDU: 80 11 00 00 [14:37:12]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:12]Read from MH i2c: E2 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 17 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [14:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:37:12]wFMCommunicate OK [14:37:12]CreateOFDProtocolMessage done [14:37:12]OFDSenderStorePacket 112555 [14:37:12]StoreOFDPacket docnum=112555 [14:37:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 90 B0 07 01 0D 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 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 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 9C 00 00 00 F4 03 04 00 17 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B7 01 00 35 04 06 00 78 6D 1C 4F 74 D5 16 5F E1 7C 67 2E 43 09 [14:37:12]CheckFolder [14:37:12]dirname=/storage/ofd_packets [14:37:12]CheckFolder done [14:37:12]ProducePacketName [14:37:12]name=ofd_packets/00112555 [14:37:12]NVStorageSaveData ofd_packets/00112555 [14:37:12]File name is /storage/ofd_packets/00112555 [14:37:12]Write 301 bytes [14:37:12]NVStorageSaveData done [14:37:12]OFDSenderStorePacket done [14:37:12]KKMCreateOFDPacket done [14:37:12]NVStorageSaveData kkm_last_timestamp [14:37:12]File name is /storage/kkm_last_timestamp [14:37:12]Write 4 bytes [14:37:12]NVStorageSaveData done [14:37:12]ExternCall_PrintAddStr [14:37:12]wPrintStart [14:37:12]Write to MH i2c: 01 00 00 8A 06 90 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [14:37:12]RasterBufferAndPrint [14:37:12]line Счет N : (1)321239 [14:37:12]line ИНН: 02508201610067 [14:37:12]line Контрольно-Кассовый Чек [14:37:12]line ПРОДАЖА [14:37:12]line ТРК (МРК, ГНК) : 11 [14:37:12]line Товар: 2710124130 [14:37:12]line Аи-92-К-5 [14:37:12]line 24.100 * 66.40 [14:37:12]line = 1600.24 [14:37:12]line НДС 12% НСП 1% [14:37:12]line > о реализуемом товаре [14:37:12]line ОКРУГЛЕНИЕ: -0.24 [14:37:12]line ИТОГО: 1600.00 [14:37:12]line Внесено: 1600.00 [14:37:12]line СДАЧА: 0.00 [14:37:12]line НСП 1% : 14.16 [14:37:12]line НДС 12% : 169.94 [14:37:12]line Наличными: 1600.00 [14:37:12]line Безнал.: 0.00 [14:37:12]line Место: АЗС № 65 "Партнер Нефть" [14:37:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:37:12]line СНО: Общий режим [14:37:12]line Чек 156 23.06.2024 14:37 [14:37:12]line Смена: 392 ФФД: 1.0 [14:37:12]line ЗНМ: 0300000198 [14:37:12]line РНМ: 0000000000092771 [14:37:12]line Версия ККМ: 001 [14:37:12]line ФМ: 0000000000875083 [14:37:12]line ФД: 112555 [14:37:12]line ФПД: 132410021737685 [14:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143711&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112555&fm=132410021737685&tin=02508201610067®Number=0000000000092771&sum=160000 [14:37:12]OFD Sender: Processing packet 112555 [packets to send 38, broken 37] [14:37:12]ProducePacketName [14:37:12]name=ofd_packets/00112555 [14:37:12]OFD Sender: To server: pG, [14:37:12]CommunicateWithHost lk.salyk.kg:30040 [14:37:12]ConnectInit lk.salyk.kg [14:37:12]written 0, free lines is 4095 [14:37:12]Connected sock=10 [14:37:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 90 B0 07 01 0D 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 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 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 9C 00 00 00 F4 03 04 00 17 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B7 01 00 35 04 06 00 78 6D 1C 4F 74 D5 16 5F E1 7C 67 2E 43 09 [14:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B1 15 47 00 8D 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B7 01 00 F4 03 04 00 01 CA 77 66 B6 04 01 00 00 25 7E FA EB F3 4F 6F B4 [14:37:12]CommunicateWithHost err = 0 [14:37:12]CheckOFDResponse [14:37:12]1017 (14) - 77093643461234 [14:37:12]1041 (16) - 0000000000875083 [14:37:12]1040 (4) - 112555 [14:37:12]1012 (4) - 23.06.2024 07:08 [14:37:12]1206 (1) - 0 [14:37:12]OFD Sender: Remove packet 112555 [14:37:12]ProducePacketName [14:37:12]name=ofd_packets/00112555 [14:37:12]NVStorageDeleteData [14:37:12]Write to MH i2c: 01 00 00 B5 06 BB [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 E6 0C B4 [14:37:12]RasterBufferAndPrint [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]written 0, free lines is 3308 [14:37:12]MH_Cut [14:37:12]Write to MH i2c: D1 01 00 BC 06 01 94 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 01 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 01 00 BC 06 00 93 [14:37:12]Write to MH i2c: 01 00 00 BD 06 C3 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:13]OFD Sender: No OFD packet to send [14:37:13]*** Cut start [14:37:13]*** Partial cut [14:37:13]*** CUTSNS_PIN = 1 [14:37:13]*** CUTSNS_PIN = 0 [14:37:13]*** Brake cut motor [14:37:14]Read from MH i2c: 01 [14:37:14]MH_I2C_Read... [14:37:14]*** Stop cut motor [14:37:14]*** Cut end [14:37:14]Read from MH i2c: 01 07 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [14:37:14]process_action close_receipt done [14:37:14]requested_data is exist [14:37:14]produce_requested_data [14:37:14]requested_item fm.sn is exist - process it [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 11 00 00 [14:37:14]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 17 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 17 00 BE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 90 [14:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:37:14]wFMCommunicate OK [14:37:14]requested_item fd.num is exist - process it [14:37:14]SAM_PROTO_GetFieldsCounters [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 13 00 00 [14:37:14]Write to MH i2c: E2 08 00 BF 06 80 13 00 00 00 00 00 00 41 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 62 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 62 00 BF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B7 01 00 0E 04 04 00 88 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 22 [14:37:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B7 01 00 0E 04 04 00 88 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 [14:37:14]wFMCommunicate OK [14:37:14]SAM_PROTO_GetFieldsCounters done [14:37:14]requested_item shift.num is exist - process it [14:37:14]requested_item shift.opened is exist - process it [14:37:14]req_shift_opened [14:37:14]FM_GetShiftState [14:37:14]SAM_PROTO_GetShiftState [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 13 01 00 [14:37:14]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 0E 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 61 [14:37:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:37:14]wFMCommunicate OK [14:37:14]SAM_PROTO_GetShiftState done [14:37:14]FM_GetShiftState done [14:37:14]req_shift_opened done [14:37:14]requested_item shift.open_date is exist - process it [14:37:14]req_shift_open_date [14:37:14]req_shift_open_date done [14:37:14]produce_requested_data done [14:37:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112555,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:37:14]process_action_free close_receipt [14:37:14]json_value_free [14:37:14]json_value_free done [14:37:14]process_json_proto returns [14:37:14]Send response to host [14:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112555,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:37:14]free response buf [14:37:14]execute_script done [14:37:14]execute_script returns [14:37:14]free content buf [14:37:14]Sock 9.Close socket [14:37:14]Sock 9.Thread stoped [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:11]accept exits with 8 [14:38:11]New connection [14:38:11]New thread 3066674532 created [14:38:11]Thread 3066817892 joined [14:38:11]Waiting for new connection... [14:38:11] Sock 8.Parse request [14:38:11]Sock 8.Check first char [14:38:11]Sock 8.First char is OK [14:38:11]request: POST /json_proto HTTP/1.0 [14:38:11]Method: POST [14:38:11]URL: /json_proto [14:38:11]Method is POST - this is cgi request [14:38:11]url: /json_proto [14:38:11]query_string will be loaded in cgi processing [14:38:11]execute_cgi json_proto POST (null) [14:38:11]execute_cgi path=json_proto method=POST [14:38:11]POST find Content-Length [14:38:11]Host: 172.17.59.68:8080 [14:38:11]Content-Length: 682 [14:38:11]Content-Type: application/json [14:38:11] [14:38:11]POST finish read [14:38:11]Found Content-Length = 682 [14:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:38:11]execute_script... [14:38: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)321240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:38:11]POST & json_proto [14:38:11]process_json_proto [14:38:11]json parsed OK: [14:38:11]protocol is kg_v1.0 [14:38:11]action value=close_receipt [14:38:11]process_action close_receipt [14:38:11]cmd_close_receipt [14:38:11]MH_GetDate [14:38:11]Write to MH i2c: F0 00 00 C1 06 B6 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: F0 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: F0 09 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: F0 09 00 C1 06 00 54 33 78 66 BC EC 60 65 91 [14:38:11]GetLastDocTimeStamp 1719153431 [14:38:11]current date 1719153492 [14:38:11]FM_GetShiftState [14:38:11]SAM_PROTO_GetShiftState [14:38:11]wFMCommunicate request_size=4 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 13 01 00 [14:38:11]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 0E 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 63 [14:38:11]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:38:11]wFMCommunicate OK [14:38:11]SAM_PROTO_GetShiftState done [14:38:11]FM_GetShiftState done [14:38:11]opened in 1719106490 [14:38:11]opened+sec_in_day 1719192890 [14:38:11]quantity*price = 100060 [14:38:11]sum+1 = 100062 [14:38:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 157 23.06.2024 14:38 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112556 ФПД: 120546434331334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143812&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112556&fm=120546434331334&tin=02508201610067®Number=0000000000092771&sum=100000 [14:38:12]StoreToDocumentArchive [14:38:12]shift 392 fd 112556 [14:38:12]save to /storage/0392/doc_00112556 [14:38:12]save last doc name /storage/0392/doc_00112556 to /storage/kkm_last_doc_name [14:38:12]save OK [14:38:12]Clear old archive folders... [14:38:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:12]tlvbuf is 01BB6780 [14:38:12]SAM_PROTO_ClearQueue [14:38:12]wFMCommunicate request_size=4 [14:38:12]MH_SAM_APDU [14:38:12]CAPDU: 80 09 00 00 [14:38:12]Write to MH i2c: E2 08 00 CF 06 80 09 00 00 00 00 00 00 47 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:12]Read from MH i2c: E2 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 03 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [14:38:12]RAPDU: 90 00 [14:38:12]wFMCommunicate OK [14:38:12]SAM_PROTO_ClearQueue done [14:38:12]KKMCreateOFDPacket [14:38:12]OFDProtocolAddRootSTLVToBuf [14:38:12]FM_MakeSignedData [14:38:12]FM_MakeSignedData [14:38:12]SAM_PROTO_SignData [14:38:12]wFMCommunicate request_size=4 [14:38:12]MH_SAM_APDU [14:38:12]CAPDU: 80 0D 01 02 [14:38:12]Write to MH i2c: E2 08 00 D0 06 80 0D 01 02 00 00 00 00 4F [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:12]Read from MH i2c: E2 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 03 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [14:38:12]RAPDU: 90 00 [14:38:12]wFMCommunicate OK [14:38:12]wFMCommunicate request_size=255 [14:38:12]MH_SAM_APDU [14:38:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 54 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B7 01 00 35 04 06 00 6D [14:38:12]Write to MH i2c: E2 02 01 D1 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 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 54 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B7 01 00 35 04 06 00 6D 00 00 A0 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:12]Read from MH i2c: E2 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 03 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [14:38:12]RAPDU: 90 00 [14:38:12]wFMCommunicate OK [14:38:12]wFMCommunicate request_size=10 [14:38:12]MH_SAM_APDU [14:38:12]CAPDU: 80 0D 02 02 05 A2 E7 65 B2 C6 [14:38:12]Write to MH i2c: E2 0D 00 D2 06 80 0D 02 02 05 00 A2 E7 65 B2 C6 00 00 C2 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:12]Read from MH i2c: E2 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 03 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [14:38:12]RAPDU: 90 00 [14:38:12]wFMCommunicate OK [14:38:12]wFMCommunicate request_size=4 [14:38:12]MH_SAM_APDU [14:38:12]CAPDU: 80 0D 03 02 [14:38:12]Write to MH i2c: E2 08 00 D3 06 80 0D 03 02 00 00 00 00 54 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:12]Read from MH i2c: E2 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 0B 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: E2 0B 00 D3 06 00 F9 40 83 5F 92 35 FB 85 90 00 B7 [14:38:12]RAPDU: F9 40 83 5F 92 35 FB 85 90 00 [14:38:12]wFMCommunicate OK [14:38:12]SAM_PROTO_SignData done [14:38:12]FM_MakeSignedData done [14:38:12]CreateOFDProtocolMessage [14:38:12]wFMCommunicate request_size=4 [14:38:12]MH_SAM_APDU [14:38:12]CAPDU: 80 11 00 00 [14:38:12]Write to MH i2c: E2 08 00 D4 06 80 11 00 00 00 00 00 00 54 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:13]Read from MH i2c: E2 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 17 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 17 00 D4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [14:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:13]wFMCommunicate OK [14:38:13]CreateOFDProtocolMessage done [14:38:13]OFDSenderStorePacket 112556 [14:38:13]StoreOFDPacket docnum=112556 [14:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 60 07 01 94 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 54 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B7 01 00 35 04 06 00 6D A2 E7 65 B2 C6 F9 40 83 5F 92 35 FB 85 [14:38:13]CheckFolder [14:38:13]dirname=/storage/ofd_packets [14:38:13]CheckFolder done [14:38:13]ProducePacketName [14:38:13]name=ofd_packets/00112556 [14:38:13]NVStorageSaveData ofd_packets/00112556 [14:38:13]File name is /storage/ofd_packets/00112556 [14:38:13]Write 301 bytes [14:38:13]NVStorageSaveData done [14:38:13]OFDSenderStorePacket done [14:38:13]KKMCreateOFDPacket done [14:38:13]NVStorageSaveData kkm_last_timestamp [14:38:13]File name is /storage/kkm_last_timestamp [14:38:13]Write 4 bytes [14:38:13]NVStorageSaveData done [14:38:13]ExternCall_PrintAddStr [14:38:13]wPrintStart [14:38:13]Write to MH i2c: 01 00 00 D5 06 DB [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: 01 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: 01 07 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 FF 0F F0 [14:38:13]RasterBufferAndPrint [14:38:13]line Счет N : (1)321240 [14:38:13]line ИНН: 02508201610067 [14:38:13]line Контрольно-Кассовый Чек [14:38:13]line ПРОДАЖА [14:38:13]line ТРК (МРК, ГНК) : 12 [14:38:13]line Товар: 2710124500 [14:38:13]line Аи-95-К-5 [14:38:13]line 13.540 * 73.90 [14:38:13]line = 1000.61 [14:38:13]line НДС 12% НСП 1% [14:38:13]line > о реализуемом товаре [14:38:13]line ОКРУГЛЕНИЕ: -0.61 [14:38:13]line ИТОГО: 1000.00 [14:38:13]line Внесено: 1000.00 [14:38:13]line СДАЧА: 0.00 [14:38:13]line НСП 1% : 8.85 [14:38:13]line НДС 12% : 106.26 [14:38:13]line Наличными: 1000.00 [14:38:13]line Безнал.: 0.00 [14:38:13]line Место: АЗС № 65 "Партнер Нефть" [14:38:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:38:13]line СНО: Общий режим [14:38:13]line Чек 157 23.06.2024 14:38 [14:38:13]line Смена: 392 ФФД: 1.0 [14:38:13]line ЗНМ: 0300000198 [14:38:13]line РНМ: 0000000000092771 [14:38:13]line Версия ККМ: 001 [14:38:13]line ФМ: 0000000000875083 [14:38:13]line ФД: 112556 [14:38:13]line ФПД: 120546434331334 [14:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143812&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112556&fm=120546434331334&tin=02508201610067®Number=0000000000092771&sum=100000 [14:38:13]OFD Sender: Processing packet 112556 [packets to send 38, broken 37] [14:38:13]ProducePacketName [14:38:13]name=ofd_packets/00112556 [14:38:13]OFD Sender: To server: pG, [14:38:13]CommunicateWithHost lk.salyk.kg:30040 [14:38:13]ConnectInit lk.salyk.kg [14:38:13]written 0, free lines is 4095 [14:38:13]Connected sock=10 [14:38:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 60 07 01 94 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 54 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B7 01 00 35 04 06 00 6D A2 E7 65 B2 C6 F9 40 83 5F 92 35 FB 85 [14:38:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 52 66 47 00 F3 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B7 01 00 F4 03 04 00 3E CA 77 66 B6 04 01 00 00 5F 02 60 A2 0E C1 AF 1C [14:38:13]CommunicateWithHost err = 0 [14:38:13]CheckOFDResponse [14:38:13]1017 (14) - 77093643461234 [14:38:13]1041 (16) - 0000000000875083 [14:38:13]1040 (4) - 112556 [14:38:13]1012 (4) - 23.06.2024 07:09 [14:38:13]1206 (1) - 0 [14:38:13]OFD Sender: Remove packet 112556 [14:38:13]ProducePacketName [14:38:13]name=ofd_packets/00112556 [14:38:13]NVStorageDeleteData [14:38:13]Write to MH i2c: 01 00 00 00 07 07 [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: 01 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: 01 07 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 EC 0C 06 [14:38:13]RasterBufferAndPrint [14:38:13]line [14:38:13]line [14:38:13]line [14:38:13]line [14:38:13]line [14:38:13]written 0, free lines is 3314 [14:38:13]MH_Cut [14:38:13]Write to MH i2c: D1 01 00 07 07 01 E0 [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: D1 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: D1 01 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: D1 01 00 07 07 00 DF [14:38:13]Write to MH i2c: 01 00 00 08 07 0F [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:14]OFD Sender: No OFD packet to send [14:38:14]*** Cut start [14:38:14]*** Partial cut [14:38:14]*** CUTSNS_PIN = 1 [14:38:14]*** CUTSNS_PIN = 0 [14:38:14]*** Brake cut motor [14:38:15]Read from MH i2c: 01 [14:38:15]MH_I2C_Read... [14:38:15]*** Stop cut motor [14:38:15]*** Cut end [14:38:15]Read from MH i2c: 01 07 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 FF 0F 24 [14:38:15]process_action close_receipt done [14:38:15]requested_data is exist [14:38:15]produce_requested_data [14:38:15]requested_item fm.sn is exist - process it [14:38:15]wFMCommunicate request_size=4 [14:38:15]MH_SAM_APDU [14:38:15]CAPDU: 80 11 00 00 [14:38:15]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 17 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [14:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:15]wFMCommunicate OK [14:38:15]requested_item fd.num is exist - process it [14:38:15]SAM_PROTO_GetFieldsCounters [14:38:15]wFMCommunicate request_size=4 [14:38:15]MH_SAM_APDU [14:38:15]CAPDU: 80 13 00 00 [14:38:15]Write to MH i2c: E2 08 00 0A 07 80 13 00 00 00 00 00 00 8D [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 62 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 62 00 0A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B7 01 00 0E 04 04 00 88 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 72 [14:38:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B7 01 00 0E 04 04 00 88 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 [14:38:15]wFMCommunicate OK [14:38:15]SAM_PROTO_GetFieldsCounters done [14:38:15]requested_item shift.num is exist - process it [14:38:15]requested_item shift.opened is exist - process it [14:38:15]req_shift_opened [14:38:15]FM_GetShiftState [14:38:15]SAM_PROTO_GetShiftState [14:38:15]wFMCommunicate request_size=4 [14:38:15]MH_SAM_APDU [14:38:15]CAPDU: 80 13 01 00 [14:38:15]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 0E 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 AD [14:38:15]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:38:15]wFMCommunicate OK [14:38:15]SAM_PROTO_GetShiftState done [14:38:15]FM_GetShiftState done [14:38:15]req_shift_opened done [14:38:15]requested_item shift.open_date is exist - process it [14:38:15]req_shift_open_date [14:38:15]req_shift_open_date done [14:38:15]produce_requested_data done [14:38:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112556,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:38:15]process_action_free close_receipt [14:38:15]json_value_free [14:38:15]json_value_free done [14:38:15]process_json_proto returns [14:38:15]Send response to host [14:38:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112556,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:38:15]free response buf [14:38:15]execute_script done [14:38:15]execute_script returns [14:38:15]free content buf [14:38:15]Sock 8.Close socket [14:38:15]Sock 8.Thread stoped [14:38:19]OFD Sender: No OFD packet to send [14:38:23]accept exits with 9 [14:38:23]New connection [14:38:23]New thread 3066817892 created [14:38:23]Thread 3066674532 joined [14:38:23]Waiting for new connection... [14:38:23] Sock 9.Parse request [14:38:23]Sock 9.Check first char [14:38:23]Sock 9.First char is OK [14:38:23]request: POST /json_proto HTTP/1.0 [14:38:23]Method: POST [14:38:23]URL: /json_proto [14:38:23]Method is POST - this is cgi request [14:38:23]url: /json_proto [14:38:23]query_string will be loaded in cgi processing [14:38:23]execute_cgi json_proto POST (null) [14:38:23]execute_cgi path=json_proto method=POST [14:38:23]POST find Content-Length [14:38:23]Host: 172.17.59.68:8080 [14:38:23]Content-Length: 805 [14:38:23]Content-Type: application/json [14:38:23] [14:38:23]POST finish read [14:38:23]Found Content-Length = 805 [14:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:23]execute_script... [14: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)321241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:23]POST & json_proto [14:38:23]process_json_proto [14:38:23]json parsed OK: [14:38:23]protocol is kg_v1.0 [14:38:23]action value=close_receipt [14:38:23]process_action close_receipt [14:38:23]cmd_close_receipt [14:38:23]MH_GetDate [14:38:23]Write to MH i2c: F0 00 00 0C 07 02 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: F0 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: F0 09 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: F0 09 00 0C 07 00 5F 33 78 66 BC EC 60 65 E8 [14:38:23]GetLastDocTimeStamp 1719153492 [14:38:23]current date 1719153503 [14:38:23]FM_GetShiftState [14:38:23]SAM_PROTO_GetShiftState [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 13 01 00 [14:38:23]Write to MH i2c: E2 08 00 0D 07 80 13 01 00 00 00 00 00 91 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 0E 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 0E 00 0D 07 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 AF [14:38:23]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:38:23]wFMCommunicate OK [14:38:23]SAM_PROTO_GetShiftState done [14:38:23]FM_GetShiftState done [14:38:23]opened in 1719106490 [14:38:23]opened+sec_in_day 1719192890 [14:38:23]quantity*price = 50065 [14:38:23]sum+1 = 50067 [14:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 158 23.06.2024 14:38 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112557 ФПД: 278099049151471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143823&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112557&fm=278099049151471&tin=02508201610067®Number=0000000000092771&sum=50066 [14:38:24]StoreToDocumentArchive [14:38:24]shift 392 fd 112557 [14:38:24]save to /storage/0392/doc_00112557 [14:38:24]save last doc name /storage/0392/doc_00112557 to /storage/kkm_last_doc_name [14:38:24]save OK [14:38:24]Clear old archive folders... [14:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:24]tlvbuf is 01B74560 [14:38:24]SAM_PROTO_ClearQueue [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 09 00 00 [14:38:24]Write to MH i2c: E2 08 00 1A 07 80 09 00 00 00 00 00 00 93 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]SAM_PROTO_ClearQueue done [14:38:24]KKMCreateOFDPacket [14:38:24]OFDProtocolAddRootSTLVToBuf [14:38:24]FM_MakeSignedData [14:38:24]FM_MakeSignedData [14:38:24]SAM_PROTO_SignData [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 01 02 [14:38:24]Write to MH i2c: E2 08 00 1B 07 80 0D 01 02 00 00 00 00 9B [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]wFMCommunicate request_size=255 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 5F 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B7 01 00 35 04 06 00 FC [14:38:24]Write to MH i2c: E2 02 01 1C 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 5F 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B7 01 00 35 04 06 00 FC 00 00 CB [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]wFMCommunicate request_size=10 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 02 02 05 ED FB 09 7B EF [14:38:24]Write to MH i2c: E2 0D 00 1D 07 80 0D 02 02 05 00 ED FB 09 7B EF 00 00 03 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 03 02 [14:38:24]Write to MH i2c: E2 08 00 1E 07 80 0D 03 02 00 00 00 00 A0 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 0B 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 0B 00 1E 07 00 8D E4 AB 50 96 4C F9 8B 90 00 73 [14:38:24]RAPDU: 8D E4 AB 50 96 4C F9 8B 90 00 [14:38:24]wFMCommunicate OK [14:38:24]SAM_PROTO_SignData done [14:38:24]FM_MakeSignedData done [14:38:24]CreateOFDProtocolMessage [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 11 00 00 [14:38:24]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 17 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [14:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:24]wFMCommunicate OK [14:38:24]CreateOFDProtocolMessage done [14:38:24]OFDSenderStorePacket 112557 [14:38:24]StoreOFDPacket docnum=112557 [14:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DB 04 07 01 6D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 5F 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B7 01 00 35 04 06 00 FC ED FB 09 7B EF 8D E4 AB 50 96 4C F9 8B [14:38:24]CheckFolder [14:38:24]dirname=/storage/ofd_packets [14:38:24]CheckFolder done [14:38:24]ProducePacketName [14:38:24]name=ofd_packets/00112557 [14:38:24]NVStorageSaveData ofd_packets/00112557 [14:38:24]File name is /storage/ofd_packets/00112557 [14:38:24]Write 301 bytes [14:38:24]NVStorageSaveData done [14:38:24]OFDSenderStorePacket done [14:38:24]KKMCreateOFDPacket done [14:38:24]NVStorageSaveData kkm_last_timestamp [14:38:24]File name is /storage/kkm_last_timestamp [14:38:24]Write 4 bytes [14:38:24]NVStorageSaveData done [14:38:24]ExternCall_PrintAddStr [14:38:24]wPrintStart [14:38:24]Write to MH i2c: 01 00 00 20 07 27 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [14:38:24]RasterBufferAndPrint [14:38:24]line Счет N : (1)321241 [14:38:24]line ИНН: 02508201610067 [14:38:24]line Контрольно-Кассовый Чек [14:38:24]line ПРОДАЖА [14:38:24]line ТРК (МРК, ГНК) : 11 [14:38:24]line Товар: 2710124130 [14:38:24]line Аи-92-К-5 [14:38:24]line 7.540 * 66.40 [14:38:24]line = 500.66 [14:38:24]line НДС 12% НСП 1% [14:38:24]line > о реализуемом товаре [14:38:24]line ИТОГО: 500.66 [14:38:24]line НСП 1% : 4.43 [14:38:24]line НДС 12% : 53.17 [14:38:24]line Наличными: 0.00 [14:38:24]line Безнал.: 500.66 [14:38:24]line Место: АЗС № 65 "Партнер Нефть" [14:38:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:38:24]line СНО: Общий режим [14:38:24]line Чек 158 23.06.2024 14:38 [14:38:24]line Смена: 392 ФФД: 1.0 [14:38:24]line ЗНМ: 0300000198 [14:38:24]line РНМ: 0000000000092771 [14:38:24]line Версия ККМ: 001 [14:38:24]line Платежная система: О! деньги [14:38:24]line ФМ: 0000000000875083 [14:38:24]line ФД: 112557 [14:38:24]line ФПД: 278099049151471 [14:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T143823&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112557&fm=278099049151471&tin=02508201610067®Number=0000000000092771&sum=50066 [14:38:25]OFD Sender: Processing packet 112557 [packets to send 38, broken 37] [14:38:25]ProducePacketName [14:38:25]name=ofd_packets/00112557 [14:38:25]OFD Sender: To server: pG, [14:38:25]CommunicateWithHost lk.salyk.kg:30040 [14:38:25]ConnectInit lk.salyk.kg [14:38:25]written 0, free lines is 4095 [14:38:25]Connected sock=10 [14:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DB 04 07 01 6D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 5F 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B7 01 00 35 04 06 00 FC ED FB 09 7B EF 8D E4 AB 50 96 4C F9 8B [14:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1C 3F 47 00 21 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B7 01 00 F4 03 04 00 4A CA 77 66 B6 04 01 00 00 04 F7 EC 8B 10 26 05 02 [14:38:25]CommunicateWithHost err = 0 [14:38:25]CheckOFDResponse [14:38:25]1017 (14) - 77093643461234 [14:38:25]1041 (16) - 0000000000875083 [14:38:25]1040 (4) - 112557 [14:38:25]1012 (4) - 23.06.2024 07:10 [14:38:25]1206 (1) - 0 [14:38:25]OFD Sender: Remove packet 112557 [14:38:25]ProducePacketName [14:38:25]name=ofd_packets/00112557 [14:38:25]NVStorageDeleteData [14:38:25]Write to MH i2c: 01 00 00 4A 07 51 [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 4A 07 00 00 00 00 00 FC 0C 60 [14:38:25]RasterBufferAndPrint [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]written 0, free lines is 3330 [14:38:25]MH_Cut [14:38:25]Write to MH i2c: D1 01 00 51 07 01 2A [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 01 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 01 00 51 07 00 29 [14:38:25]Write to MH i2c: 01 00 00 52 07 59 [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]OFD Sender: No OFD packet to send [14:38:26]*** Cut start [14:38:26]*** Partial cut [14:38:26]*** CUTSNS_PIN = 1 [14:38:26]*** CUTSNS_PIN = 0 [14:38:26]*** Brake cut motor [14:38:26]Read from MH i2c: 01 [14:38:26]MH_I2C_Read... [14:38:26]*** Stop cut motor [14:38:26]*** Cut end [14:38:26]Read from MH i2c: 01 07 00 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 FF 0F 6E [14:38:26]process_action close_receipt done [14:38:26]requested_data is exist [14:38:26]produce_requested_data [14:38:26]requested_item fm.sn is exist - process it [14:38:26]wFMCommunicate request_size=4 [14:38:26]MH_SAM_APDU [14:38:26]CAPDU: 80 11 00 00 [14:38:26]Write to MH i2c: E2 08 00 53 07 80 11 00 00 00 00 00 00 D4 [14:38:26]Write i2c OK [14:38:26]MH_I2C_Read... [14:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:26]Read from MH i2c: E2 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 17 00 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 17 00 53 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [14:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:26]wFMCommunicate OK [14:38:26]requested_item fd.num is exist - process it [14:38:26]SAM_PROTO_GetFieldsCounters [14:38:26]wFMCommunicate request_size=4 [14:38:26]MH_SAM_APDU [14:38:26]CAPDU: 80 13 00 00 [14:38:26]Write to MH i2c: E2 08 00 54 07 80 13 00 00 00 00 00 00 D7 [14:38:26]Write i2c OK [14:38:26]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 62 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 62 00 54 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B7 01 00 0E 04 04 00 88 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 C0 [14:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B7 01 00 0E 04 04 00 88 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 [14:38:27]wFMCommunicate OK [14:38:27]SAM_PROTO_GetFieldsCounters done [14:38:27]requested_item shift.num is exist - process it [14:38:27]requested_item shift.opened is exist - process it [14:38:27]req_shift_opened [14:38:27]FM_GetShiftState [14:38:27]SAM_PROTO_GetShiftState [14:38:27]wFMCommunicate request_size=4 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 13 01 00 [14:38:27]Write to MH i2c: E2 08 00 55 07 80 13 01 00 00 00 00 00 D9 [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 0E 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 0E 00 55 07 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F7 [14:38:27]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:38:27]wFMCommunicate OK [14:38:27]SAM_PROTO_GetShiftState done [14:38:27]FM_GetShiftState done [14:38:27]req_shift_opened done [14:38:27]requested_item shift.open_date is exist - process it [14:38:27]req_shift_open_date [14:38:27]req_shift_open_date done [14:38:27]produce_requested_data done [14:38:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112557,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:38:27]process_action_free close_receipt [14:38:27]json_value_free [14:38:27]json_value_free done [14:38:27]process_json_proto returns [14:38:27]Send response to host [14:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112557,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:38:27]free response buf [14:38:27]execute_script done [14:38:27]execute_script returns [14:38:27]free content buf [14:38:27]Sock 9.Close socket [14:38:27]Sock 9.Thread stoped [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:50]accept exits with 8 [14:40:50]New connection [14:40:50]New thread 3066674532 created [14:40:50]Thread 3066817892 joined [14:40:50]Waiting for new connection... [14:40:50] Sock 8.Parse request [14:40:50]Sock 8.Check first char [14:40:50]Sock 8.First char is OK [14:40:50]request: POST /json_proto HTTP/1.0 [14:40:50]Method: POST [14:40:50]URL: /json_proto [14:40:50]Method is POST - this is cgi request [14:40:50]url: /json_proto [14:40:50]query_string will be loaded in cgi processing [14:40:50]execute_cgi json_proto POST (null) [14:40:50]execute_cgi path=json_proto method=POST [14:40:50]POST find Content-Length [14:40:50]Host: 172.17.59.68:8080 [14:40:50]Content-Length: 677 [14:40:50]Content-Type: application/json [14:40:50] [14:40:50]POST finish read [14:40:50]Found Content-Length = 677 [14:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.640, "sum" : 640.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:50]execute_script... [14: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)321243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.640, "sum" : 640.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:50]POST & json_proto [14:40:50]process_json_proto [14:40:50]json parsed OK: [14:40:50]protocol is kg_v1.0 [14:40:50]action value=close_receipt [14:40:50]process_action close_receipt [14:40:50]cmd_close_receipt [14:40:50]MH_GetDate [14:40:50]Write to MH i2c: F0 00 00 56 07 4C [14:40:50]Write i2c OK [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 09 00 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 09 00 56 07 00 F3 33 78 66 BC EC 60 65 C6 [14:40:50]GetLastDocTimeStamp 1719153503 [14:40:50]current date 1719153651 [14:40:50]FM_GetShiftState [14:40:50]SAM_PROTO_GetShiftState [14:40:50]wFMCommunicate request_size=4 [14:40:50]MH_SAM_APDU [14:40:50]CAPDU: 80 13 01 00 [14:40:50]Write to MH i2c: E2 08 00 57 07 80 13 01 00 00 00 00 00 DB [14:40:50]Write i2c OK [14:40:50]MH_I2C_Read... [14:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:50]Read from MH i2c: E2 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: E2 0E 00 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: E2 0E 00 57 07 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F9 [14:40:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:40:50]wFMCommunicate OK [14:40:50]SAM_PROTO_GetShiftState done [14:40:50]FM_GetShiftState done [14:40:50]opened in 1719106490 [14:40:50]opened+sec_in_day 1719192890 [14:40:50]quantity*price = 64009 [14:40:50]sum+1 = 64011 [14:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 159 23.06.2024 14:40 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112558 ФПД: 34690904044974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144051&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112558&fm=34690904044974&tin=02508201610067®Number=0000000000092771&sum=64000 [14:40:51]StoreToDocumentArchive [14:40:51]shift 392 fd 112558 [14:40:51]save to /storage/0392/doc_00112558 [14:40:51]save last doc name /storage/0392/doc_00112558 to /storage/kkm_last_doc_name [14:40:51]save OK [14:40:51]Clear old archive folders... [14:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:51]tlvbuf is 01BC5970 [14:40:51]SAM_PROTO_ClearQueue [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 09 00 00 [14:40:51]Write to MH i2c: E2 08 00 64 07 80 09 00 00 00 00 00 00 DD [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]SAM_PROTO_ClearQueue done [14:40:51]KKMCreateOFDPacket [14:40:51]OFDProtocolAddRootSTLVToBuf [14:40:51]FM_MakeSignedData [14:40:51]FM_MakeSignedData [14:40:51]SAM_PROTO_SignData [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 01 02 [14:40:51]Write to MH i2c: E2 08 00 65 07 80 0D 01 02 00 00 00 00 E5 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]wFMCommunicate request_size=255 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 F3 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B7 01 00 35 04 06 00 1F [14:40:51]Write to MH i2c: E2 02 01 66 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 F3 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B7 01 00 35 04 06 00 1F 00 00 4D [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]wFMCommunicate request_size=10 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 02 02 05 8D 1B 03 35 AE [14:40:51]Write to MH i2c: E2 0D 00 67 07 80 0D 02 02 05 00 8D 1B 03 35 AE 00 00 80 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 03 02 [14:40:51]Write to MH i2c: E2 08 00 68 07 80 0D 03 02 00 00 00 00 EA [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 0B 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 0B 00 68 07 00 3E C7 81 89 10 41 60 05 90 00 B0 [14:40:51]RAPDU: 3E C7 81 89 10 41 60 05 90 00 [14:40:51]wFMCommunicate OK [14:40:51]SAM_PROTO_SignData done [14:40:51]FM_MakeSignedData done [14:40:51]CreateOFDProtocolMessage [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 11 00 00 [14:40:51]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 17 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3C [14:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:40:51]wFMCommunicate OK [14:40:51]CreateOFDProtocolMessage done [14:40:51]OFDSenderStorePacket 112558 [14:40:51]StoreOFDPacket docnum=112558 [14:40:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B3 63 07 01 F0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 F3 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B7 01 00 35 04 06 00 1F 8D 1B 03 35 AE 3E C7 81 89 10 41 60 05 [14:40:51]CheckFolder [14:40:51]dirname=/storage/ofd_packets [14:40:51]CheckFolder done [14:40:51]ProducePacketName [14:40:51]name=ofd_packets/00112558 [14:40:51]NVStorageSaveData ofd_packets/00112558 [14:40:51]File name is /storage/ofd_packets/00112558 [14:40:51]Write 301 bytes [14:40:51]NVStorageSaveData done [14:40:51]OFDSenderStorePacket done [14:40:51]KKMCreateOFDPacket done [14:40:51]NVStorageSaveData kkm_last_timestamp [14:40:51]File name is /storage/kkm_last_timestamp [14:40:51]Write 4 bytes [14:40:51]NVStorageSaveData done [14:40:51]OFD Sender: Processing packet 112558 [packets to send 38, broken 37] [14:40:51]ProducePacketName [14:40:51]name=ofd_packets/00112558 [14:40:51]OFD Sender: To server: pG, [14:40:51]CommunicateWithHost lk.salyk.kg:30040 [14:40:51]ConnectInit lk.salyk.kg [14:40:51]ExternCall_PrintAddStr [14:40:51]wPrintStart [14:40:51]Write to MH i2c: 01 00 00 6A 07 71 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [14:40:51]RasterBufferAndPrint [14:40:51]line Счет N : (1)321243 [14:40:51]line ИНН: 02508201610067 [14:40:51]line Контрольно-Кассовый Чек [14:40:51]line ПРОДАЖА [14:40:51]line ТРК (МРК, ГНК) : 11 [14:40:51]line Товар: 2710124130 [14:40:51]line Аи-92-К-5 [14:40:51]line 9.640 * 66.40 [14:40:51]line = 640.10 [14:40:51]line НДС 12% НСП 1% [14:40:51]line > о реализуемом товаре [14:40:51]line ОКРУГЛЕНИЕ: -0.10 [14:40:51]line ИТОГО: 640.00 [14:40:51]line Внесено: 640.00 [14:40:51]line СДАЧА: 0.00 [14:40:51]line НСП 1% : 5.66 [14:40:51]line НДС 12% : 67.97 [14:40:51]line Наличными: 640.00 [14:40:51]line Безнал.: 0.00 [14:40:51]line Место: АЗС № 65 "Партнер Нефть" [14:40:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:40:51]line СНО: Общий режим [14:40:51]line Чек 159 23.06.2024 14:40 [14:40:51]line Смена: 392 ФФД: 1.0 [14:40:51]line ЗНМ: 0300000198 [14:40:51]line РНМ: 0000000000092771 [14:40:51]line Версия ККМ: 001 [14:40:51]line ФМ: 0000000000875083 [14:40:51]line ФД: 112558 [14:40:51]line ФПД: 34690904044974 [14:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144051&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112558&fm=34690904044974&tin=02508201610067®Number=0000000000092771&sum=64000 [14:40:52]Connected sock=11 [14:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B3 63 07 01 F0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 F3 33 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B7 01 00 35 04 06 00 1F 8D 1B 03 35 AE 3E C7 81 89 10 41 60 05 [14:40:52]written 0, free lines is 4095 [14:40:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AE E4 47 00 E3 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B7 01 00 F4 03 04 00 DD CA 77 66 B6 04 01 00 00 90 B6 47 B2 FB FA 54 B3 [14:40:52]CommunicateWithHost err = 0 [14:40:52]CheckOFDResponse [14:40:52]1017 (14) - 77093643461234 [14:40:52]1041 (16) - 0000000000875083 [14:40:52]1040 (4) - 112558 [14:40:52]1012 (4) - 23.06.2024 07:12 [14:40:52]1206 (1) - 0 [14:40:52]OFD Sender: Remove packet 112558 [14:40:52]ProducePacketName [14:40:52]name=ofd_packets/00112558 [14:40:52]NVStorageDeleteData [14:40:52]Write to MH i2c: 01 00 00 95 07 9C [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 07 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 E1 0C 90 [14:40:52]RasterBufferAndPrint [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]written 0, free lines is 3303 [14:40:52]MH_Cut [14:40:52]Write to MH i2c: D1 01 00 9C 07 01 75 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 01 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 01 00 9C 07 00 74 [14:40:52]Write to MH i2c: 01 00 00 9D 07 A4 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]OFD Sender: No OFD packet to send [14:40:53]*** Cut start [14:40:53]*** Partial cut [14:40:53]*** CUTSNS_PIN = 1 [14:40:53]*** CUTSNS_PIN = 0 [14:40:53]*** Brake cut motor [14:40:54]Read from MH i2c: 01 [14:40:54]MH_I2C_Read... [14:40:54]*** Stop cut motor [14:40:54]*** Cut end [14:40:54]Read from MH i2c: 01 07 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 FF 0F B9 [14:40:54]process_action close_receipt done [14:40:54]requested_data is exist [14:40:54]produce_requested_data [14:40:54]requested_item fm.sn is exist - process it [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 11 00 00 [14:40:54]Write to MH i2c: E2 08 00 9E 07 80 11 00 00 00 00 00 00 1F [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 17 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 17 00 9E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [14:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:40:54]wFMCommunicate OK [14:40:54]requested_item fd.num is exist - process it [14:40:54]SAM_PROTO_GetFieldsCounters [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 13 00 00 [14:40:54]Write to MH i2c: E2 08 00 9F 07 80 13 00 00 00 00 00 00 22 [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 62 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 62 00 9F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B7 01 00 0E 04 04 00 88 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 0F [14:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B7 01 00 0E 04 04 00 88 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 [14:40:54]wFMCommunicate OK [14:40:54]SAM_PROTO_GetFieldsCounters done [14:40:54]requested_item shift.num is exist - process it [14:40:54]requested_item shift.opened is exist - process it [14:40:54]req_shift_opened [14:40:54]FM_GetShiftState [14:40:54]SAM_PROTO_GetShiftState [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 13 01 00 [14:40:54]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:54]Read from MH i2c: E2 0E 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 42 [14:40:54]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:40:54]wFMCommunicate OK [14:40:54]SAM_PROTO_GetShiftState done [14:40:54]FM_GetShiftState done [14:40:54]req_shift_opened done [14:40:54]requested_item shift.open_date is exist - process it [14:40:54]req_shift_open_date [14:40:54]req_shift_open_date done [14:40:54]produce_requested_data done [14:40:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112558,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:40:54]process_action_free close_receipt [14:40:54]json_value_free [14:40:54]json_value_free done [14:40:54]process_json_proto returns [14:40:54]Send response to host [14:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112558,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:40:54]free response buf [14:40:54]execute_script done [14:40:54]execute_script returns [14:40:54]free content buf [14:40:54]Sock 8.Close socket [14:40:54]Sock 8.Thread stoped [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:37]accept exits with 9 [14:41:37]New connection [14:41:37]New thread 3066817892 created [14:41:37]Thread 3066674532 joined [14:41:37]Waiting for new connection... [14:41:37] Sock 9.Parse request [14:41:37]Sock 9.Check first char [14:41:37]Sock 9.First char is OK [14:41:37]request: POST /json_proto HTTP/1.0 [14:41:37]Method: POST [14:41:37]URL: /json_proto [14:41:37]Method is POST - this is cgi request [14:41:37]url: /json_proto [14:41:37]query_string will be loaded in cgi processing [14:41:37]execute_cgi json_proto POST (null) [14:41:37]execute_cgi path=json_proto method=POST [14:41:37]POST find Content-Length [14:41:37]Host: 172.17.59.68:8080 [14:41:37]Content-Length: 679 [14:41:37]Content-Type: application/json [14:41:37] [14:41:37]POST finish read [14:41:37]Found Content-Length = 679 [14:41:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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:41:37]execute_script... [14:41:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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:41:37]POST & json_proto [14:41:37]process_json_proto [14:41:37]json parsed OK: [14:41:37]protocol is kg_v1.0 [14:41:37]action value=close_receipt [14:41:37]process_action close_receipt [14:41:37]cmd_close_receipt [14:41:37]MH_GetDate [14:41:37]Write to MH i2c: F0 00 00 A1 07 97 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: F0 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: F0 09 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: F0 09 00 A1 07 00 22 34 78 66 BC EC 60 65 41 [14:41:37]GetLastDocTimeStamp 1719153651 [14:41:37]current date 1719153698 [14:41:37]FM_GetShiftState [14:41:37]SAM_PROTO_GetShiftState [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 13 01 00 [14:41:37]Write to MH i2c: E2 08 00 A2 07 80 13 01 00 00 00 00 00 26 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 0E 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 0E 00 A2 07 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 44 [14:41:37]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:41:37]wFMCommunicate OK [14:41:37]SAM_PROTO_GetShiftState done [14:41:37]FM_GetShiftState done [14:41:37]opened in 1719106490 [14:41:37]opened+sec_in_day 1719192890 [14:41:37]quantity*price = 300056 [14:41:37]sum+1 = 300057 [14:41:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 160 23.06.2024 14:41 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112559 ФПД: 59428339437520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144138&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112559&fm=59428339437520&tin=02508201610067®Number=0000000000092771&sum=300000 [14:41:39]StoreToDocumentArchive [14:41:39]shift 392 fd 112559 [14:41:39]save to /storage/0392/doc_00112559 [14:41:39]save last doc name /storage/0392/doc_00112559 to /storage/kkm_last_doc_name [14:41:39]save OK [14:41:39]Clear old archive folders... [14:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:39]tlvbuf is 01B5AE30 [14:41:39]SAM_PROTO_ClearQueue [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 09 00 00 [14:41:39]Write to MH i2c: E2 08 00 AF 07 80 09 00 00 00 00 00 00 28 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [14:41:39]RAPDU: 90 00 [14:41:39]wFMCommunicate OK [14:41:39]SAM_PROTO_ClearQueue done [14:41:39]KKMCreateOFDPacket [14:41:39]OFDProtocolAddRootSTLVToBuf [14:41:39]FM_MakeSignedData [14:41:39]FM_MakeSignedData [14:41:39]SAM_PROTO_SignData [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 0D 01 02 [14:41:39]Write to MH i2c: E2 08 00 B0 07 80 0D 01 02 00 00 00 00 30 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [14:41:39]RAPDU: 90 00 [14:41:39]wFMCommunicate OK [14:41:39]wFMCommunicate request_size=255 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 A0 00 00 00 F4 03 04 00 22 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B7 01 00 35 04 06 00 36 0C BD 0F [14:41:39]Write to MH i2c: E2 02 01 B1 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 A0 00 00 00 F4 03 04 00 22 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B7 01 00 35 04 06 00 36 0C BD 0F 00 00 58 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [14:41:39]RAPDU: 90 00 [14:41:39]wFMCommunicate OK [14:41:39]wFMCommunicate request_size=7 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 0D 02 02 02 CF D0 [14:41:39]Write to MH i2c: E2 0A 00 B2 07 80 0D 02 02 02 00 CF D0 00 00 D6 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [14:41:39]RAPDU: 90 00 [14:41:39]wFMCommunicate OK [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 0D 03 02 [14:41:39]Write to MH i2c: E2 08 00 B3 07 80 0D 03 02 00 00 00 00 35 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 0B 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 0B 00 B3 07 00 00 22 62 1C DE 6F 59 93 90 00 0F [14:41:39]RAPDU: 00 22 62 1C DE 6F 59 93 90 00 [14:41:39]wFMCommunicate OK [14:41:39]SAM_PROTO_SignData done [14:41:39]FM_MakeSignedData done [14:41:39]CreateOFDProtocolMessage [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 11 00 00 [14:41:39]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 17 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 87 [14:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:41:39]wFMCommunicate OK [14:41:39]CreateOFDProtocolMessage done [14:41:39]OFDSenderStorePacket 112559 [14:41:39]StoreOFDPacket docnum=112559 [14:41:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 16 2B 04 01 45 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 A0 00 00 00 F4 03 04 00 22 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B7 01 00 35 04 06 00 36 0C BD 0F CF D0 00 22 62 1C DE 6F 59 93 [14:41:39]CheckFolder [14:41:39]dirname=/storage/ofd_packets [14:41:39]CheckFolder done [14:41:39]ProducePacketName [14:41:39]name=ofd_packets/00112559 [14:41:39]NVStorageSaveData ofd_packets/00112559 [14:41:39]File name is /storage/ofd_packets/00112559 [14:41:39]Write 298 bytes [14:41:39]NVStorageSaveData done [14:41:39]OFDSenderStorePacket done [14:41:39]KKMCreateOFDPacket done [14:41:39]NVStorageSaveData kkm_last_timestamp [14:41:39]File name is /storage/kkm_last_timestamp [14:41:39]Write 4 bytes [14:41:39]NVStorageSaveData done [14:41:39]ExternCall_PrintAddStr [14:41:39]wPrintStart [14:41:39]Write to MH i2c: 01 00 00 B5 07 BC [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [14:41:39]RasterBufferAndPrint [14:41:39]line Счет N : (1)321242 [14:41:39]line ИНН: 02508201610067 [14:41:39]line Контрольно-Кассовый Чек [14:41:39]line ПРОДАЖА [14:41:39]line ТРК (МРК, ГНК) : 22 [14:41:39]line Товар: 2710194210 [14:41:39]line ДТ-К-5 [14:41:39]line 41.160 * 72.90 [14:41:39]line = 3000.56 [14:41:39]line НДС 12% НСП 1% [14:41:39]line > о реализуемом товаре [14:41:39]line ОКРУГЛЕНИЕ: -0.56 [14:41:39]line ИТОГО: 3000.00 [14:41:39]line Внесено: 3000.00 [14:41:39]line СДАЧА: 0.00 [14:41:39]line НСП 1% : 26.55 [14:41:39]line НДС 12% : 318.64 [14:41:39]line Наличными: 3000.00 [14:41:39]line Безнал.: 0.00 [14:41:39]line Место: АЗС № 65 "Партнер Нефть" [14:41:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:41:39]line СНО: Общий режим [14:41:39]line Чек 160 23.06.2024 14:41 [14:41:39]line Смена: 392 ФФД: 1.0 [14:41:39]line ЗНМ: 0300000198 [14:41:39]line РНМ: 0000000000092771 [14:41:39]line Версия ККМ: 001 [14:41:39]line ФМ: 0000000000875083 [14:41:39]line ФД: 112559 [14:41:39]line ФПД: 59428339437520 [14:41:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144138&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112559&fm=59428339437520&tin=02508201610067®Number=0000000000092771&sum=300000 [14:41:39]OFD Sender: Processing packet 112559 [packets to send 38, broken 37] [14:41:39]ProducePacketName [14:41:39]name=ofd_packets/00112559 [14:41:39]OFD Sender: To server: pG, [14:41:39]CommunicateWithHost lk.salyk.kg:30040 [14:41:39]ConnectInit lk.salyk.kg [14:41:39]written 0, free lines is 4095 [14:41:40]Connected sock=10 [14:41:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 16 2B 04 01 45 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 A0 00 00 00 F4 03 04 00 22 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B7 01 00 35 04 06 00 36 0C BD 0F CF D0 00 22 62 1C DE 6F 59 93 [14:41:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B4 67 47 00 3A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B7 01 00 F4 03 04 00 0D CB 77 66 B6 04 01 00 00 48 1C 9C D3 46 C2 CF 38 [14:41:40]CommunicateWithHost err = 0 [14:41:40]CheckOFDResponse [14:41:40]1017 (14) - 77093643461234 [14:41:40]1041 (16) - 0000000000875083 [14:41:40]1040 (4) - 112559 [14:41:40]1012 (4) - 23.06.2024 07:13 [14:41:40]1206 (1) - 0 [14:41:40]OFD Sender: Remove packet 112559 [14:41:40]ProducePacketName [14:41:40]name=ofd_packets/00112559 [14:41:40]NVStorageDeleteData [14:41:40]Write to MH i2c: 01 00 00 E0 07 E7 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: 01 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: 01 07 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 EE 0C E8 [14:41:40]RasterBufferAndPrint [14:41:40]line [14:41:40]line [14:41:40]line [14:41:40]line [14:41:40]line [14:41:40]written 0, free lines is 3316 [14:41:40]MH_Cut [14:41:40]Write to MH i2c: D1 01 00 E7 07 01 C0 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: D1 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: D1 01 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: D1 01 00 E7 07 00 BF [14:41:40]Write to MH i2c: 01 00 00 E8 07 EF [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]OFD Sender: No OFD packet to send [14:41:41]*** Cut start [14:41:41]*** Partial cut [14:41:41]*** CUTSNS_PIN = 1 [14:41:41]*** CUTSNS_PIN = 0 [14:41:41]*** Brake cut motor [14:41:41]Read from MH i2c: 01 [14:41:41]MH_I2C_Read... [14:41:41]*** Stop cut motor [14:41:41]*** Cut end [14:41:41]Read from MH i2c: 01 07 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 FF 0F 04 [14:41:41]process_action close_receipt done [14:41:41]requested_data is exist [14:41:41]produce_requested_data [14:41:41]requested_item fm.sn is exist - process it [14:41:41]wFMCommunicate request_size=4 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 11 00 00 [14:41:41]Write to MH i2c: E2 08 00 E9 07 80 11 00 00 00 00 00 00 6A [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 17 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 17 00 E9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [14:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:41:41]wFMCommunicate OK [14:41:41]requested_item fd.num is exist - process it [14:41:41]SAM_PROTO_GetFieldsCounters [14:41:41]wFMCommunicate request_size=4 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 13 00 00 [14:41:41]Write to MH i2c: E2 08 00 EA 07 80 13 00 00 00 00 00 00 6D [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 62 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 62 00 EA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B7 01 00 0E 04 04 00 88 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 5E [14:41:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B7 01 00 0E 04 04 00 88 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 [14:41:41]wFMCommunicate OK [14:41:41]SAM_PROTO_GetFieldsCounters done [14:41:41]requested_item shift.num is exist - process it [14:41:41]requested_item shift.opened is exist - process it [14:41:41]req_shift_opened [14:41:41]FM_GetShiftState [14:41:41]SAM_PROTO_GetShiftState [14:41:41]wFMCommunicate request_size=4 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 13 01 00 [14:41:41]Write to MH i2c: E2 08 00 EB 07 80 13 01 00 00 00 00 00 6F [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 0E 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 0E 00 EB 07 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 8D [14:41:41]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:41:41]wFMCommunicate OK [14:41:41]SAM_PROTO_GetShiftState done [14:41:41]FM_GetShiftState done [14:41:41]req_shift_opened done [14:41:41]requested_item shift.open_date is exist - process it [14:41:41]req_shift_open_date [14:41:41]req_shift_open_date done [14:41:41]produce_requested_data done [14:41:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112559,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:41:41]process_action_free close_receipt [14:41:41]json_value_free [14:41:41]json_value_free done [14:41:41]process_json_proto returns [14:41:41]Send response to host [14:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112559,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:41:41]free response buf [14:41:41]execute_script done [14:41:41]execute_script returns [14:41:41]free content buf [14:41:41]Sock 9.Close socket [14:41:41]Sock 9.Thread stoped [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:06]accept exits with 8 [14:42:06]New connection [14:42:06]New thread 3066674532 created [14:42:06]Thread 3066817892 joined [14:42:06]Waiting for new connection... [14:42:06] Sock 8.Parse request [14:42:06]Sock 8.Check first char [14:42:06]Sock 8.First char is OK [14:42:06]request: POST /json_proto HTTP/1.0 [14:42:06]Method: POST [14:42:06]URL: /json_proto [14:42:06]Method is POST - this is cgi request [14:42:06]url: /json_proto [14:42:06]query_string will be loaded in cgi processing [14:42:06]execute_cgi json_proto POST (null) [14:42:06]execute_cgi path=json_proto method=POST [14:42:06]POST find Content-Length [14:42:06]Host: 172.17.59.68:8080 [14:42:06]Content-Length: 677 [14:42:06]Content-Type: application/json [14:42:06] [14:42:06]POST finish read [14:42:06]Found Content-Length = 677 [14:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:06]execute_script... [14:42: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)321244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:06]POST & json_proto [14:42:06]process_json_proto [14:42:06]json parsed OK: [14:42:06]protocol is kg_v1.0 [14:42:06]action value=close_receipt [14:42:06]process_action close_receipt [14:42:06]cmd_close_receipt [14:42:06]MH_GetDate [14:42:06]Write to MH i2c: F0 00 00 EC 07 E2 [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: F0 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: F0 09 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: F0 09 00 EC 07 00 3F 34 78 66 BC EC 60 65 A9 [14:42:06]GetLastDocTimeStamp 1719153698 [14:42:06]current date 1719153727 [14:42:06]FM_GetShiftState [14:42:06]SAM_PROTO_GetShiftState [14:42:06]wFMCommunicate request_size=4 [14:42:06]MH_SAM_APDU [14:42:06]CAPDU: 80 13 01 00 [14:42:06]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:06]Read from MH i2c: E2 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 0E 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 8F [14:42:06]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:42:06]wFMCommunicate OK [14:42:06]SAM_PROTO_GetShiftState done [14:42:06]FM_GetShiftState done [14:42:06]opened in 1719106490 [14:42:06]opened+sec_in_day 1719192890 [14:42:06]quantity*price = 60025 [14:42:06]sum+1 = 60027 [14:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 161 23.06.2024 14:42 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112560 ФПД: 206834916744026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144207&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112560&fm=206834916744026&tin=02508201610067®Number=0000000000092771&sum=60000 [14:42:08]StoreToDocumentArchive [14:42:08]shift 392 fd 112560 [14:42:08]save to /storage/0392/doc_00112560 [14:42:08]save last doc name /storage/0392/doc_00112560 to /storage/kkm_last_doc_name [14:42:08]save OK [14:42:08]Clear old archive folders... [14:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:08]tlvbuf is 01B7CC80 [14:42:08]SAM_PROTO_ClearQueue [14:42:08]wFMCommunicate request_size=4 [14:42:08]MH_SAM_APDU [14:42:08]CAPDU: 80 09 00 00 [14:42:08]Write to MH i2c: E2 08 00 FA 07 80 09 00 00 00 00 00 00 73 [14:42:08]Write i2c OK [14:42:08]MH_I2C_Read... [14:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:08]Read from MH i2c: E2 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 03 00 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [14:42:08]RAPDU: 90 00 [14:42:08]wFMCommunicate OK [14:42:08]SAM_PROTO_ClearQueue done [14:42:08]KKMCreateOFDPacket [14:42:08]OFDProtocolAddRootSTLVToBuf [14:42:08]FM_MakeSignedData [14:42:08]FM_MakeSignedData [14:42:08]SAM_PROTO_SignData [14:42:08]wFMCommunicate request_size=4 [14:42:08]MH_SAM_APDU [14:42:08]CAPDU: 80 0D 01 02 [14:42:08]Write to MH i2c: E2 08 00 FB 07 80 0D 01 02 00 00 00 00 7B [14:42:08]Write i2c OK [14:42:08]MH_I2C_Read... [14:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:08]Read from MH i2c: E2 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 03 00 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [14:42:08]RAPDU: 90 00 [14:42:08]wFMCommunicate OK [14:42:08]wFMCommunicate request_size=255 [14:42:08]MH_SAM_APDU [14:42:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 A1 00 00 00 F4 03 04 00 3F 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B7 01 00 35 04 06 00 BC [14:42:08]Write to MH i2c: E2 02 01 FC 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 A1 00 00 00 F4 03 04 00 3F 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B7 01 00 35 04 06 00 BC 00 00 AB [14:42:08]Write i2c OK [14:42:08]MH_I2C_Read... [14:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:08]Read from MH i2c: E2 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 03 00 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [14:42:08]RAPDU: 90 00 [14:42:08]wFMCommunicate OK [14:42:08]wFMCommunicate request_size=10 [14:42:08]MH_SAM_APDU [14:42:08]CAPDU: 80 0D 02 02 05 1D 81 BD 5B 5A [14:42:08]Write to MH i2c: E2 0D 00 FD 07 80 0D 02 02 05 00 1D 81 BD 5B 5A 00 00 98 [14:42:08]Write i2c OK [14:42:08]MH_I2C_Read... [14:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:08]Read from MH i2c: E2 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 03 00 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [14:42:08]RAPDU: 90 00 [14:42:08]wFMCommunicate OK [14:42:08]wFMCommunicate request_size=4 [14:42:08]MH_SAM_APDU [14:42:08]CAPDU: 80 0D 03 02 [14:42:08]Write to MH i2c: E2 08 00 FE 07 80 0D 03 02 00 00 00 00 80 [14:42:08]Write i2c OK [14:42:08]MH_I2C_Read... [14:42:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:08]Read from MH i2c: E2 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 0B 00 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 0B 00 FE 07 00 51 E1 52 58 95 31 F4 50 90 00 67 [14:42:08]RAPDU: 51 E1 52 58 95 31 F4 50 90 00 [14:42:08]wFMCommunicate OK [14:42:08]SAM_PROTO_SignData done [14:42:08]FM_MakeSignedData done [14:42:08]CreateOFDProtocolMessage [14:42:08]wFMCommunicate request_size=4 [14:42:08]MH_SAM_APDU [14:42:08]CAPDU: 80 11 00 00 [14:42:08]Write to MH i2c: E2 08 00 FF 07 80 11 00 00 00 00 00 00 80 [14:42:08]Write i2c OK [14:42:08]MH_I2C_Read... [14:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:08]Read from MH i2c: E2 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 17 00 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: E2 17 00 FF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [14:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:42:08]wFMCommunicate OK [14:42:08]CreateOFDProtocolMessage done [14:42:08]OFDSenderStorePacket 112560 [14:42:08]StoreOFDPacket docnum=112560 [14:42:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB 59 07 01 31 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 A1 00 00 00 F4 03 04 00 3F 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B7 01 00 35 04 06 00 BC 1D 81 BD 5B 5A 51 E1 52 58 95 31 F4 50 [14:42:08]CheckFolder [14:42:08]dirname=/storage/ofd_packets [14:42:08]CheckFolder done [14:42:08]ProducePacketName [14:42:08]name=ofd_packets/00112560 [14:42:08]NVStorageSaveData ofd_packets/00112560 [14:42:08]File name is /storage/ofd_packets/00112560 [14:42:08]Write 301 bytes [14:42:08]NVStorageSaveData done [14:42:08]OFDSenderStorePacket done [14:42:08]KKMCreateOFDPacket done [14:42:08]NVStorageSaveData kkm_last_timestamp [14:42:08]File name is /storage/kkm_last_timestamp [14:42:08]Write 4 bytes [14:42:08]NVStorageSaveData done [14:42:08]ExternCall_PrintAddStr [14:42:08]wPrintStart [14:42:08]Write to MH i2c: 01 00 00 00 08 08 [14:42:08]Write i2c OK [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: 01 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: 01 07 00 [14:42:08]MH_I2C_Read... [14:42:08]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 FF 0F 1D [14:42:08]RasterBufferAndPrint [14:42:08]line Счет N : (1)321244 [14:42:08]line ИНН: 02508201610067 [14:42:08]line Контрольно-Кассовый Чек [14:42:08]line ПРОДАЖА [14:42:08]line ТРК (МРК, ГНК) : 11 [14:42:08]line Товар: 2710124130 [14:42:08]line Аи-92-К-5 [14:42:08]line 9.040 * 66.40 [14:42:08]line = 600.26 [14:42:08]line НДС 12% НСП 1% [14:42:08]line > о реализуемом товаре [14:42:08]line ОКРУГЛЕНИЕ: -0.26 [14:42:08]line ИТОГО: 600.00 [14:42:08]line Внесено: 600.00 [14:42:08]line СДАЧА: 0.00 [14:42:08]line НСП 1% : 5.31 [14:42:08]line НДС 12% : 63.74 [14:42:08]line Наличными: 600.00 [14:42:08]line Безнал.: 0.00 [14:42:08]line Место: АЗС № 65 "Партнер Нефть" [14:42:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:42:08]line СНО: Общий режим [14:42:08]line Чек 161 23.06.2024 14:42 [14:42:08]line Смена: 392 ФФД: 1.0 [14:42:08]line ЗНМ: 0300000198 [14:42:08]line РНМ: 0000000000092771 [14:42:08]line Версия ККМ: 001 [14:42:08]line ФМ: 0000000000875083 [14:42:08]line ФД: 112560 [14:42:08]line ФПД: 206834916744026 [14:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144207&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112560&fm=206834916744026&tin=02508201610067®Number=0000000000092771&sum=60000 [14:42:08]OFD Sender: Processing packet 112560 [packets to send 38, broken 37] [14:42:08]ProducePacketName [14:42:08]name=ofd_packets/00112560 [14:42:08]OFD Sender: To server: pG, [14:42:08]CommunicateWithHost lk.salyk.kg:30040 [14:42:08]ConnectInit lk.salyk.kg [14:42:08]written 0, free lines is 4095 [14:42:08]Connected sock=10 [14:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB 59 07 01 31 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 A1 00 00 00 F4 03 04 00 3F 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B7 01 00 35 04 06 00 BC 1D 81 BD 5B 5A 51 E1 52 58 95 31 F4 50 [14:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3E 55 47 00 22 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 38 37 35 30 38 33 10 04 04 00 B0 B7 01 00 F4 03 04 00 2A CB 77 66 B6 04 01 00 00 18 97 74 9D 9E 51 B5 34 [14:42:09]CommunicateWithHost err = 0 [14:42:09]CheckOFDResponse [14:42:09]1017 (14) - 77093643461234 [14:42:09]1041 (16) - 0000000000875083 [14:42:09]1040 (4) - 112560 [14:42:09]1012 (4) - 23.06.2024 07:13 [14:42:09]1206 (1) - 0 [14:42:09]OFD Sender: Remove packet 112560 [14:42:09]ProducePacketName [14:42:09]name=ofd_packets/00112560 [14:42:09]NVStorageDeleteData [14:42:09]Write to MH i2c: 01 00 00 2B 08 33 [14:42:09]Write i2c OK [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: 01 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: 01 07 00 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 DF 0C 25 [14:42:09]RasterBufferAndPrint [14:42:09]line [14:42:09]line [14:42:09]line [14:42:09]line [14:42:09]line [14:42:09]written 0, free lines is 3300 [14:42:09]MH_Cut [14:42:09]Write to MH i2c: D1 01 00 32 08 01 0C [14:42:09]Write i2c OK [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: D1 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: D1 01 00 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: D1 01 00 32 08 00 0B [14:42:09]Write to MH i2c: 01 00 00 33 08 3B [14:42:09]Write i2c OK [14:42:09]MH_I2C_Read... [14:42:09]OFD Sender: No OFD packet to send [14:42:10]*** Cut start [14:42:10]*** Partial cut [14:42:10]*** CUTSNS_PIN = 1 [14:42:10]*** CUTSNS_PIN = 0 [14:42:10]*** Brake cut motor [14:42:10]Read from MH i2c: 01 [14:42:10]MH_I2C_Read... [14:42:10]*** Stop cut motor [14:42:10]*** Cut end [14:42:10]Read from MH i2c: 01 07 00 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 FF 0F 50 [14:42:10]process_action close_receipt done [14:42:10]requested_data is exist [14:42:10]produce_requested_data [14:42:10]requested_item fm.sn is exist - process it [14:42:10]wFMCommunicate request_size=4 [14:42:10]MH_SAM_APDU [14:42:10]CAPDU: 80 11 00 00 [14:42:10]Write to MH i2c: E2 08 00 34 08 80 11 00 00 00 00 00 00 B6 [14:42:10]Write i2c OK [14:42:10]MH_I2C_Read... [14:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:10]Read from MH i2c: E2 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: E2 17 00 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: E2 17 00 34 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [14:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:42:10]wFMCommunicate OK [14:42:10]requested_item fd.num is exist - process it [14:42:10]SAM_PROTO_GetFieldsCounters [14:42:10]wFMCommunicate request_size=4 [14:42:10]MH_SAM_APDU [14:42:10]CAPDU: 80 13 00 00 [14:42:10]Write to MH i2c: E2 08 00 35 08 80 13 00 00 00 00 00 00 B9 [14:42:10]Write i2c OK [14:42:10]MH_I2C_Read... [14:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:10]Read from MH i2c: E2 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: E2 62 00 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: E2 62 00 35 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B7 01 00 0E 04 04 00 88 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 AE [14:42:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B7 01 00 0E 04 04 00 88 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 [14:42:10]wFMCommunicate OK [14:42:10]SAM_PROTO_GetFieldsCounters done [14:42:10]requested_item shift.num is exist - process it [14:42:10]requested_item shift.opened is exist - process it [14:42:10]req_shift_opened [14:42:10]FM_GetShiftState [14:42:10]SAM_PROTO_GetShiftState [14:42:10]wFMCommunicate request_size=4 [14:42:10]MH_SAM_APDU [14:42:10]CAPDU: 80 13 01 00 [14:42:10]Write to MH i2c: E2 08 00 36 08 80 13 01 00 00 00 00 00 BB [14:42:10]Write i2c OK [14:42:10]MH_I2C_Read... [14:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:10]Read from MH i2c: E2 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: E2 0E 00 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: E2 0E 00 36 08 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D9 [14:42:10]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:42:10]wFMCommunicate OK [14:42:10]SAM_PROTO_GetShiftState done [14:42:10]FM_GetShiftState done [14:42:10]req_shift_opened done [14:42:10]requested_item shift.open_date is exist - process it [14:42:10]req_shift_open_date [14:42:10]req_shift_open_date done [14:42:10]produce_requested_data done [14:42:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112560,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:42:10]process_action_free close_receipt [14:42:10]json_value_free [14:42:10]json_value_free done [14:42:10]process_json_proto returns [14:42:10]Send response to host [14:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112560,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:42:10]free response buf [14:42:10]execute_script done [14:42:10]execute_script returns [14:42:10]free content buf [14:42:10]Sock 8.Close socket [14:42:10]Sock 8.Thread stoped [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]accept exits with 9 [14:42:44]New connection [14:42:44]New thread 3066817892 created [14:42:44]Thread 3066674532 joined [14:42:44]Waiting for new connection... [14:42:44] Sock 9.Parse request [14:42:44]Sock 9.Check first char [14:42:44]Sock 9.First char is OK [14:42:44]request: POST /json_proto HTTP/1.0 [14:42:44]Method: POST [14:42:44]URL: /json_proto [14:42:44]Method is POST - this is cgi request [14:42:44]url: /json_proto [14:42:44]query_string will be loaded in cgi processing [14:42:44]execute_cgi json_proto POST (null) [14:42:44]execute_cgi path=json_proto method=POST [14:42:44]POST find Content-Length [14:42:44]Host: 172.17.59.68:8080 [14:42:44]Content-Length: 639 [14:42:44]Content-Type: application/json [14:42:44] [14:42:44]POST finish read [14:42:44]Found Content-Length = 639 [14:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:44]execute_script... [14:42:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:44]POST & json_proto [14:42:44]process_json_proto [14:42:44]json parsed OK: [14:42:44]protocol is kg_v1.0 [14:42:44]action value=close_receipt [14:42:44]process_action close_receipt [14:42:44]cmd_close_receipt [14:42:44]MH_GetDate [14:42:44]Write to MH i2c: F0 00 00 37 08 2E [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: F0 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: F0 09 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: F0 09 00 37 08 00 65 34 78 66 BC EC 60 65 1B [14:42:44]GetLastDocTimeStamp 1719153727 [14:42:44]current date 1719153765 [14:42:44]FM_GetShiftState [14:42:44]SAM_PROTO_GetShiftState [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 13 01 00 [14:42:44]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 0E 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 DB [14:42:44]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:42:44]wFMCommunicate OK [14:42:44]SAM_PROTO_GetShiftState done [14:42:44]FM_GetShiftState done [14:42:44]opened in 1719106490 [14:42:44]opened+sec_in_day 1719192890 [14:42:44]quantity*price = 33200 [14:42:44]sum+1 = 33201 [14:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 162 23.06.2024 14:42 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112561 ФПД: 60315978537723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144245&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112561&fm=60315978537723&tin=02508201610067®Number=0000000000092771&sum=33200 [14:42:45]StoreToDocumentArchive [14:42:45]shift 392 fd 112561 [14:42:45]save to /storage/0392/doc_00112561 [14:42:45]save last doc name /storage/0392/doc_00112561 to /storage/kkm_last_doc_name [14:42:45]save OK [14:42:45]Clear old archive folders... [14:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:45]tlvbuf is 01B74FA0 [14:42:45]SAM_PROTO_ClearQueue [14:42:45]wFMCommunicate request_size=4 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 09 00 00 [14:42:45]Write to MH i2c: E2 08 00 45 08 80 09 00 00 00 00 00 00 BF [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:45]Read from MH i2c: E2 03 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [14:42:45]RAPDU: 90 00 [14:42:45]wFMCommunicate OK [14:42:45]SAM_PROTO_ClearQueue done [14:42:45]KKMCreateOFDPacket [14:42:45]OFDProtocolAddRootSTLVToBuf [14:42:45]FM_MakeSignedData [14:42:45]FM_MakeSignedData [14:42:45]SAM_PROTO_SignData [14:42:45]wFMCommunicate request_size=4 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 0D 01 02 [14:42:45]Write to MH i2c: E2 08 00 46 08 80 0D 01 02 00 00 00 00 C7 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [14:42:45]RAPDU: 90 00 [14:42:45]wFMCommunicate OK [14:42:45]wFMCommunicate request_size=255 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 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 65 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B7 01 00 35 04 06 00 36 [14:42:45]Write to MH i2c: E2 02 01 47 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 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 65 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B7 01 00 35 04 06 00 36 00 00 43 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [14:42:46]RAPDU: 90 00 [14:42:46]wFMCommunicate OK [14:42:46]wFMCommunicate request_size=10 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 0D 02 02 05 DB 68 79 9A FB [14:42:46]Write to MH i2c: E2 0D 00 48 08 80 0D 02 02 05 00 DB 68 79 9A FB 00 00 25 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [14:42:46]RAPDU: 90 00 [14:42:46]wFMCommunicate OK [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 0D 03 02 [14:42:46]Write to MH i2c: E2 08 00 49 08 80 0D 03 02 00 00 00 00 CC [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 0B 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 0B 00 49 08 00 0F 70 9E 0B 4C 54 10 81 90 00 26 [14:42:46]RAPDU: 0F 70 9E 0B 4C 54 10 81 90 00 [14:42:46]wFMCommunicate OK [14:42:46]SAM_PROTO_SignData done [14:42:46]FM_MakeSignedData done [14:42:46]CreateOFDProtocolMessage [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 11 00 00 [14:42:46]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 17 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [14:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:42:46]wFMCommunicate OK [14:42:46]CreateOFDProtocolMessage done [14:42:46]OFDSenderStorePacket 112561 [14:42:46]StoreOFDPacket docnum=112561 [14:42:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3D EE 07 01 42 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 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 65 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B7 01 00 35 04 06 00 36 DB 68 79 9A FB 0F 70 9E 0B 4C 54 10 81 [14:42:46]CheckFolder [14:42:46]dirname=/storage/ofd_packets [14:42:46]CheckFolder done [14:42:46]ProducePacketName [14:42:46]name=ofd_packets/00112561 [14:42:46]NVStorageSaveData ofd_packets/00112561 [14:42:46]File name is /storage/ofd_packets/00112561 [14:42:46]Write 301 bytes [14:42:46]NVStorageSaveData done [14:42:46]OFDSenderStorePacket done [14:42:46]KKMCreateOFDPacket done [14:42:46]NVStorageSaveData kkm_last_timestamp [14:42:46]File name is /storage/kkm_last_timestamp [14:42:46]Write 4 bytes [14:42:46]NVStorageSaveData done [14:42:46]ExternCall_PrintAddStr [14:42:46]wPrintStart [14:42:46]Write to MH i2c: 01 00 00 4B 08 53 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: 01 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: 01 07 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 FF 0F 68 [14:42:46]RasterBufferAndPrint [14:42:46]line Счет N : (1)321245 [14:42:46]line ИНН: 02508201610067 [14:42:46]line Контрольно-Кассовый Чек [14:42:46]line ПРОДАЖА [14:42:46]line ТРК (МРК, ГНК) : 11 [14:42:46]line Товар: 2710124130 [14:42:46]line Аи-92-К-5 [14:42:46]line 5.000 * 66.40 [14:42:46]line = 332.00 [14:42:46]line НДС 12% НСП 1% [14:42:46]line > о реализуемом товаре [14:42:46]line ИТОГО: 332.00 [14:42:46]line НСП 1% : 2.94 [14:42:46]line НДС 12% : 35.26 [14:42:46]line Наличными: 332.00 [14:42:46]line Безнал.: 0.00 [14:42:46]line Место: АЗС № 65 "Партнер Нефть" [14:42:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:42:46]line СНО: Общий режим [14:42:46]line Чек 162 23.06.2024 14:42 [14:42:46]line Смена: 392 ФФД: 1.0 [14:42:46]line ЗНМ: 0300000198 [14:42:46]line РНМ: 0000000000092771 [14:42:46]line Версия ККМ: 001 [14:42:46]line ФМ: 0000000000875083 [14:42:46]line ФД: 112561 [14:42:46]line ФПД: 60315978537723 [14:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144245&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112561&fm=60315978537723&tin=02508201610067®Number=0000000000092771&sum=33200 [14:42:46]OFD Sender: Processing packet 112561 [packets to send 38, broken 37] [14:42:46]ProducePacketName [14:42:46]name=ofd_packets/00112561 [14:42:46]OFD Sender: To server: pG, [14:42:46]CommunicateWithHost lk.salyk.kg:30040 [14:42:46]ConnectInit lk.salyk.kg [14:42:46]written 0, free lines is 4095 [14:42:46]Connected sock=8 [14:42:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3D EE 07 01 42 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 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 65 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B7 01 00 35 04 06 00 36 DB 68 79 9A FB 0F 70 9E 0B 4C 54 10 81 [14:42:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EB A7 47 00 5C DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B7 01 00 F4 03 04 00 50 CB 77 66 B6 04 01 00 00 CA F4 69 AF 27 90 9C AA [14:42:46]CommunicateWithHost err = 0 [14:42:46]CheckOFDResponse [14:42:46]1017 (14) - 77093643461234 [14:42:46]1041 (16) - 0000000000875083 [14:42:46]1040 (4) - 112561 [14:42:46]1012 (4) - 23.06.2024 07:14 [14:42:46]1206 (1) - 0 [14:42:46]OFD Sender: Remove packet 112561 [14:42:46]ProducePacketName [14:42:46]name=ofd_packets/00112561 [14:42:46]NVStorageDeleteData [14:42:47]Write to MH i2c: 01 00 00 73 08 7B [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 07 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 15 0D A4 [14:42:47]RasterBufferAndPrint [14:42:47]line [14:42:47]line [14:42:47]line [14:42:47]line [14:42:47]line [14:42:47]written 0, free lines is 3356 [14:42:47]MH_Cut [14:42:47]Write to MH i2c: D1 01 00 7A 08 01 54 [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: D1 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: D1 01 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: D1 01 00 7A 08 00 53 [14:42:47]Write to MH i2c: 01 00 00 7B 08 83 [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]OFD Sender: No OFD packet to send [14:42:47]*** Cut start [14:42:47]*** Partial cut [14:42:47]*** CUTSNS_PIN = 1 [14:42:47]*** CUTSNS_PIN = 0 [14:42:48]*** Brake cut motor [14:42:48]Read from MH i2c: 01 [14:42:48]MH_I2C_Read... [14:42:48]*** Stop cut motor [14:42:48]*** Cut end [14:42:48]Read from MH i2c: 01 07 00 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: 01 07 00 7B 08 00 00 00 00 00 FF 0F 98 [14:42:48]process_action close_receipt done [14:42:48]requested_data is exist [14:42:48]produce_requested_data [14:42:48]requested_item fm.sn is exist - process it [14:42:48]wFMCommunicate request_size=4 [14:42:48]MH_SAM_APDU [14:42:48]CAPDU: 80 11 00 00 [14:42:48]Write to MH i2c: E2 08 00 7C 08 80 11 00 00 00 00 00 00 FE [14:42:48]Write i2c OK [14:42:48]MH_I2C_Read... [14:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:48]Read from MH i2c: E2 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 17 00 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 17 00 7C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [14:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:42:48]wFMCommunicate OK [14:42:48]requested_item fd.num is exist - process it [14:42:48]SAM_PROTO_GetFieldsCounters [14:42:48]wFMCommunicate request_size=4 [14:42:48]MH_SAM_APDU [14:42:48]CAPDU: 80 13 00 00 [14:42:48]Write to MH i2c: E2 08 00 7D 08 80 13 00 00 00 00 00 00 01 [14:42:48]Write i2c OK [14:42:48]MH_I2C_Read... [14:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:48]Read from MH i2c: E2 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 62 00 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 62 00 7D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B7 01 00 0E 04 04 00 88 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 FA [14:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B7 01 00 0E 04 04 00 88 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 [14:42:48]wFMCommunicate OK [14:42:48]SAM_PROTO_GetFieldsCounters done [14:42:48]requested_item shift.num is exist - process it [14:42:48]requested_item shift.opened is exist - process it [14:42:48]req_shift_opened [14:42:48]FM_GetShiftState [14:42:48]SAM_PROTO_GetShiftState [14:42:48]wFMCommunicate request_size=4 [14:42:48]MH_SAM_APDU [14:42:48]CAPDU: 80 13 01 00 [14:42:48]Write to MH i2c: E2 08 00 7E 08 80 13 01 00 00 00 00 00 03 [14:42:48]Write i2c OK [14:42:48]MH_I2C_Read... [14:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:48]Read from MH i2c: E2 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 0E 00 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 0E 00 7E 08 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 21 [14:42:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:42:48]wFMCommunicate OK [14:42:48]SAM_PROTO_GetShiftState done [14:42:48]FM_GetShiftState done [14:42:48]req_shift_opened done [14:42:48]requested_item shift.open_date is exist - process it [14:42:48]req_shift_open_date [14:42:48]req_shift_open_date done [14:42:48]produce_requested_data done [14:42:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112561,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:42:48]process_action_free close_receipt [14:42:48]json_value_free [14:42:48]json_value_free done [14:42:48]process_json_proto returns [14:42:48]Send response to host [14:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112561,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:42:48]free response buf [14:42:48]execute_script done [14:42:48]execute_script returns [14:42:48]free content buf [14:42:48]Sock 9.Close socket [14:42:48]Sock 9.Thread stoped [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:07]accept exits with 10 [14:45:07]New connection [14:45:07]New thread 3066674532 created [14:45:07]Thread 3066817892 joined [14:45:07]Waiting for new connection... [14:45:07] Sock 10.Parse request [14:45:07]Sock 10.Check first char [14:45:07]Sock 10.First char is OK [14:45:07]request: POST /json_proto HTTP/1.0 [14:45:07]Method: POST [14:45:07]URL: /json_proto [14:45:07]Method is POST - this is cgi request [14:45:07]url: /json_proto [14:45:07]query_string will be loaded in cgi processing [14:45:07]execute_cgi json_proto POST (null) [14:45:07]execute_cgi path=json_proto method=POST [14:45:07]POST find Content-Length [14:45:07]Host: 172.17.59.68:8080 [14:45:07]Content-Length: 682 [14:45:07]Content-Type: application/json [14:45:07] [14:45:07]POST finish read [14:45:07]Found Content-Length = 682 [14:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.11, "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" ] } } [14:45:07]execute_script... [14:45: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)321246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.11, "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" ] } } [14:45:07]POST & json_proto [14:45:07]process_json_proto [14:45:07]json parsed OK: [14:45:07]protocol is kg_v1.0 [14:45:07]action value=close_receipt [14:45:07]process_action close_receipt [14:45:07]cmd_close_receipt [14:45:07]MH_GetDate [14:45:07]Write to MH i2c: F0 00 00 7F 08 76 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 09 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 09 00 7F 08 00 F4 34 78 66 BC EC 60 65 F2 [14:45:07]GetLastDocTimeStamp 1719153765 [14:45:07]current date 1719153908 [14:45:07]FM_GetShiftState [14:45:07]SAM_PROTO_GetShiftState [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 13 01 00 [14:45:07]Write to MH i2c: E2 08 00 80 08 80 13 01 00 00 00 00 00 05 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 0E 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 0E 00 80 08 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 23 [14:45:07]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:45:07]wFMCommunicate OK [14:45:07]SAM_PROTO_GetShiftState done [14:45:07]FM_GetShiftState done [14:45:07]opened in 1719106490 [14:45:07]opened+sec_in_day 1719192890 [14:45:07]quantity*price = 130011 [14:45:07]sum+1 = 130012 [14:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 163 23.06.2024 14:45 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112562 ФПД: 120113766120791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144508&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112562&fm=120113766120791&tin=02508201610067®Number=0000000000092771&sum=130000 [14:45:08]StoreToDocumentArchive [14:45:08]shift 392 fd 112562 [14:45:08]save to /storage/0392/doc_00112562 [14:45:08]save last doc name /storage/0392/doc_00112562 to /storage/kkm_last_doc_name [14:45:08]save OK [14:45:08]Clear old archive folders... [14:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:08]tlvbuf is 01B80880 [14:45:08]SAM_PROTO_ClearQueue [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 09 00 00 [14:45:08]Write to MH i2c: E2 08 00 8D 08 80 09 00 00 00 00 00 00 07 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 8D 08 00 90 00 09 [14:45:08]RAPDU: 90 00 [14:45:08]wFMCommunicate OK [14:45:08]SAM_PROTO_ClearQueue done [14:45:08]KKMCreateOFDPacket [14:45:08]OFDProtocolAddRootSTLVToBuf [14:45:08]FM_MakeSignedData [14:45:08]FM_MakeSignedData [14:45:08]SAM_PROTO_SignData [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 0D 01 02 [14:45:08]Write to MH i2c: E2 08 00 8E 08 80 0D 01 02 00 00 00 00 0F [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [14:45:08]RAPDU: 90 00 [14:45:08]wFMCommunicate OK [14:45:08]wFMCommunicate request_size=255 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 A3 00 00 00 F4 03 04 00 F4 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B7 01 00 35 04 06 00 6D [14:45:08]Write to MH i2c: E2 02 01 8F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 A3 00 00 00 F4 03 04 00 F4 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B7 01 00 35 04 06 00 6D 00 00 07 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [14:45:09]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]wFMCommunicate request_size=10 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 0D 02 02 05 3E 2A 5C BD 57 [14:45:09]Write to MH i2c: E2 0D 00 90 08 80 0D 02 02 05 00 3E 2A 5C BD 57 00 00 F4 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [14:45:09]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 0D 03 02 [14:45:09]Write to MH i2c: E2 08 00 91 08 80 0D 03 02 00 00 00 00 14 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0B 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0B 00 91 08 00 80 A9 6B 2D 47 AE 1D F8 90 00 E0 [14:45:09]RAPDU: 80 A9 6B 2D 47 AE 1D F8 90 00 [14:45:09]wFMCommunicate OK [14:45:09]SAM_PROTO_SignData done [14:45:09]FM_MakeSignedData done [14:45:09]CreateOFDProtocolMessage [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 11 00 00 [14:45:09]Write to MH i2c: E2 08 00 92 08 80 11 00 00 00 00 00 00 14 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 17 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 17 00 92 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 66 [14:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:45:09]wFMCommunicate OK [14:45:09]CreateOFDProtocolMessage done [14:45:09]OFDSenderStorePacket 112562 [14:45:09]StoreOFDPacket docnum=112562 [14:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 74 07 01 6E 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 A3 00 00 00 F4 03 04 00 F4 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B7 01 00 35 04 06 00 6D 3E 2A 5C BD 57 80 A9 6B 2D 47 AE 1D F8 [14:45:09]CheckFolder [14:45:09]dirname=/storage/ofd_packets [14:45:09]CheckFolder done [14:45:09]ProducePacketName [14:45:09]name=ofd_packets/00112562 [14:45:09]NVStorageSaveData ofd_packets/00112562 [14:45:09]File name is /storage/ofd_packets/00112562 [14:45:09]Write 301 bytes [14:45:09]NVStorageSaveData done [14:45:09]OFDSenderStorePacket done [14:45:09]KKMCreateOFDPacket done [14:45:09]NVStorageSaveData kkm_last_timestamp [14:45:09]File name is /storage/kkm_last_timestamp [14:45:09]Write 4 bytes [14:45:09]NVStorageSaveData done [14:45:09]ExternCall_PrintAddStr [14:45:09]wPrintStart [14:45:09]Write to MH i2c: 01 00 00 93 08 9B [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 FF 0F B0 [14:45:09]RasterBufferAndPrint [14:45:09]line Счет N : (1)321246 [14:45:09]line ИНН: 02508201610067 [14:45:09]line Контрольно-Кассовый Чек [14:45:09]line ПРОДАЖА [14:45:09]line ТРК (МРК, ГНК) : 11 [14:45:09]line Товар: 2710124130 [14:45:09]line Аи-92-К-5 [14:45:09]line 19.580 * 66.40 [14:45:09]line = 1300.11 [14:45:09]line НДС 12% НСП 1% [14:45:09]line > о реализуемом товаре [14:45:09]line ОКРУГЛЕНИЕ: -0.11 [14:45:09]line ИТОГО: 1300.00 [14:45:09]line Внесено: 1300.00 [14:45:09]line СДАЧА: 0.00 [14:45:09]line НСП 1% : 11.50 [14:45:09]line НДС 12% : 138.06 [14:45:09]line Наличными: 1300.00 [14:45:09]line Безнал.: 0.00 [14:45:09]line Место: АЗС № 65 "Партнер Нефть" [14:45:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:45:09]line СНО: Общий режим [14:45:09]line Чек 163 23.06.2024 14:45 [14:45:09]line Смена: 392 ФФД: 1.0 [14:45:09]line ЗНМ: 0300000198 [14:45:09]line РНМ: 0000000000092771 [14:45:09]line Версия ККМ: 001 [14:45:09]line ФМ: 0000000000875083 [14:45:09]line ФД: 112562 [14:45:09]line ФПД: 120113766120791 [14:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144508&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112562&fm=120113766120791&tin=02508201610067®Number=0000000000092771&sum=130000 [14:45:09]OFD Sender: Processing packet 112562 [packets to send 38, broken 37] [14:45:09]ProducePacketName [14:45:09]name=ofd_packets/00112562 [14:45:09]OFD Sender: To server: pG, [14:45:09]CommunicateWithHost lk.salyk.kg:30040 [14:45:09]ConnectInit lk.salyk.kg [14:45:09]written 0, free lines is 4095 [14:45:09]Connected sock=9 [14:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 74 07 01 6E 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 A3 00 00 00 F4 03 04 00 F4 34 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B7 01 00 35 04 06 00 6D 3E 2A 5C BD 57 80 A9 6B 2D 47 AE 1D F8 [14:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9F FB 47 00 36 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B7 01 00 F4 03 04 00 DF CB 77 66 B6 04 01 00 00 84 02 32 89 4E FC 11 BB [14:45:09]CommunicateWithHost err = 0 [14:45:09]CheckOFDResponse [14:45:09]1017 (14) - 77093643461234 [14:45:09]1041 (16) - 0000000000875083 [14:45:09]1040 (4) - 112562 [14:45:09]1012 (4) - 23.06.2024 07:16 [14:45:09]1206 (1) - 0 [14:45:09]OFD Sender: Remove packet 112562 [14:45:09]ProducePacketName [14:45:09]name=ofd_packets/00112562 [14:45:09]NVStorageDeleteData [14:45:10]Write to MH i2c: 01 00 00 BE 08 C6 [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 07 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 DF 0C B8 [14:45:10]RasterBufferAndPrint [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]written 0, free lines is 3304 [14:45:10]MH_Cut [14:45:10]Write to MH i2c: D1 01 00 C5 08 01 9F [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 01 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 01 00 C5 08 00 9E [14:45:10]Write to MH i2c: 01 00 00 C6 08 CE [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]OFD Sender: No OFD packet to send [14:45:10]*** Cut start [14:45:10]*** Partial cut [14:45:10]*** CUTSNS_PIN = 1 [14:45:10]*** CUTSNS_PIN = 0 [14:45:11]*** Brake cut motor [14:45:11]Read from MH i2c: 01 [14:45:11]MH_I2C_Read... [14:45:11]*** Stop cut motor [14:45:11]*** Cut end [14:45:11]Read from MH i2c: 01 07 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [14:45:11]process_action close_receipt done [14:45:11]requested_data is exist [14:45:11]produce_requested_data [14:45:11]requested_item fm.sn is exist - process it [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 11 00 00 [14:45:11]Write to MH i2c: E2 08 00 C7 08 80 11 00 00 00 00 00 00 49 [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 17 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 17 00 C7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [14:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:45:11]wFMCommunicate OK [14:45:11]requested_item fd.num is exist - process it [14:45:11]SAM_PROTO_GetFieldsCounters [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 13 00 00 [14:45:11]Write to MH i2c: E2 08 00 C8 08 80 13 00 00 00 00 00 00 4C [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 62 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 62 00 C8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B7 01 00 0E 04 04 00 88 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 49 [14:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B7 01 00 0E 04 04 00 88 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 [14:45:11]wFMCommunicate OK [14:45:11]SAM_PROTO_GetFieldsCounters done [14:45:11]requested_item shift.num is exist - process it [14:45:11]requested_item shift.opened is exist - process it [14:45:11]req_shift_opened [14:45:11]FM_GetShiftState [14:45:11]SAM_PROTO_GetShiftState [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 13 01 00 [14:45:11]Write to MH i2c: E2 08 00 C9 08 80 13 01 00 00 00 00 00 4E [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0E 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0E 00 C9 08 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 6C [14:45:11]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:45:11]wFMCommunicate OK [14:45:11]SAM_PROTO_GetShiftState done [14:45:11]FM_GetShiftState done [14:45:11]req_shift_opened done [14:45:11]requested_item shift.open_date is exist - process it [14:45:11]req_shift_open_date [14:45:11]req_shift_open_date done [14:45:11]produce_requested_data done [14:45:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112562,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:45:11]process_action_free close_receipt [14:45:11]json_value_free [14:45:11]json_value_free done [14:45:11]process_json_proto returns [14:45:11]Send response to host [14:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112562,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:45:11]free response buf [14:45:11]execute_script done [14:45:11]execute_script returns [14:45:11]free content buf [14:45:11]Sock 10.Close socket [14:45:11]Sock 10.Thread stoped [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:38]accept exits with 8 [14:45:38]New connection [14:45:38]New thread 3066817892 created [14:45:38]Thread 3066674532 joined [14:45:38]Waiting for new connection... [14:45:38] Sock 8.Parse request [14:45:38]Sock 8.Check first char [14:45:38]Sock 8.First char is OK [14:45:38]request: POST /json_proto HTTP/1.0 [14:45:38]Method: POST [14:45:38]URL: /json_proto [14:45:38]Method is POST - this is cgi request [14:45:38]url: /json_proto [14:45:38]query_string will be loaded in cgi processing [14:45:38]execute_cgi json_proto POST (null) [14:45:38]execute_cgi path=json_proto method=POST [14:45:38]POST find Content-Length [14:45:38]Host: 172.17.59.68:8080 [14:45:38]Content-Length: 677 [14:45:38]Content-Type: application/json [14:45:38] [14:45:38]POST finish read [14:45:38]Found Content-Length = 677 [14:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:38]execute_script... [14:45:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:38]POST & json_proto [14:45:38]process_json_proto [14:45:38]json parsed OK: [14:45:38]protocol is kg_v1.0 [14:45:38]action value=close_receipt [14:45:38]process_action close_receipt [14:45:38]cmd_close_receipt [14:45:38]MH_GetDate [14:45:38]Write to MH i2c: F0 00 00 CA 08 C1 [14:45:38]Write i2c OK [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: F0 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: F0 09 00 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: F0 09 00 CA 08 00 13 35 78 66 BC EC 60 65 5D [14:45:38]GetLastDocTimeStamp 1719153908 [14:45:38]current date 1719153939 [14:45:38]FM_GetShiftState [14:45:38]SAM_PROTO_GetShiftState [14:45:38]wFMCommunicate request_size=4 [14:45:38]MH_SAM_APDU [14:45:38]CAPDU: 80 13 01 00 [14:45:38]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [14:45:38]Write i2c OK [14:45:38]MH_I2C_Read... [14:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:38]Read from MH i2c: E2 [14:45:38]MH_I2C_Read... [14:45:38]Read from MH i2c: E2 0E 00 [14:45:38]MH_I2C_Read... [14:45:39]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 6E [14:45:39]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:45:39]wFMCommunicate OK [14:45:39]SAM_PROTO_GetShiftState done [14:45:39]FM_GetShiftState done [14:45:39]opened in 1719106490 [14:45:39]opened+sec_in_day 1719192890 [14:45:39]quantity*price = 10026 [14:45:39]sum+1 = 10027 [14:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 164 23.06.2024 14:45 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112563 ФПД: 41501361176618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144539&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112563&fm=41501361176618&tin=02508201610067®Number=0000000000092771&sum=10000 [14:45:40]StoreToDocumentArchive [14:45:40]shift 392 fd 112563 [14:45:40]save to /storage/0392/doc_00112563 [14:45:40]save last doc name /storage/0392/doc_00112563 to /storage/kkm_last_doc_name [14:45:40]save OK [14:45:40]Clear old archive folders... [14:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:40]tlvbuf is 01B7B7D0 [14:45:40]SAM_PROTO_ClearQueue [14:45:40]wFMCommunicate request_size=4 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 09 00 00 [14:45:40]Write to MH i2c: E2 08 00 D8 08 80 09 00 00 00 00 00 00 52 [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [14:45:40]RAPDU: 90 00 [14:45:40]wFMCommunicate OK [14:45:40]SAM_PROTO_ClearQueue done [14:45:40]KKMCreateOFDPacket [14:45:40]OFDProtocolAddRootSTLVToBuf [14:45:40]FM_MakeSignedData [14:45:40]FM_MakeSignedData [14:45:40]SAM_PROTO_SignData [14:45:40]wFMCommunicate request_size=4 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 0D 01 02 [14:45:40]Write to MH i2c: E2 08 00 D9 08 80 0D 01 02 00 00 00 00 5A [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 D9 08 00 90 00 55 [14:45:40]RAPDU: 90 00 [14:45:40]wFMCommunicate OK [14:45:40]wFMCommunicate request_size=255 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 13 35 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B7 01 00 35 04 06 00 25 [14:45:40]Write to MH i2c: E2 02 01 DA 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 13 35 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B7 01 00 35 04 06 00 25 00 00 80 [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [14:45:40]RAPDU: 90 00 [14:45:40]wFMCommunicate OK [14:45:40]wFMCommunicate request_size=10 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 0D 02 02 05 BE C9 E4 00 2A [14:45:40]Write to MH i2c: E2 0D 00 DB 08 80 0D 02 02 05 00 BE C9 E4 00 2A 00 00 FC [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [14:45:40]RAPDU: 90 00 [14:45:40]wFMCommunicate OK [14:45:40]wFMCommunicate request_size=4 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 0D 03 02 [14:45:40]Write to MH i2c: E2 08 00 DC 08 80 0D 03 02 00 00 00 00 5F [14:45:40]OFD Sender: No OFD packet to send [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 0B 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 0B 00 DC 08 00 17 52 E8 12 7A 9A FB 66 90 00 38 [14:45:40]RAPDU: 17 52 E8 12 7A 9A FB 66 90 00 [14:45:40]wFMCommunicate OK [14:45:40]SAM_PROTO_SignData done [14:45:40]FM_MakeSignedData done [14:45:40]CreateOFDProtocolMessage [14:45:40]wFMCommunicate request_size=4 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 11 00 00 [14:45:40]Write to MH i2c: E2 08 00 DD 08 80 11 00 00 00 00 00 00 5F [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 17 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 17 00 DD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [14:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:45:40]wFMCommunicate OK [14:45:40]CreateOFDProtocolMessage done [14:45:40]OFDSenderStorePacket 112563 [14:45:40]StoreOFDPacket docnum=112563 [14:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 01 07 01 B5 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 13 35 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B7 01 00 35 04 06 00 25 BE C9 E4 00 2A 17 52 E8 12 7A 9A FB 66 [14:45:40]CheckFolder [14:45:40]dirname=/storage/ofd_packets [14:45:40]CheckFolder done [14:45:40]ProducePacketName [14:45:40]name=ofd_packets/00112563 [14:45:40]NVStorageSaveData ofd_packets/00112563 [14:45:40]File name is /storage/ofd_packets/00112563 [14:45:40]Write 301 bytes [14:45:40]NVStorageSaveData done [14:45:40]OFDSenderStorePacket done [14:45:40]KKMCreateOFDPacket done [14:45:40]NVStorageSaveData kkm_last_timestamp [14:45:40]File name is /storage/kkm_last_timestamp [14:45:40]Write 4 bytes [14:45:40]NVStorageSaveData done [14:45:40]ExternCall_PrintAddStr [14:45:40]wPrintStart [14:45:40]Write to MH i2c: 01 00 00 DE 08 E6 [14:45:40]OFD Sender: Processing packet 112563 [packets to send 38, broken 37] [14:45:40]ProducePacketName [14:45:40]name=ofd_packets/00112563 [14:45:40]OFD Sender: To server: pG, [14:45:40]CommunicateWithHost lk.salyk.kg:30040 [14:45:40]ConnectInit lk.salyk.kg [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: 01 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: 01 07 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 FF 0F FB [14:45:40]RasterBufferAndPrint [14:45:40]line Счет N : (1)321248 [14:45:40]line ИНН: 02508201610067 [14:45:40]line Контрольно-Кассовый Чек [14:45:40]line ПРОДАЖА [14:45:40]line ТРК (МРК, ГНК) : 11 [14:45:40]line Товар: 2710124130 [14:45:40]line Аи-92-К-5 [14:45:40]line 1.510 * 66.40 [14:45:40]line = 100.26 [14:45:40]line НДС 12% НСП 1% [14:45:40]line > о реализуемом товаре [14:45:40]line ОКРУГЛЕНИЕ: -0.26 [14:45:40]line ИТОГО: 100.00 [14:45:40]line Внесено: 100.00 [14:45:40]line СДАЧА: 0.00 [14:45:40]line НСП 1% : 0.89 [14:45:40]line НДС 12% : 10.65 [14:45:40]line Наличными: 100.00 [14:45:40]line Безнал.: 0.00 [14:45:40]line Место: АЗС № 65 "Партнер Нефть" [14:45:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:45:40]line СНО: Общий режим [14:45:40]line Чек 164 23.06.2024 14:45 [14:45:40]line Смена: 392 ФФД: 1.0 [14:45:40]line ЗНМ: 0300000198 [14:45:40]line РНМ: 0000000000092771 [14:45:40]line Версия ККМ: 001 [14:45:40]line ФМ: 0000000000875083 [14:45:40]line ФД: 112563 [14:45:40]line ФПД: 41501361176618 [14:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144539&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112563&fm=41501361176618&tin=02508201610067®Number=0000000000092771&sum=10000 [14:45:41]Connected sock=10 [14:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 01 07 01 B5 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 13 35 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B7 01 00 35 04 06 00 25 BE C9 E4 00 2A 17 52 E8 12 7A 9A FB 66 [14:45:41]written 0, free lines is 4095 [14:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BC C3 47 00 03 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B7 01 00 F4 03 04 00 FE CB 77 66 B6 04 01 00 00 B8 44 ED 30 F1 52 89 AC [14:45:41]CommunicateWithHost err = 0 [14:45:41]CheckOFDResponse [14:45:41]1017 (14) - 77093643461234 [14:45:41]1041 (16) - 0000000000875083 [14:45:41]1040 (4) - 112563 [14:45:41]1012 (4) - 23.06.2024 07:17 [14:45:41]1206 (1) - 0 [14:45:41]OFD Sender: Remove packet 112563 [14:45:41]ProducePacketName [14:45:41]name=ofd_packets/00112563 [14:45:41]NVStorageDeleteData [14:45:41]Write to MH i2c: 01 00 00 09 09 12 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 07 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 E1 0C 06 [14:45:41]RasterBufferAndPrint [14:45:41]line [14:45:41]line [14:45:41]line [14:45:41]line [14:45:41]line [14:45:41]written 0, free lines is 3302 [14:45:41]MH_Cut [14:45:41]Write to MH i2c: D1 01 00 10 09 01 EB [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: D1 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: D1 01 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: D1 01 00 10 09 00 EA [14:45:41]Write to MH i2c: 01 00 00 11 09 1A [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]OFD Sender: No OFD packet to send [14:45:42]*** Cut start [14:45:42]*** Partial cut [14:45:42]*** CUTSNS_PIN = 1 [14:45:42]*** CUTSNS_PIN = 0 [14:45:42]*** Brake cut motor [14:45:42]Read from MH i2c: 01 [14:45:42]MH_I2C_Read... [14:45:42]*** Stop cut motor [14:45:42]*** Cut end [14:45:42]Read from MH i2c: 01 07 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 FF 0F 2F [14:45:42]process_action close_receipt done [14:45:42]requested_data is exist [14:45:42]produce_requested_data [14:45:42]requested_item fm.sn is exist - process it [14:45:42]wFMCommunicate request_size=4 [14:45:42]MH_SAM_APDU [14:45:42]CAPDU: 80 11 00 00 [14:45:42]Write to MH i2c: E2 08 00 12 09 80 11 00 00 00 00 00 00 95 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:42]Read from MH i2c: E2 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: E2 17 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: E2 17 00 12 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E7 [14:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:45:42]wFMCommunicate OK [14:45:42]requested_item fd.num is exist - process it [14:45:42]SAM_PROTO_GetFieldsCounters [14:45:42]wFMCommunicate request_size=4 [14:45:42]MH_SAM_APDU [14:45:42]CAPDU: 80 13 00 00 [14:45:42]Write to MH i2c: E2 08 00 13 09 80 13 00 00 00 00 00 00 98 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:43]Read from MH i2c: E2 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 62 00 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 62 00 13 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B7 01 00 0E 04 04 00 88 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 99 [14:45:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B7 01 00 0E 04 04 00 88 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 [14:45:43]wFMCommunicate OK [14:45:43]SAM_PROTO_GetFieldsCounters done [14:45:43]requested_item shift.num is exist - process it [14:45:43]requested_item shift.opened is exist - process it [14:45:43]req_shift_opened [14:45:43]FM_GetShiftState [14:45:43]SAM_PROTO_GetShiftState [14:45:43]wFMCommunicate request_size=4 [14:45:43]MH_SAM_APDU [14:45:43]CAPDU: 80 13 01 00 [14:45:43]Write to MH i2c: E2 08 00 14 09 80 13 01 00 00 00 00 00 9A [14:45:43]Write i2c OK [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 [14:45:43]MH_I2C_Read... [14:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:43]Read from MH i2c: E2 0E 00 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 0E 00 14 09 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 B8 [14:45:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:45:43]wFMCommunicate OK [14:45:43]SAM_PROTO_GetShiftState done [14:45:43]FM_GetShiftState done [14:45:43]req_shift_opened done [14:45:43]requested_item shift.open_date is exist - process it [14:45:43]req_shift_open_date [14:45:43]req_shift_open_date done [14:45:43]produce_requested_data done [14:45:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112563,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:45:43]process_action_free close_receipt [14:45:43]json_value_free [14:45:43]json_value_free done [14:45:43]process_json_proto returns [14:45:43]Send response to host [14:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112563,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:45:43]free response buf [14:45:43]execute_script done [14:45:43]execute_script returns [14:45:43]free content buf [14:45:43]Sock 8.Close socket [14:45:43]Sock 8.Thread stoped [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:12]accept exits with 9 [14:48:12]New connection [14:48:12]New thread 3066674532 created [14:48:12]Thread 3066817892 joined [14:48:12]Waiting for new connection... [14:48:12] Sock 9.Parse request [14:48:12]Sock 9.Check first char [14:48:12]Sock 9.First char is OK [14:48:12]request: POST /json_proto HTTP/1.0 [14:48:12]Method: POST [14:48:12]URL: /json_proto [14:48:12]Method is POST - this is cgi request [14:48:12]url: /json_proto [14:48:12]query_string will be loaded in cgi processing [14:48:12]execute_cgi json_proto POST (null) [14:48:12]execute_cgi path=json_proto method=POST [14:48:12]POST find Content-Length [14:48:12]Host: 172.17.59.68:8080 [14:48:12]Content-Length: 806 [14:48:12]Content-Type: application/json [14:48:12] [14:48:12]POST finish read [14:48:12]Found Content-Length = 806 [14:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:12]execute_script... [14:48:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:12]POST & json_proto [14:48:12]process_json_proto [14:48:12]json parsed OK: [14:48:12]protocol is kg_v1.0 [14:48:12]action value=close_receipt [14:48:12]process_action close_receipt [14:48:12]cmd_close_receipt [14:48:12]MH_GetDate [14:48:12]Write to MH i2c: F0 00 00 15 09 0D [14:48:12]Write i2c OK [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: F0 [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: F0 09 00 [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: F0 09 00 15 09 00 AC 35 78 66 BC EC 60 65 42 [14:48:12]GetLastDocTimeStamp 1719153939 [14:48:12]current date 1719154092 [14:48:12]FM_GetShiftState [14:48:12]SAM_PROTO_GetShiftState [14:48:12]wFMCommunicate request_size=4 [14:48:12]MH_SAM_APDU [14:48:12]CAPDU: 80 13 01 00 [14:48:12]Write to MH i2c: E2 08 00 16 09 80 13 01 00 00 00 00 00 9C [14:48:12]Write i2c OK [14:48:12]MH_I2C_Read... [14:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:12]Read from MH i2c: E2 [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: E2 0E 00 [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: E2 0E 00 16 09 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 BA [14:48:12]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:48:12]wFMCommunicate OK [14:48:12]SAM_PROTO_GetShiftState done [14:48:12]FM_GetShiftState done [14:48:12]opened in 1719106490 [14:48:12]opened+sec_in_day 1719192890 [14:48:12]quantity*price = 66400 [14:48:12]sum+1 = 66401 [14:48:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 0.00 Безнал.: 664.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 165 23.06.2024 14:48 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112564 ФПД: 154898198213552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144813&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112564&fm=154898198213552&tin=02508201610067®Number=0000000000092771&sum=66400 [14:48:13]StoreToDocumentArchive [14:48:13]shift 392 fd 112564 [14:48:13]save to /storage/0392/doc_00112564 [14:48:13]save last doc name /storage/0392/doc_00112564 to /storage/kkm_last_doc_name [14:48:13]save OK [14:48:13]Clear old archive folders... [14:48:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:13]tlvbuf is 01B804F0 [14:48:13]SAM_PROTO_ClearQueue [14:48:13]wFMCommunicate request_size=4 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 09 00 00 [14:48:13]Write to MH i2c: E2 08 00 23 09 80 09 00 00 00 00 00 00 9E [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 23 09 00 90 00 A0 [14:48:13]RAPDU: 90 00 [14:48:13]wFMCommunicate OK [14:48:13]SAM_PROTO_ClearQueue done [14:48:13]KKMCreateOFDPacket [14:48:13]OFDProtocolAddRootSTLVToBuf [14:48:13]FM_MakeSignedData [14:48:13]FM_MakeSignedData [14:48:13]SAM_PROTO_SignData [14:48:13]wFMCommunicate request_size=4 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 0D 01 02 [14:48:13]Write to MH i2c: E2 08 00 24 09 80 0D 01 02 00 00 00 00 A6 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [14:48:13]RAPDU: 90 00 [14:48:13]wFMCommunicate OK [14:48:13]wFMCommunicate request_size=255 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AD 35 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B7 01 00 35 04 06 00 8C [14:48:13]Write to MH i2c: E2 02 01 25 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AD 35 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B7 01 00 35 04 06 00 8C 00 00 F6 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [14:48:13]RAPDU: 90 00 [14:48:13]wFMCommunicate OK [14:48:13]wFMCommunicate request_size=10 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 0D 02 02 05 E1 0C 14 B3 B0 [14:48:13]Write to MH i2c: E2 0D 00 26 09 80 0D 02 02 05 00 E1 0C 14 B3 B0 00 00 17 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [14:48:13]RAPDU: 90 00 [14:48:13]wFMCommunicate OK [14:48:13]wFMCommunicate request_size=4 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 0D 03 02 [14:48:13]Write to MH i2c: E2 08 00 27 09 80 0D 03 02 00 00 00 00 AB [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 0B 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 0B 00 27 09 00 BB 0D BA 08 B9 FD 12 19 90 00 17 [14:48:13]RAPDU: BB 0D BA 08 B9 FD 12 19 90 00 [14:48:13]wFMCommunicate OK [14:48:13]SAM_PROTO_SignData done [14:48:13]FM_MakeSignedData done [14:48:13]CreateOFDProtocolMessage [14:48:13]wFMCommunicate request_size=4 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 11 00 00 [14:48:13]Write to MH i2c: E2 08 00 28 09 80 11 00 00 00 00 00 00 AB [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 17 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 17 00 28 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [14:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:48:13]wFMCommunicate OK [14:48:13]CreateOFDProtocolMessage done [14:48:13]OFDSenderStorePacket 112564 [14:48:13]StoreOFDPacket docnum=112564 [14:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 FF 07 01 69 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AD 35 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B7 01 00 35 04 06 00 8C E1 0C 14 B3 B0 BB 0D BA 08 B9 FD 12 19 [14:48:13]CheckFolder [14:48:13]dirname=/storage/ofd_packets [14:48:13]CheckFolder done [14:48:13]ProducePacketName [14:48:13]name=ofd_packets/00112564 [14:48:13]NVStorageSaveData ofd_packets/00112564 [14:48:13]File name is /storage/ofd_packets/00112564 [14:48:13]Write 301 bytes [14:48:13]NVStorageSaveData done [14:48:13]OFDSenderStorePacket done [14:48:13]KKMCreateOFDPacket done [14:48:13]NVStorageSaveData kkm_last_timestamp [14:48:13]File name is /storage/kkm_last_timestamp [14:48:13]Write 4 bytes [14:48:13]NVStorageSaveData done [14:48:13]ExternCall_PrintAddStr [14:48:13]wPrintStart [14:48:13]Write to MH i2c: 01 00 00 29 09 32 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 07 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 FF 0F 47 [14:48:13]RasterBufferAndPrint [14:48:13]line Счет N : (1)321249 [14:48:13]line ИНН: 02508201610067 [14:48:13]line Контрольно-Кассовый Чек [14:48:13]line ПРОДАЖА [14:48:13]line ТРК (МРК, ГНК) : 11 [14:48:13]line Товар: 2710124130 [14:48:13]line Аи-92-К-5 [14:48:13]line 10.000 * 66.40 [14:48:13]line = 664.00 [14:48:13]line НДС 12% НСП 1% [14:48:13]line > о реализуемом товаре [14:48:13]line ИТОГО: 664.00 [14:48:13]line НСП 1% : 5.88 [14:48:13]line НДС 12% : 70.51 [14:48:13]line Наличными: 0.00 [14:48:13]line Безнал.: 664.00 [14:48:13]line Место: АЗС № 65 "Партнер Нефть" [14:48:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:48:13]line СНО: Общий режим [14:48:13]line Чек 165 23.06.2024 14:48 [14:48:13]line Смена: 392 ФФД: 1.0 [14:48:13]line ЗНМ: 0300000198 [14:48:13]line РНМ: 0000000000092771 [14:48:13]line Версия ККМ: 001 [14:48:13]line Платежная система: О! деньги [14:48:13]line ФМ: 0000000000875083 [14:48:13]line ФД: 112564 [14:48:13]line ФПД: 154898198213552 [14:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T144813&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112564&fm=154898198213552&tin=02508201610067®Number=0000000000092771&sum=66400 [14:48:14]written 0, free lines is 4095 [14:48:14]OFD Sender: Processing packet 112564 [packets to send 38, broken 37] [14:48:14]ProducePacketName [14:48:14]name=ofd_packets/00112564 [14:48:14]OFD Sender: To server: pG, [14:48:14]CommunicateWithHost lk.salyk.kg:30040 [14:48:14]ConnectInit lk.salyk.kg [14:48:14]Connected sock=10 [14:48:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 FF 07 01 69 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AD 35 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B7 01 00 35 04 06 00 8C E1 0C 14 B3 B0 BB 0D BA 08 B9 FD 12 19 [14:48:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BD E5 47 00 E3 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B7 01 00 F4 03 04 00 97 CC 77 66 B6 04 01 00 00 E1 50 09 B5 75 5D E3 F8 [14:48:14]CommunicateWithHost err = 0 [14:48:14]CheckOFDResponse [14:48:14]1017 (14) - 77093643461234 [14:48:14]1041 (16) - 0000000000875083 [14:48:14]1040 (4) - 112564 [14:48:14]1012 (4) - 23.06.2024 07:19 [14:48:14]1206 (1) - 0 [14:48:14]OFD Sender: Remove packet 112564 [14:48:14]ProducePacketName [14:48:14]name=ofd_packets/00112564 [14:48:14]NVStorageDeleteData [14:48:14]Write to MH i2c: 01 00 00 53 09 5C [14:48:14]Write i2c OK [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: 01 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: 01 07 00 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 F0 0C 5F [14:48:14]RasterBufferAndPrint [14:48:14]line [14:48:14]line [14:48:14]line [14:48:14]line [14:48:14]line [14:48:14]written 0, free lines is 3319 [14:48:14]MH_Cut [14:48:14]Write to MH i2c: D1 01 00 5A 09 01 35 [14:48:14]Write i2c OK [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: D1 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: D1 01 00 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: D1 01 00 5A 09 00 34 [14:48:14]Write to MH i2c: 01 00 00 5B 09 64 [14:48:14]Write i2c OK [14:48:14]MH_I2C_Read... [14:48:14]OFD Sender: No OFD packet to send [14:48:15]*** Cut start [14:48:15]*** Partial cut [14:48:15]*** CUTSNS_PIN = 1 [14:48:15]*** CUTSNS_PIN = 0 [14:48:15]*** Brake cut motor [14:48:15]Read from MH i2c: 01 [14:48:15]MH_I2C_Read... [14:48:15]*** Stop cut motor [14:48:15]*** Cut end [14:48:15]Read from MH i2c: 01 07 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: 01 07 00 5B 09 00 00 00 00 00 FF 0F 79 [14:48:15]process_action close_receipt done [14:48:15]requested_data is exist [14:48:15]produce_requested_data [14:48:15]requested_item fm.sn is exist - process it [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 11 00 00 [14:48:15]Write to MH i2c: E2 08 00 5C 09 80 11 00 00 00 00 00 00 DF [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 17 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 17 00 5C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [14:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:48:15]wFMCommunicate OK [14:48:15]requested_item fd.num is exist - process it [14:48:15]SAM_PROTO_GetFieldsCounters [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 13 00 00 [14:48:15]Write to MH i2c: E2 08 00 5D 09 80 13 00 00 00 00 00 00 E2 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 62 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 62 00 5D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B7 01 00 0E 04 04 00 88 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 E7 [14:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B7 01 00 0E 04 04 00 88 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 [14:48:16]wFMCommunicate OK [14:48:16]SAM_PROTO_GetFieldsCounters done [14:48:16]requested_item shift.num is exist - process it [14:48:16]requested_item shift.opened is exist - process it [14:48:16]req_shift_opened [14:48:16]FM_GetShiftState [14:48:16]SAM_PROTO_GetShiftState [14:48:16]wFMCommunicate request_size=4 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 13 01 00 [14:48:16]Write to MH i2c: E2 08 00 5E 09 80 13 01 00 00 00 00 00 E4 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 0E 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 0E 00 5E 09 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 02 [14:48:16]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:48:16]wFMCommunicate OK [14:48:16]SAM_PROTO_GetShiftState done [14:48:16]FM_GetShiftState done [14:48:16]req_shift_opened done [14:48:16]requested_item shift.open_date is exist - process it [14:48:16]req_shift_open_date [14:48:16]req_shift_open_date done [14:48:16]produce_requested_data done [14:48:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112564,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:48:16]process_action_free close_receipt [14:48:16]json_value_free [14:48:16]json_value_free done [14:48:16]process_json_proto returns [14:48:16]Send response to host [14:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112564,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:48:16]free response buf [14:48:16]execute_script done [14:48:16]execute_script returns [14:48:16]free content buf [14:48:16]Sock 9.Close socket [14:48:16]Sock 9.Thread stoped [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:15]accept exits with 8 [14:51:15]New connection [14:51:15]New thread 3066817892 created [14:51:15]Thread 3066674532 joined [14:51:15]Waiting for new connection... [14:51:15] Sock 8.Parse request [14:51:15]Sock 8.Check first char [14:51:15]Sock 8.First char is OK [14:51:15]request: POST /json_proto HTTP/1.0 [14:51:15]Method: POST [14:51:15]URL: /json_proto [14:51:15]Method is POST - this is cgi request [14:51:15]url: /json_proto [14:51:15]query_string will be loaded in cgi processing [14:51:15]execute_cgi json_proto POST (null) [14:51:15]execute_cgi path=json_proto method=POST [14:51:15]POST find Content-Length [14:51:15]Host: 172.17.59.68:8080 [14:51:15]Content-Length: 808 [14:51:15]Content-Type: application/json [14:51:15] [14:51:15]POST finish read [14:51:15]Found Content-Length = 808 [14:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.000, "sum" : 2656.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2656.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:15]execute_script... [14:51: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)321250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.000, "sum" : 2656.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2656.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:15]POST & json_proto [14:51:15]process_json_proto [14:51:15]json parsed OK: [14:51:15]protocol is kg_v1.0 [14:51:15]action value=close_receipt [14:51:15]process_action close_receipt [14:51:15]cmd_close_receipt [14:51:15]MH_GetDate [14:51:15]Write to MH i2c: F0 00 00 5F 09 57 [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: F0 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: F0 09 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: F0 09 00 5F 09 00 64 36 78 66 BC EC 60 65 45 [14:51:15]GetLastDocTimeStamp 1719154093 [14:51:15]current date 1719154276 [14:51:15]FM_GetShiftState [14:51:15]SAM_PROTO_GetShiftState [14:51:15]wFMCommunicate request_size=4 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 13 01 00 [14:51:15]Write to MH i2c: E2 08 00 60 09 80 13 01 00 00 00 00 00 E6 [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 0E 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 0E 00 60 09 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 04 [14:51:15]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:51:15]wFMCommunicate OK [14:51:15]SAM_PROTO_GetShiftState done [14:51:15]FM_GetShiftState done [14:51:15]opened in 1719106490 [14:51:15]opened+sec_in_day 1719192890 [14:51:15]quantity*price = 265600 [14:51:15]sum+1 = 265601 [14:51:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2656.00 НСП 1% : 23.50 НДС 12% : 282.05 Наличными: 0.00 Безнал.: 2656.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 166 23.06.2024 14:51 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112565 ФПД: 205190042503487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T145116&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112565&fm=205190042503487&tin=02508201610067®Number=0000000000092771&sum=265600 [14:51:16]StoreToDocumentArchive [14:51:16]shift 392 fd 112565 [14:51:16]save to /storage/0392/doc_00112565 [14:51:16]save last doc name /storage/0392/doc_00112565 to /storage/kkm_last_doc_name [14:51:16]save OK [14:51:16]Clear old archive folders... [14:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:16]tlvbuf is 01B59F60 [14:51:16]SAM_PROTO_ClearQueue [14:51:16]wFMCommunicate request_size=4 [14:51:16]MH_SAM_APDU [14:51:16]CAPDU: 80 09 00 00 [14:51:16]Write to MH i2c: E2 08 00 6D 09 80 09 00 00 00 00 00 00 E8 [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:16]Read from MH i2c: E2 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 03 00 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 03 00 6D 09 00 90 00 EA [14:51:16]RAPDU: 90 00 [14:51:16]wFMCommunicate OK [14:51:16]SAM_PROTO_ClearQueue done [14:51:16]KKMCreateOFDPacket [14:51:16]OFDProtocolAddRootSTLVToBuf [14:51:16]FM_MakeSignedData [14:51:16]FM_MakeSignedData [14:51:16]SAM_PROTO_SignData [14:51:16]wFMCommunicate request_size=4 [14:51:16]MH_SAM_APDU [14:51:16]CAPDU: 80 0D 01 02 [14:51:16]Write to MH i2c: E2 08 00 6E 09 80 0D 01 02 00 00 00 00 F0 [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:16]Read from MH i2c: E2 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 03 00 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 03 00 6E 09 00 90 00 EB [14:51:16]RAPDU: 90 00 [14:51:16]wFMCommunicate OK [14:51:16]wFMCommunicate request_size=255 [14:51:16]MH_SAM_APDU [14:51:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 80 0D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 0D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 64 36 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B7 01 00 35 04 06 00 BA [14:51:16]Write to MH i2c: E2 02 01 6F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 80 0D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 0D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 64 36 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B7 01 00 35 04 06 00 BA 00 00 32 [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:16]Read from MH i2c: E2 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 03 00 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [14:51:16]RAPDU: 90 00 [14:51:16]wFMCommunicate OK [14:51:16]wFMCommunicate request_size=10 [14:51:16]MH_SAM_APDU [14:51:16]CAPDU: 80 0D 02 02 05 9E 87 98 49 3F [14:51:16]Write to MH i2c: E2 0D 00 70 09 80 0D 02 02 05 00 9E 87 98 49 3F 00 00 42 [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:16]Read from MH i2c: E2 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 03 00 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [14:51:16]RAPDU: 90 00 [14:51:16]wFMCommunicate OK [14:51:16]wFMCommunicate request_size=4 [14:51:16]MH_SAM_APDU [14:51:16]CAPDU: 80 0D 03 02 [14:51:16]Write to MH i2c: E2 08 00 71 09 80 0D 03 02 00 00 00 00 F5 [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:16]Read from MH i2c: E2 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 0B 00 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: E2 0B 00 71 09 00 AD 4D BE 58 63 71 1D 78 90 00 6F [14:51:16]RAPDU: AD 4D BE 58 63 71 1D 78 90 00 [14:51:16]wFMCommunicate OK [14:51:16]SAM_PROTO_SignData done [14:51:16]FM_MakeSignedData done [14:51:16]CreateOFDProtocolMessage [14:51:16]wFMCommunicate request_size=4 [14:51:16]MH_SAM_APDU [14:51:16]CAPDU: 80 11 00 00 [14:51:16]Write to MH i2c: E2 08 00 72 09 80 11 00 00 00 00 00 00 F5 [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:17]Read from MH i2c: E2 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: E2 17 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: E2 17 00 72 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [14:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:51:17]wFMCommunicate OK [14:51:17]CreateOFDProtocolMessage done [14:51:17]OFDSenderStorePacket 112565 [14:51:17]StoreOFDPacket docnum=112565 [14:51:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D5 C5 07 01 E0 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 80 0D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 0D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 64 36 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B7 01 00 35 04 06 00 BA 9E 87 98 49 3F AD 4D BE 58 63 71 1D 78 [14:51:17]CheckFolder [14:51:17]dirname=/storage/ofd_packets [14:51:17]CheckFolder done [14:51:17]ProducePacketName [14:51:17]name=ofd_packets/00112565 [14:51:17]NVStorageSaveData ofd_packets/00112565 [14:51:17]File name is /storage/ofd_packets/00112565 [14:51:17]Write 301 bytes [14:51:17]NVStorageSaveData done [14:51:17]OFDSenderStorePacket done [14:51:17]KKMCreateOFDPacket done [14:51:17]NVStorageSaveData kkm_last_timestamp [14:51:17]File name is /storage/kkm_last_timestamp [14:51:17]Write 4 bytes [14:51:17]NVStorageSaveData done [14:51:17]ExternCall_PrintAddStr [14:51:17]wPrintStart [14:51:17]Write to MH i2c: 01 00 00 73 09 7C [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: 01 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: 01 07 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 FF 0F 91 [14:51:17]RasterBufferAndPrint [14:51:17]line Счет N : (1)321250 [14:51:17]line ИНН: 02508201610067 [14:51:17]line Контрольно-Кассовый Чек [14:51:17]line ПРОДАЖА [14:51:17]line ТРК (МРК, ГНК) : 11 [14:51:17]line Товар: 2710124130 [14:51:17]line Аи-92-К-5 [14:51:17]line 40.000 * 66.40 [14:51:17]line = 2656.00 [14:51:17]line НДС 12% НСП 1% [14:51:17]line > о реализуемом товаре [14:51:17]line ИТОГО: 2656.00 [14:51:17]line НСП 1% : 23.50 [14:51:17]line НДС 12% : 282.05 [14:51:17]line Наличными: 0.00 [14:51:17]line Безнал.: 2656.00 [14:51:17]line Место: АЗС № 65 "Партнер Нефть" [14:51:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:51:17]line СНО: Общий режим [14:51:17]line Чек 166 23.06.2024 14:51 [14:51:17]line Смена: 392 ФФД: 1.0 [14:51:17]line ЗНМ: 0300000198 [14:51:17]line РНМ: 0000000000092771 [14:51:17]line Версия ККМ: 001 [14:51:17]line Платежная система: О! деньги [14:51:17]line ФМ: 0000000000875083 [14:51:17]line ФД: 112565 [14:51:17]line ФПД: 205190042503487 [14:51:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T145116&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112565&fm=205190042503487&tin=02508201610067®Number=0000000000092771&sum=265600 [14:51:17]written 0, free lines is 4095 [14:51:17]OFD Sender: Processing packet 112565 [packets to send 38, broken 37] [14:51:17]ProducePacketName [14:51:17]name=ofd_packets/00112565 [14:51:17]OFD Sender: To server: pG, [14:51:17]CommunicateWithHost lk.salyk.kg:30040 [14:51:17]ConnectInit lk.salyk.kg [14:51:17]Connected sock=10 [14:51:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D5 C5 07 01 E0 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 80 0D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 0D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 64 36 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B7 01 00 35 04 06 00 BA 9E 87 98 49 3F AD 4D BE 58 63 71 1D 78 [14:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 86 50 47 00 11 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B7 01 00 F4 03 04 00 4E CD 77 66 B6 04 01 00 00 D7 E4 98 7B EA 39 98 02 [14:51:17]CommunicateWithHost err = 0 [14:51:17]CheckOFDResponse [14:51:17]1017 (14) - 77093643461234 [14:51:17]1041 (16) - 0000000000875083 [14:51:17]1040 (4) - 112565 [14:51:17]1012 (4) - 23.06.2024 07:22 [14:51:17]1206 (1) - 0 [14:51:17]OFD Sender: Remove packet 112565 [14:51:17]ProducePacketName [14:51:17]name=ofd_packets/00112565 [14:51:17]NVStorageDeleteData [14:51:17]Write to MH i2c: 01 00 00 9D 09 A6 [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: 01 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: 01 07 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: 01 07 00 9D 09 00 00 00 00 00 01 0D BB [14:51:17]RasterBufferAndPrint [14:51:17]line [14:51:17]line [14:51:17]line [14:51:17]line [14:51:17]line [14:51:17]written 0, free lines is 3335 [14:51:17]MH_Cut [14:51:17]Write to MH i2c: D1 01 00 A4 09 01 7F [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: D1 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: D1 01 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: D1 01 00 A4 09 00 7E [14:51:17]Write to MH i2c: 01 00 00 A5 09 AE [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:18]OFD Sender: No OFD packet to send [14:51:18]*** Cut start [14:51:18]*** Partial cut [14:51:18]*** CUTSNS_PIN = 1 [14:51:18]*** CUTSNS_PIN = 0 [14:51:18]*** Brake cut motor [14:51:19]Read from MH i2c: 01 [14:51:19]MH_I2C_Read... [14:51:19]*** Stop cut motor [14:51:19]*** Cut end [14:51:19]Read from MH i2c: 01 07 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: 01 07 00 A5 09 00 00 00 00 00 FF 0F C3 [14:51:19]process_action close_receipt done [14:51:19]requested_data is exist [14:51:19]produce_requested_data [14:51:19]requested_item fm.sn is exist - process it [14:51:19]wFMCommunicate request_size=4 [14:51:19]MH_SAM_APDU [14:51:19]CAPDU: 80 11 00 00 [14:51:19]Write to MH i2c: E2 08 00 A6 09 80 11 00 00 00 00 00 00 29 [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:19]Read from MH i2c: E2 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 17 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 17 00 A6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [14:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:51:19]wFMCommunicate OK [14:51:19]requested_item fd.num is exist - process it [14:51:19]SAM_PROTO_GetFieldsCounters [14:51:19]wFMCommunicate request_size=4 [14:51:19]MH_SAM_APDU [14:51:19]CAPDU: 80 13 00 00 [14:51:19]Write to MH i2c: E2 08 00 A7 09 80 13 00 00 00 00 00 00 2C [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:19]Read from MH i2c: E2 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 62 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 62 00 A7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B7 01 00 0E 04 04 00 88 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 35 [14:51:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B7 01 00 0E 04 04 00 88 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 [14:51:19]wFMCommunicate OK [14:51:19]SAM_PROTO_GetFieldsCounters done [14:51:19]requested_item shift.num is exist - process it [14:51:19]requested_item shift.opened is exist - process it [14:51:19]req_shift_opened [14:51:19]FM_GetShiftState [14:51:19]SAM_PROTO_GetShiftState [14:51:19]wFMCommunicate request_size=4 [14:51:19]MH_SAM_APDU [14:51:19]CAPDU: 80 13 01 00 [14:51:19]Write to MH i2c: E2 08 00 A8 09 80 13 01 00 00 00 00 00 2E [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:19]Read from MH i2c: E2 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 0E 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 0E 00 A8 09 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4C [14:51:19]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:51:19]wFMCommunicate OK [14:51:19]SAM_PROTO_GetShiftState done [14:51:19]FM_GetShiftState done [14:51:19]req_shift_opened done [14:51:19]requested_item shift.open_date is exist - process it [14:51:19]req_shift_open_date [14:51:19]req_shift_open_date done [14:51:19]produce_requested_data done [14:51:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112565,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:51:19]process_action_free close_receipt [14:51:19]json_value_free [14:51:19]json_value_free done [14:51:19]process_json_proto returns [14:51:19]Send response to host [14:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112565,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:51:19]free response buf [14:51:19]execute_script done [14:51:19]execute_script returns [14:51:19]free content buf [14:51:19]Sock 8.Close socket [14:51:19]Sock 8.Thread stoped [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]accept exits with 9 [14:56:03]New connection [14:56:03]New thread 3066674532 created [14:56:03]Thread 3066817892 joined [14:56:03]Waiting for new connection... [14:56:03] Sock 9.Parse request [14:56:03]Sock 9.Check first char [14:56:03]Sock 9.First char is OK [14:56:03]request: POST /json_proto HTTP/1.0 [14:56:03]Method: POST [14:56:03]URL: /json_proto [14:56:03]Method is POST - this is cgi request [14:56:03]url: /json_proto [14:56:03]query_string will be loaded in cgi processing [14:56:03]execute_cgi json_proto POST (null) [14:56:03]execute_cgi path=json_proto method=POST [14:56:03]POST find Content-Length [14:56:03]Host: 172.17.59.68:8080 [14:56:03]Content-Length: 679 [14:56:03]Content-Type: application/json [14:56:03] [14:56:03]POST finish read [14:56:03]Found Content-Length = 679 [14:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 32.930, "sum" : 2400.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:03]execute_script... [14:56: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)321251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 32.930, "sum" : 2400.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:03]POST & json_proto [14:56:03]process_json_proto [14:56:03]json parsed OK: [14:56:03]protocol is kg_v1.0 [14:56:03]action value=close_receipt [14:56:03]process_action close_receipt [14:56:03]cmd_close_receipt [14:56:03]MH_GetDate [14:56:03]Write to MH i2c: F0 00 00 A9 09 A1 [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: F0 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: F0 09 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: F0 09 00 A9 09 00 84 37 78 66 BC EC 60 65 B0 [14:56:03]GetLastDocTimeStamp 1719154276 [14:56:03]current date 1719154564 [14:56:03]FM_GetShiftState [14:56:03]SAM_PROTO_GetShiftState [14:56:03]wFMCommunicate request_size=4 [14:56:03]MH_SAM_APDU [14:56:03]CAPDU: 80 13 01 00 [14:56:03]Write to MH i2c: E2 08 00 AA 09 80 13 01 00 00 00 00 00 30 [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:03]Read from MH i2c: E2 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 0E 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 0E 00 AA 09 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4E [14:56:03]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:56:03]wFMCommunicate OK [14:56:03]SAM_PROTO_GetShiftState done [14:56:03]FM_GetShiftState done [14:56:03]opened in 1719106490 [14:56:03]opened+sec_in_day 1719192890 [14:56:03]quantity*price = 240059 [14:56:03]sum+1 = 240061 [14:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.93 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 167 23.06.2024 14:56 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112566 ФПД: 123395654641717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T145604&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112566&fm=123395654641717&tin=02508201610067®Number=0000000000092771&sum=240000 [14:56:04]StoreToDocumentArchive [14:56:04]shift 392 fd 112566 [14:56:04]save to /storage/0392/doc_00112566 [14:56:04]save last doc name /storage/0392/doc_00112566 to /storage/kkm_last_doc_name [14:56:04]save OK [14:56:04]Clear old archive folders... [14:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:56:04]tlvbuf is 01B79910 [14:56:04]SAM_PROTO_ClearQueue [14:56:04]wFMCommunicate request_size=4 [14:56:04]MH_SAM_APDU [14:56:04]CAPDU: 80 09 00 00 [14:56:04]Write to MH i2c: E2 08 00 B7 09 80 09 00 00 00 00 00 00 32 [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 03 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 03 00 B7 09 00 90 00 34 [14:56:04]RAPDU: 90 00 [14:56:04]wFMCommunicate OK [14:56:04]SAM_PROTO_ClearQueue done [14:56:04]KKMCreateOFDPacket [14:56:04]OFDProtocolAddRootSTLVToBuf [14:56:04]FM_MakeSignedData [14:56:04]FM_MakeSignedData [14:56:04]SAM_PROTO_SignData [14:56:04]wFMCommunicate request_size=4 [14:56:04]MH_SAM_APDU [14:56:04]CAPDU: 80 0D 01 02 [14:56:04]Write to MH i2c: E2 08 00 B8 09 80 0D 01 02 00 00 00 00 3A [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 03 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 03 00 B8 09 00 90 00 35 [14:56:04]RAPDU: 90 00 [14:56:04]wFMCommunicate OK [14:56:04]wFMCommunicate request_size=255 [14:56:04]MH_SAM_APDU [14:56: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 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 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 84 37 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B7 01 00 35 04 06 00 70 3A 4A 29 [14:56:04]Write to MH i2c: E2 02 01 B9 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 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 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 84 37 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B7 01 00 35 04 06 00 70 3A 4A 29 00 00 AF [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 03 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 03 00 B9 09 00 90 00 36 [14:56:04]RAPDU: 90 00 [14:56:04]wFMCommunicate OK [14:56:04]wFMCommunicate request_size=7 [14:56:04]MH_SAM_APDU [14:56:04]CAPDU: 80 0D 02 02 02 68 35 [14:56:04]Write to MH i2c: E2 0A 00 BA 09 80 0D 02 02 02 00 68 35 00 00 DE [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 03 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [14:56:04]RAPDU: 90 00 [14:56:04]wFMCommunicate OK [14:56:04]wFMCommunicate request_size=4 [14:56:04]MH_SAM_APDU [14:56:04]CAPDU: 80 0D 03 02 [14:56:04]Write to MH i2c: E2 08 00 BB 09 80 0D 03 02 00 00 00 00 3F [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 0B 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 0B 00 BB 09 00 03 57 67 3F B9 C2 67 1C 90 00 3E [14:56:04]RAPDU: 03 57 67 3F B9 C2 67 1C 90 00 [14:56:04]wFMCommunicate OK [14:56:04]SAM_PROTO_SignData done [14:56:04]FM_MakeSignedData done [14:56:04]CreateOFDProtocolMessage [14:56:04]wFMCommunicate request_size=4 [14:56:04]MH_SAM_APDU [14:56:04]CAPDU: 80 11 00 00 [14:56:04]Write to MH i2c: E2 08 00 BC 09 80 11 00 00 00 00 00 00 3F [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 17 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 17 00 BC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [14:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:56:04]wFMCommunicate OK [14:56:04]CreateOFDProtocolMessage done [14:56:04]OFDSenderStorePacket 112566 [14:56:04]StoreOFDPacket docnum=112566 [14:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D5 22 04 01 69 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 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 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 84 37 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B7 01 00 35 04 06 00 70 3A 4A 29 68 35 03 57 67 3F B9 C2 67 1C [14:56:04]CheckFolder [14:56:04]dirname=/storage/ofd_packets [14:56:04]CheckFolder done [14:56:04]ProducePacketName [14:56:04]name=ofd_packets/00112566 [14:56:04]NVStorageSaveData ofd_packets/00112566 [14:56:04]File name is /storage/ofd_packets/00112566 [14:56:04]Write 298 bytes [14:56:04]NVStorageSaveData done [14:56:04]OFDSenderStorePacket done [14:56:04]KKMCreateOFDPacket done [14:56:04]NVStorageSaveData kkm_last_timestamp [14:56:04]File name is /storage/kkm_last_timestamp [14:56:04]Write 4 bytes [14:56:04]NVStorageSaveData done [14:56:04]ExternCall_PrintAddStr [14:56:04]wPrintStart [14:56:04]Write to MH i2c: 01 00 00 BD 09 C6 [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: 01 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: 01 07 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 FF 0F DB [14:56:04]RasterBufferAndPrint [14:56:04]line Счет N : (1)321251 [14:56:04]line ИНН: 02508201610067 [14:56:04]line Контрольно-Кассовый Чек [14:56:04]line ПРОДАЖА [14:56:04]line ТРК (МРК, ГНК) : 22 [14:56:04]line Товар: 2710194210 [14:56:04]line ДТ-К-5 [14:56:04]line 32.930 * 72.90 [14:56:04]line = 2400.60 [14:56:04]line НДС 12% НСП 1% [14:56:04]line > о реализуемом товаре [14:56:04]line ОКРУГЛЕНИЕ: -0.60 [14:56:04]line ИТОГО: 2400.00 [14:56:04]line Внесено: 2400.00 [14:56:04]line СДАЧА: 0.00 [14:56:04]line НСП 1% : 21.24 [14:56:04]line НДС 12% : 254.93 [14:56:04]line Наличными: 2400.00 [14:56:04]line Безнал.: 0.00 [14:56:04]line Место: АЗС № 65 "Партнер Нефть" [14:56:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:56:04]line СНО: Общий режим [14:56:04]line Чек 167 23.06.2024 14:56 [14:56:04]line Смена: 392 ФФД: 1.0 [14:56:04]line ЗНМ: 0300000198 [14:56:04]line РНМ: 0000000000092771 [14:56:04]line Версия ККМ: 001 [14:56:04]line ФМ: 0000000000875083 [14:56:04]line ФД: 112566 [14:56:04]line ФПД: 123395654641717 [14:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T145604&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112566&fm=123395654641717&tin=02508201610067®Number=0000000000092771&sum=240000 [14:56:04]written 0, free lines is 4095 [14:56:04]OFD Sender: Processing packet 112566 [packets to send 38, broken 37] [14:56:04]ProducePacketName [14:56:04]name=ofd_packets/00112566 [14:56:04]OFD Sender: To server: pG, [14:56:04]CommunicateWithHost lk.salyk.kg:30040 [14:56:04]ConnectInit lk.salyk.kg [14:56:04]Connected sock=10 [14:56:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D5 22 04 01 69 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 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 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 84 37 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B7 01 00 35 04 06 00 70 3A 4A 29 68 35 03 57 67 3F B9 C2 67 1C [14:56:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CA E5 47 00 A1 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 38 37 35 30 38 33 10 04 04 00 B6 B7 01 00 F4 03 04 00 6E CE 77 66 B6 04 01 00 00 0D 99 3E EF EC 7C 1C 86 [14:56:05]CommunicateWithHost err = 0 [14:56:05]CheckOFDResponse [14:56:05]1017 (14) - 77093643461234 [14:56:05]1041 (16) - 0000000000875083 [14:56:05]1040 (4) - 112566 [14:56:05]1012 (4) - 23.06.2024 07:27 [14:56:05]1206 (1) - 0 [14:56:05]OFD Sender: Remove packet 112566 [14:56:05]ProducePacketName [14:56:05]name=ofd_packets/00112566 [14:56:05]NVStorageDeleteData [14:56:05]Write to MH i2c: 01 00 00 E8 09 F1 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: 01 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: 01 07 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 EB 0C EF [14:56:05]RasterBufferAndPrint [14:56:05]line [14:56:05]line [14:56:05]line [14:56:05]line [14:56:05]line [14:56:05]written 0, free lines is 3313 [14:56:05]MH_Cut [14:56:05]Write to MH i2c: D1 01 00 EF 09 01 CA [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: D1 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: D1 01 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: D1 01 00 EF 09 00 C9 [14:56:05]Write to MH i2c: 01 00 00 F0 09 F9 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]OFD Sender: No OFD packet to send [14:56:06]*** Cut start [14:56:06]*** Partial cut [14:56:06]*** CUTSNS_PIN = 1 [14:56:06]*** CUTSNS_PIN = 0 [14:56:06]*** Brake cut motor [14:56:06]Read from MH i2c: 01 [14:56:06]MH_I2C_Read... [14:56:06]*** Stop cut motor [14:56:06]*** Cut end [14:56:06]Read from MH i2c: 01 07 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 07 00 F0 09 00 00 00 00 00 FF 0F 0E [14:56:06]process_action close_receipt done [14:56:06]requested_data is exist [14:56:06]produce_requested_data [14:56:06]requested_item fm.sn is exist - process it [14:56:06]wFMCommunicate request_size=4 [14:56:06]MH_SAM_APDU [14:56:06]CAPDU: 80 11 00 00 [14:56:06]Write to MH i2c: E2 08 00 F1 09 80 11 00 00 00 00 00 00 74 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:06]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 17 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 17 00 F1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [14:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:56:06]wFMCommunicate OK [14:56:06]requested_item fd.num is exist - process it [14:56:06]SAM_PROTO_GetFieldsCounters [14:56:06]wFMCommunicate request_size=4 [14:56:06]MH_SAM_APDU [14:56:06]CAPDU: 80 13 00 00 [14:56:06]Write to MH i2c: E2 08 00 F2 09 80 13 00 00 00 00 00 00 77 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:06]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 62 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 62 00 F2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B7 01 00 0E 04 04 00 88 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 84 [14:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B7 01 00 0E 04 04 00 88 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 [14:56:06]wFMCommunicate OK [14:56:06]SAM_PROTO_GetFieldsCounters done [14:56:06]requested_item shift.num is exist - process it [14:56:06]requested_item shift.opened is exist - process it [14:56:06]req_shift_opened [14:56:06]FM_GetShiftState [14:56:06]SAM_PROTO_GetShiftState [14:56:06]wFMCommunicate request_size=4 [14:56:06]MH_SAM_APDU [14:56:06]CAPDU: 80 13 01 00 [14:56:06]Write to MH i2c: E2 08 00 F3 09 80 13 01 00 00 00 00 00 79 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:06]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 0E 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 0E 00 F3 09 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 97 [14:56:06]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:56:06]wFMCommunicate OK [14:56:06]SAM_PROTO_GetShiftState done [14:56:06]FM_GetShiftState done [14:56:06]req_shift_opened done [14:56:06]requested_item shift.open_date is exist - process it [14:56:06]req_shift_open_date [14:56:06]req_shift_open_date done [14:56:06]produce_requested_data done [14:56:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112566,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:56:06]process_action_free close_receipt [14:56:06]json_value_free [14:56:06]json_value_free done [14:56:06]process_json_proto returns [14:56:06]Send response to host [14:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112566,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:56:06]free response buf [14:56:06]execute_script done [14:56:06]execute_script returns [14:56:06]free content buf [14:56:06]Sock 9.Close socket [14:56:06]Sock 9.Thread stoped [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:53]accept exits with 8 [14:56:53]New connection [14:56:53]New thread 3066817892 created [14:56:53]Thread 3066674532 joined [14:56:53]Waiting for new connection... [14:56:53] Sock 8.Parse request [14:56:53]Sock 8.Check first char [14:56:53]Sock 8.First char is OK [14:56:53]request: POST /json_proto HTTP/1.0 [14:56:53]Method: POST [14:56:53]URL: /json_proto [14:56:53]Method is POST - this is cgi request [14:56:53]url: /json_proto [14:56:53]query_string will be loaded in cgi processing [14:56:53]execute_cgi json_proto POST (null) [14:56:53]execute_cgi path=json_proto method=POST [14:56:53]POST find Content-Length [14:56:53]Host: 172.17.59.68:8080 [14:56:53]Content-Length: 678 [14:56:53]Content-Type: application/json [14:56:53] [14:56:53]POST finish read [14:56:53]Found Content-Length = 678 [14:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:56:53]execute_script... [14:56: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)321252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:56:53]POST & json_proto [14:56:53]process_json_proto [14:56:53]json parsed OK: [14:56:53]protocol is kg_v1.0 [14:56:53]action value=close_receipt [14:56:53]process_action close_receipt [14:56:53]cmd_close_receipt [14:56:53]MH_GetDate [14:56:53]Write to MH i2c: F0 00 00 F4 09 EC [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: F0 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: F0 09 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: F0 09 00 F4 09 00 B6 37 78 66 BC EC 60 65 2D [14:56:53]GetLastDocTimeStamp 1719154564 [14:56:53]current date 1719154614 [14:56:53]FM_GetShiftState [14:56:53]SAM_PROTO_GetShiftState [14:56:53]wFMCommunicate request_size=4 [14:56:53]MH_SAM_APDU [14:56:53]CAPDU: 80 13 01 00 [14:56:53]Write to MH i2c: E2 08 00 F5 09 80 13 01 00 00 00 00 00 7B [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 0E 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 0E 00 F5 09 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 99 [14:56:53]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:56:53]wFMCommunicate OK [14:56:53]SAM_PROTO_GetShiftState done [14:56:53]FM_GetShiftState done [14:56:53]opened in 1719106490 [14:56:53]opened+sec_in_day 1719192890 [14:56:53]quantity*price = 70052 [14:56:53]sum+1 = 70053 [14:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 168 23.06.2024 14:56 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112567 ФПД: 65795348240792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T145654&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112567&fm=65795348240792&tin=02508201610067®Number=0000000000092771&sum=70000 [14:56:54]StoreToDocumentArchive [14:56:54]shift 392 fd 112567 [14:56:54]save to /storage/0392/doc_00112567 [14:56:54]save last doc name /storage/0392/doc_00112567 to /storage/kkm_last_doc_name [14:56:54]save OK [14:56:54]Clear old archive folders... [14:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:54]tlvbuf is 01BADD40 [14:56:54]SAM_PROTO_ClearQueue [14:56:54]wFMCommunicate request_size=4 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 09 00 00 [14:56:54]Write to MH i2c: E2 08 00 02 0A 80 09 00 00 00 00 00 00 7E [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 03 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [14:56:54]RAPDU: 90 00 [14:56:54]wFMCommunicate OK [14:56:54]SAM_PROTO_ClearQueue done [14:56:54]KKMCreateOFDPacket [14:56:54]OFDProtocolAddRootSTLVToBuf [14:56:54]FM_MakeSignedData [14:56:54]FM_MakeSignedData [14:56:54]SAM_PROTO_SignData [14:56:54]wFMCommunicate request_size=4 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 0D 01 02 [14:56:54]Write to MH i2c: E2 08 00 03 0A 80 0D 01 02 00 00 00 00 86 [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 03 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [14:56:54]RAPDU: 90 00 [14:56:54]wFMCommunicate OK [14:56:54]wFMCommunicate request_size=255 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 A8 00 00 00 F4 03 04 00 B6 37 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B7 01 00 35 04 06 00 3B [14:56:54]Write to MH i2c: E2 02 01 04 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 A8 00 00 00 F4 03 04 00 B6 37 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B7 01 00 35 04 06 00 3B 00 00 F2 [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 03 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [14:56:54]RAPDU: 90 00 [14:56:54]wFMCommunicate OK [14:56:54]wFMCommunicate request_size=10 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 0D 02 02 05 D7 2C 5C 19 98 [14:56:54]Write to MH i2c: E2 0D 00 05 0A 80 0D 02 02 05 00 D7 2C 5C 19 98 00 00 A3 [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 03 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [14:56:54]RAPDU: 90 00 [14:56:54]wFMCommunicate OK [14:56:54]wFMCommunicate request_size=4 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 0D 03 02 [14:56:54]Write to MH i2c: E2 08 00 06 0A 80 0D 03 02 00 00 00 00 8B [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 0B 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 0B 00 06 0A 00 13 F3 B3 C8 38 EC 37 76 90 00 DE [14:56:54]RAPDU: 13 F3 B3 C8 38 EC 37 76 90 00 [14:56:54]wFMCommunicate OK [14:56:54]SAM_PROTO_SignData done [14:56:54]FM_MakeSignedData done [14:56:54]CreateOFDProtocolMessage [14:56:54]wFMCommunicate request_size=4 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 11 00 00 [14:56:54]Write to MH i2c: E2 08 00 07 0A 80 11 00 00 00 00 00 00 8B [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 17 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 17 00 07 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [14:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:56:54]wFMCommunicate OK [14:56:54]CreateOFDProtocolMessage done [14:56:54]OFDSenderStorePacket 112567 [14:56:54]StoreOFDPacket docnum=112567 [14:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 BE 07 01 F6 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 A8 00 00 00 F4 03 04 00 B6 37 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B7 01 00 35 04 06 00 3B D7 2C 5C 19 98 13 F3 B3 C8 38 EC 37 76 [14:56:54]CheckFolder [14:56:54]dirname=/storage/ofd_packets [14:56:54]CheckFolder done [14:56:54]ProducePacketName [14:56:54]name=ofd_packets/00112567 [14:56:54]NVStorageSaveData ofd_packets/00112567 [14:56:54]File name is /storage/ofd_packets/00112567 [14:56:54]Write 301 bytes [14:56:54]NVStorageSaveData done [14:56:54]OFDSenderStorePacket done [14:56:54]KKMCreateOFDPacket done [14:56:54]NVStorageSaveData kkm_last_timestamp [14:56:54]File name is /storage/kkm_last_timestamp [14:56:54]Write 4 bytes [14:56:54]NVStorageSaveData done [14:56:54]ExternCall_PrintAddStr [14:56:54]wPrintStart [14:56:54]Write to MH i2c: 01 00 00 08 0A 12 [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: 01 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: 01 07 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: 01 07 00 08 0A 00 00 00 00 00 FF 0F 27 [14:56:54]RasterBufferAndPrint [14:56:54]line Счет N : (1)321252 [14:56:54]line ИНН: 02508201610067 [14:56:54]line Контрольно-Кассовый Чек [14:56:54]line ПРОДАЖА [14:56:54]line ТРК (МРК, ГНК) : 11 [14:56:54]line Товар: 2710124130 [14:56:54]line Аи-92-К-5 [14:56:54]line 10.550 * 66.40 [14:56:54]line = 700.52 [14:56:54]line НДС 12% НСП 1% [14:56:54]line > о реализуемом товаре [14:56:54]line ОКРУГЛЕНИЕ: -0.52 [14:56:54]line ИТОГО: 700.00 [14:56:54]line Внесено: 700.00 [14:56:54]line СДАЧА: 0.00 [14:56:54]line НСП 1% : 6.20 [14:56:54]line НДС 12% : 74.39 [14:56:54]line Наличными: 700.00 [14:56:54]line Безнал.: 0.00 [14:56:54]line Место: АЗС № 65 "Партнер Нефть" [14:56:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:56:54]line СНО: Общий режим [14:56:54]line Чек 168 23.06.2024 14:56 [14:56:54]line Смена: 392 ФФД: 1.0 [14:56:54]line ЗНМ: 0300000198 [14:56:54]line РНМ: 0000000000092771 [14:56:54]line Версия ККМ: 001 [14:56:54]line ФМ: 0000000000875083 [14:56:54]line ФД: 112567 [14:56:54]line ФПД: 65795348240792 [14:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T145654&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112567&fm=65795348240792&tin=02508201610067®Number=0000000000092771&sum=70000 [14:56:54]written 0, free lines is 4095 [14:56:54]OFD Sender: Processing packet 112567 [packets to send 38, broken 37] [14:56:54]ProducePacketName [14:56:54]name=ofd_packets/00112567 [14:56:54]OFD Sender: To server: pG, [14:56:54]CommunicateWithHost lk.salyk.kg:30040 [14:56:54]ConnectInit lk.salyk.kg [14:56:54]Connected sock=10 [14:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 BE 07 01 F6 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 A8 00 00 00 F4 03 04 00 B6 37 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B7 01 00 35 04 06 00 3B D7 2C 5C 19 98 13 F3 B3 C8 38 EC 37 76 [14:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CE CA 47 00 EC DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B7 01 00 F4 03 04 00 A0 CE 77 66 B6 04 01 00 00 BC 11 C6 DF 21 CE 89 4A [14:56:55]CommunicateWithHost err = 0 [14:56:55]CheckOFDResponse [14:56:55]1017 (14) - 77093643461234 [14:56:55]1041 (16) - 0000000000875083 [14:56:55]1040 (4) - 112567 [14:56:55]1012 (4) - 23.06.2024 07:28 [14:56:55]1206 (1) - 0 [14:56:55]OFD Sender: Remove packet 112567 [14:56:55]ProducePacketName [14:56:55]name=ofd_packets/00112567 [14:56:55]NVStorageDeleteData [14:56:55]Write to MH i2c: 01 00 00 33 0A 3D [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: 01 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: 01 07 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: 01 07 00 33 0A 00 00 00 00 00 F3 0C 43 [14:56:55]RasterBufferAndPrint [14:56:55]line [14:56:55]line [14:56:55]line [14:56:55]line [14:56:55]line [14:56:55]written 0, free lines is 3321 [14:56:55]MH_Cut [14:56:55]Write to MH i2c: D1 01 00 3A 0A 01 16 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: D1 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: D1 01 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: D1 01 00 3A 0A 00 15 [14:56:55]Write to MH i2c: 01 00 00 3B 0A 45 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]OFD Sender: No OFD packet to send [14:56:56]*** Cut start [14:56:56]*** Partial cut [14:56:56]*** CUTSNS_PIN = 1 [14:56:56]*** CUTSNS_PIN = 0 [14:56:56]*** Brake cut motor [14:56:56]Read from MH i2c: 01 [14:56:56]MH_I2C_Read... [14:56:56]*** Stop cut motor [14:56:56]*** Cut end [14:56:56]Read from MH i2c: 01 07 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: 01 07 00 3B 0A 00 00 00 00 00 FF 0F 5A [14:56:56]process_action close_receipt done [14:56:56]requested_data is exist [14:56:56]produce_requested_data [14:56:56]requested_item fm.sn is exist - process it [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 11 00 00 [14:56:56]Write to MH i2c: E2 08 00 3C 0A 80 11 00 00 00 00 00 00 C0 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 17 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 17 00 3C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [14:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:56:56]wFMCommunicate OK [14:56:56]requested_item fd.num is exist - process it [14:56:56]SAM_PROTO_GetFieldsCounters [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 13 00 00 [14:56:56]Write to MH i2c: E2 08 00 3D 0A 80 13 00 00 00 00 00 00 C3 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 62 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 62 00 3D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B7 01 00 0E 04 04 00 88 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 D4 [14:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B7 01 00 0E 04 04 00 88 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 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_GetFieldsCounters done [14:56:56]requested_item shift.num is exist - process it [14:56:56]requested_item shift.opened is exist - process it [14:56:56]req_shift_opened [14:56:56]FM_GetShiftState [14:56:56]SAM_PROTO_GetShiftState [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 13 01 00 [14:56:56]Write to MH i2c: E2 08 00 3E 0A 80 13 01 00 00 00 00 00 C5 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0E 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0E 00 3E 0A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E3 [14:56:56]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_GetShiftState done [14:56:56]FM_GetShiftState done [14:56:56]req_shift_opened done [14:56:56]requested_item shift.open_date is exist - process it [14:56:56]req_shift_open_date [14:56:56]req_shift_open_date done [14:56:56]produce_requested_data done [14:56:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112567,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [14:56:56]process_action_free close_receipt [14:56:56]json_value_free [14:56:56]json_value_free done [14:56:56]process_json_proto returns [14:56:56]Send response to host [14:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112567,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [14:56:56]free response buf [14:56:56]execute_script done [14:56:56]execute_script returns [14:56:56]free content buf [14:56:56]Sock 8.Close socket [14:56:56]Sock 8.Thread stoped [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:31]accept exits with 9 [15:04:31]New connection [15:04:31]New thread 3066674532 created [15:04:31]Thread 3066817892 joined [15:04:31]Waiting for new connection... [15:04:31] Sock 9.Parse request [15:04:31]Sock 9.Check first char [15:04:31]Sock 9.First char is OK [15:04:31]request: POST /json_proto HTTP/1.0 [15:04:31]Method: POST [15:04:31]URL: /json_proto [15:04:31]Method is POST - this is cgi request [15:04:31]url: /json_proto [15:04:31]query_string will be loaded in cgi processing [15:04:31]execute_cgi json_proto POST (null) [15:04:31]execute_cgi path=json_proto method=POST [15:04:31]POST find Content-Length [15:04:31]Host: 172.17.59.68:8080 [15:04:31]Content-Length: 677 [15:04:31]Content-Type: application/json [15:04:31] [15:04:31]POST finish read [15:04:31]Found Content-Length = 677 [15:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:04:31]execute_script... [15:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:04:31]POST & json_proto [15:04:31]process_json_proto [15:04:31]json parsed OK: [15:04:31]protocol is kg_v1.0 [15:04:31]action value=close_receipt [15:04:31]process_action close_receipt [15:04:31]cmd_close_receipt [15:04:31]MH_GetDate [15:04:31]Write to MH i2c: F0 00 00 3F 0A 38 [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: F0 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: F0 09 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: F0 09 00 3F 0A 00 81 39 78 66 BC EC 60 65 46 [15:04:31]GetLastDocTimeStamp 1719154614 [15:04:31]current date 1719155073 [15:04:31]FM_GetShiftState [15:04:31]SAM_PROTO_GetShiftState [15:04:31]wFMCommunicate request_size=4 [15:04:31]MH_SAM_APDU [15:04:31]CAPDU: 80 13 01 00 [15:04:31]Write to MH i2c: E2 08 00 40 0A 80 13 01 00 00 00 00 00 C7 [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:31]Read from MH i2c: E2 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 0E 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 0E 00 40 0A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E5 [15:04:31]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:04:31]wFMCommunicate OK [15:04:31]SAM_PROTO_GetShiftState done [15:04:31]FM_GetShiftState done [15:04:31]opened in 1719106490 [15:04:31]opened+sec_in_day 1719192890 [15:04:31]quantity*price = 50065 [15:04:31]sum+1 = 50067 [15:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 169 23.06.2024 15:04 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112568 ФПД: 82957040009202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150433&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112568&fm=82957040009202&tin=02508201610067®Number=0000000000092771&sum=50000 [15:04:33]StoreToDocumentArchive [15:04:33]shift 392 fd 112568 [15:04:33]save to /storage/0392/doc_00112568 [15:04:33]save last doc name /storage/0392/doc_00112568 to /storage/kkm_last_doc_name [15:04:33]save OK [15:04:33]Clear old archive folders... [15:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:33]tlvbuf is 01B75070 [15:04:33]SAM_PROTO_ClearQueue [15:04:33]wFMCommunicate request_size=4 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 09 00 00 [15:04:33]Write to MH i2c: E2 08 00 4D 0A 80 09 00 00 00 00 00 00 C9 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 03 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [15:04:33]RAPDU: 90 00 [15:04:33]wFMCommunicate OK [15:04:33]SAM_PROTO_ClearQueue done [15:04:33]KKMCreateOFDPacket [15:04:33]OFDProtocolAddRootSTLVToBuf [15:04:33]FM_MakeSignedData [15:04:33]FM_MakeSignedData [15:04:33]SAM_PROTO_SignData [15:04:33]wFMCommunicate request_size=4 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 0D 01 02 [15:04:33]Write to MH i2c: E2 08 00 4E 0A 80 0D 01 02 00 00 00 00 D1 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 03 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 03 00 4E 0A 00 90 00 CC [15:04:33]RAPDU: 90 00 [15:04:33]wFMCommunicate OK [15:04:33]wFMCommunicate request_size=255 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A9 00 00 00 F4 03 04 00 81 39 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B7 01 00 35 04 06 00 4B [15:04:33]Write to MH i2c: E2 02 01 4F 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A9 00 00 00 F4 03 04 00 81 39 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B7 01 00 35 04 06 00 4B 00 00 0A [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 03 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 03 00 4F 0A 00 90 00 CD [15:04:33]RAPDU: 90 00 [15:04:33]wFMCommunicate OK [15:04:33]wFMCommunicate request_size=10 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 0D 02 02 05 72 F0 E6 BF F2 [15:04:33]Write to MH i2c: E2 0D 00 50 0A 80 0D 02 02 05 00 72 F0 E6 BF F2 00 00 D7 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 03 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 03 00 50 0A 00 90 00 CE [15:04:33]RAPDU: 90 00 [15:04:33]wFMCommunicate OK [15:04:33]wFMCommunicate request_size=4 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 0D 03 02 [15:04:33]Write to MH i2c: E2 08 00 51 0A 80 0D 03 02 00 00 00 00 D6 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 0B 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 0B 00 51 0A 00 46 16 4C A3 CD EB BE BC 90 00 54 [15:04:33]RAPDU: 46 16 4C A3 CD EB BE BC 90 00 [15:04:33]wFMCommunicate OK [15:04:33]SAM_PROTO_SignData done [15:04:33]FM_MakeSignedData done [15:04:33]CreateOFDProtocolMessage [15:04:33]wFMCommunicate request_size=4 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 11 00 00 [15:04:33]Write to MH i2c: E2 08 00 52 0A 80 11 00 00 00 00 00 00 D6 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 17 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 17 00 52 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [15:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:04:33]wFMCommunicate OK [15:04:33]CreateOFDProtocolMessage done [15:04:33]OFDSenderStorePacket 112568 [15:04:33]StoreOFDPacket docnum=112568 [15:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 A8 07 01 A9 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A9 00 00 00 F4 03 04 00 81 39 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B7 01 00 35 04 06 00 4B 72 F0 E6 BF F2 46 16 4C A3 CD EB BE BC [15:04:33]CheckFolder [15:04:33]dirname=/storage/ofd_packets [15:04:33]CheckFolder done [15:04:33]ProducePacketName [15:04:33]name=ofd_packets/00112568 [15:04:33]NVStorageSaveData ofd_packets/00112568 [15:04:33]File name is /storage/ofd_packets/00112568 [15:04:33]Write 301 bytes [15:04:33]NVStorageSaveData done [15:04:33]OFDSenderStorePacket done [15:04:33]KKMCreateOFDPacket done [15:04:33]NVStorageSaveData kkm_last_timestamp [15:04:33]File name is /storage/kkm_last_timestamp [15:04:33]Write 4 bytes [15:04:33]NVStorageSaveData done [15:04:33]ExternCall_PrintAddStr [15:04:33]wPrintStart [15:04:33]Write to MH i2c: 01 00 00 53 0A 5D [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: 01 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: 01 07 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 FF 0F 72 [15:04:33]RasterBufferAndPrint [15:04:33]line Счет N : (1)321253 [15:04:33]line ИНН: 02508201610067 [15:04:33]line Контрольно-Кассовый Чек [15:04:33]line ПРОДАЖА [15:04:33]line ТРК (МРК, ГНК) : 11 [15:04:33]line Товар: 2710124130 [15:04:33]line Аи-92-К-5 [15:04:33]line 7.540 * 66.40 [15:04:33]line = 500.66 [15:04:33]line НДС 12% НСП 1% [15:04:33]line > о реализуемом товаре [15:04:33]line ОКРУГЛЕНИЕ: -0.66 [15:04:33]line ИТОГО: 500.00 [15:04:33]line Внесено: 500.00 [15:04:33]line СДАЧА: 0.00 [15:04:33]line НСП 1% : 4.43 [15:04:33]line НДС 12% : 53.17 [15:04:33]line Наличными: 500.00 [15:04:33]line Безнал.: 0.00 [15:04:33]line Место: АЗС № 65 "Партнер Нефть" [15:04:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:04:33]line СНО: Общий режим [15:04:33]line Чек 169 23.06.2024 15:04 [15:04:33]line Смена: 392 ФФД: 1.0 [15:04:33]line ЗНМ: 0300000198 [15:04:33]line РНМ: 0000000000092771 [15:04:33]line Версия ККМ: 001 [15:04:33]line ФМ: 0000000000875083 [15:04:33]line ФД: 112568 [15:04:33]line ФПД: 82957040009202 [15:04:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150433&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112568&fm=82957040009202&tin=02508201610067®Number=0000000000092771&sum=50000 [15:04:34]OFD Sender: Processing packet 112568 [packets to send 38, broken 37] [15:04:34]ProducePacketName [15:04:34]name=ofd_packets/00112568 [15:04:34]OFD Sender: To server: pG, [15:04:34]CommunicateWithHost lk.salyk.kg:30040 [15:04:34]ConnectInit lk.salyk.kg [15:04:34]written 0, free lines is 4095 [15:04:34]Connected sock=10 [15:04:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 A8 07 01 A9 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A9 00 00 00 F4 03 04 00 81 39 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B7 01 00 35 04 06 00 4B 72 F0 E6 BF F2 46 16 4C A3 CD EB BE BC [15:04:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 92 6A 47 00 F6 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B7 01 00 F4 03 04 00 6B D0 77 66 B6 04 01 00 00 EA 47 D4 24 73 BB 2B DF [15:04:34]CommunicateWithHost err = 0 [15:04:34]CheckOFDResponse [15:04:34]1017 (14) - 77093643461234 [15:04:34]1041 (16) - 0000000000875083 [15:04:34]1040 (4) - 112568 [15:04:34]1012 (4) - 23.06.2024 07:36 [15:04:34]1206 (1) - 0 [15:04:34]OFD Sender: Remove packet 112568 [15:04:34]ProducePacketName [15:04:34]name=ofd_packets/00112568 [15:04:34]NVStorageDeleteData [15:04:34]Write to MH i2c: 01 00 00 7E 0A 88 [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: 01 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: 01 07 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 D4 0C 6F [15:04:34]RasterBufferAndPrint [15:04:34]line [15:04:34]line [15:04:34]line [15:04:34]line [15:04:34]line [15:04:34]written 0, free lines is 3288 [15:04:34]MH_Cut [15:04:34]Write to MH i2c: D1 01 00 85 0A 01 61 [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: D1 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: D1 01 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: D1 01 00 85 0A 00 60 [15:04:34]Write to MH i2c: 01 00 00 86 0A 90 [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]OFD Sender: No OFD packet to send [15:04:35]*** Cut start [15:04:35]*** Partial cut [15:04:35]*** CUTSNS_PIN = 1 [15:04:35]*** CUTSNS_PIN = 0 [15:04:35]*** Brake cut motor [15:04:35]Read from MH i2c: 01 [15:04:35]MH_I2C_Read... [15:04:35]*** Stop cut motor [15:04:35]*** Cut end [15:04:35]Read from MH i2c: 01 07 00 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 FF 0F A5 [15:04:35]process_action close_receipt done [15:04:35]requested_data is exist [15:04:35]produce_requested_data [15:04:35]requested_item fm.sn is exist - process it [15:04:35]wFMCommunicate request_size=4 [15:04:35]MH_SAM_APDU [15:04:35]CAPDU: 80 11 00 00 [15:04:35]Write to MH i2c: E2 08 00 87 0A 80 11 00 00 00 00 00 00 0B [15:04:35]Write i2c OK [15:04:35]MH_I2C_Read... [15:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:35]Read from MH i2c: E2 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 17 00 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 17 00 87 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [15:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:04:35]wFMCommunicate OK [15:04:35]requested_item fd.num is exist - process it [15:04:35]SAM_PROTO_GetFieldsCounters [15:04:35]wFMCommunicate request_size=4 [15:04:35]MH_SAM_APDU [15:04:35]CAPDU: 80 13 00 00 [15:04:35]Write to MH i2c: E2 08 00 88 0A 80 13 00 00 00 00 00 00 0E [15:04:35]Write i2c OK [15:04:35]MH_I2C_Read... [15:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:36]Read from MH i2c: E2 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 62 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 62 00 88 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B7 01 00 0E 04 04 00 88 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 23 [15:04:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B7 01 00 0E 04 04 00 88 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 [15:04:36]wFMCommunicate OK [15:04:36]SAM_PROTO_GetFieldsCounters done [15:04:36]requested_item shift.num is exist - process it [15:04:36]requested_item shift.opened is exist - process it [15:04:36]req_shift_opened [15:04:36]FM_GetShiftState [15:04:36]SAM_PROTO_GetShiftState [15:04:36]wFMCommunicate request_size=4 [15:04:36]MH_SAM_APDU [15:04:36]CAPDU: 80 13 01 00 [15:04:36]Write to MH i2c: E2 08 00 89 0A 80 13 01 00 00 00 00 00 10 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:36]Read from MH i2c: E2 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 0E 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 0E 00 89 0A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2E [15:04:36]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:04:36]wFMCommunicate OK [15:04:36]SAM_PROTO_GetShiftState done [15:04:36]FM_GetShiftState done [15:04:36]req_shift_opened done [15:04:36]requested_item shift.open_date is exist - process it [15:04:36]req_shift_open_date [15:04:36]req_shift_open_date done [15:04:36]produce_requested_data done [15:04:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112568,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:04:36]process_action_free close_receipt [15:04:36]json_value_free [15:04:36]json_value_free done [15:04:36]process_json_proto returns [15:04:36]Send response to host [15:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112568,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:04:36]free response buf [15:04:36]execute_script done [15:04:36]execute_script returns [15:04:36]free content buf [15:04:36]Sock 9.Close socket [15:04:36]Sock 9.Thread stoped [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:53]accept exits with 8 [15:04:53]New connection [15:04:53]New thread 3066817892 created [15:04:53]Thread 3066674532 joined [15:04:53]Waiting for new connection... [15:04:53] Sock 8.Parse request [15:04:53]Sock 8.Check first char [15:04:53]Sock 8.First char is OK [15:04:53]request: POST /json_proto HTTP/1.0 [15:04:53]Method: POST [15:04:53]URL: /json_proto [15:04:53]Method is POST - this is cgi request [15:04:53]url: /json_proto [15:04:53]query_string will be loaded in cgi processing [15:04:53]execute_cgi json_proto POST (null) [15:04:53]execute_cgi path=json_proto method=POST [15:04:53]POST find Content-Length [15:04:53]Host: 172.17.59.68:8080 [15:04:53]Content-Length: 677 [15:04:53]Content-Type: application/json [15:04:53] [15:04:53]POST finish read [15:04:53]Found Content-Length = 677 [15:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:04:53]execute_script... [15:04: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)321254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:04:53]POST & json_proto [15:04:53]process_json_proto [15:04:53]json parsed OK: [15:04:53]protocol is kg_v1.0 [15:04:53]action value=close_receipt [15:04:53]process_action close_receipt [15:04:53]cmd_close_receipt [15:04:53]MH_GetDate [15:04:53]Write to MH i2c: F0 00 00 8A 0A 83 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: F0 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: F0 09 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: F0 09 00 8A 0A 00 97 39 78 66 BC EC 60 65 A7 [15:04:53]GetLastDocTimeStamp 1719155073 [15:04:53]current date 1719155095 [15:04:53]FM_GetShiftState [15:04:53]SAM_PROTO_GetShiftState [15:04:53]wFMCommunicate request_size=4 [15:04:53]MH_SAM_APDU [15:04:53]CAPDU: 80 13 01 00 [15:04:53]Write to MH i2c: E2 08 00 8B 0A 80 13 01 00 00 00 00 00 12 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:53]Read from MH i2c: E2 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 0E 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 0E 00 8B 0A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 30 [15:04:53]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:04:53]wFMCommunicate OK [15:04:53]SAM_PROTO_GetShiftState done [15:04:53]FM_GetShiftState done [15:04:53]opened in 1719106490 [15:04:53]opened+sec_in_day 1719192890 [15:04:53]quantity*price = 30012 [15:04:53]sum+1 = 30014 [15:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 170 23.06.2024 15:04 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112569 ФПД: 51382027713858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112569&fm=51382027713858&tin=02508201610067®Number=0000000000092771&sum=30000 [15:04:54]StoreToDocumentArchive [15:04:54]shift 392 fd 112569 [15:04:54]save to /storage/0392/doc_00112569 [15:04:54]save last doc name /storage/0392/doc_00112569 to /storage/kkm_last_doc_name [15:04:54]save OK [15:04:54]Clear old archive folders... [15:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:54]tlvbuf is 01BB7840 [15:04:54]SAM_PROTO_ClearQueue [15:04:54]wFMCommunicate request_size=4 [15:04:54]MH_SAM_APDU [15:04:54]CAPDU: 80 09 00 00 [15:04:54]Write to MH i2c: E2 08 00 98 0A 80 09 00 00 00 00 00 00 14 [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [15:04:55]RAPDU: 90 00 [15:04:55]wFMCommunicate OK [15:04:55]SAM_PROTO_ClearQueue done [15:04:55]KKMCreateOFDPacket [15:04:55]OFDProtocolAddRootSTLVToBuf [15:04:55]FM_MakeSignedData [15:04:55]FM_MakeSignedData [15:04:55]SAM_PROTO_SignData [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 0D 01 02 [15:04:55]Write to MH i2c: E2 08 00 99 0A 80 0D 01 02 00 00 00 00 1C [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [15:04:55]RAPDU: 90 00 [15:04:55]wFMCommunicate OK [15:04:55]wFMCommunicate request_size=255 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 AA 00 00 00 F4 03 04 00 97 39 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B7 01 00 35 04 06 00 2E [15:04:55]Write to MH i2c: E2 02 01 9A 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 AA 00 00 00 F4 03 04 00 97 39 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B7 01 00 35 04 06 00 2E 00 00 EE [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [15:04:55]RAPDU: 90 00 [15:04:55]wFMCommunicate OK [15:04:55]wFMCommunicate request_size=10 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 0D 02 02 05 BB 4F 82 7D 42 [15:04:55]Write to MH i2c: E2 0D 00 9B 0A 80 0D 02 02 05 00 BB 4F 82 7D 42 00 00 74 [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [15:04:55]RAPDU: 90 00 [15:04:55]wFMCommunicate OK [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 0D 03 02 [15:04:55]Write to MH i2c: E2 08 00 9C 0A 80 0D 03 02 00 00 00 00 21 [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 0B 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 0B 00 9C 0A 00 89 58 C5 35 69 AF 69 DA 90 00 58 [15:04:55]RAPDU: 89 58 C5 35 69 AF 69 DA 90 00 [15:04:55]wFMCommunicate OK [15:04:55]SAM_PROTO_SignData done [15:04:55]FM_MakeSignedData done [15:04:55]CreateOFDProtocolMessage [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 11 00 00 [15:04:55]Write to MH i2c: E2 08 00 9D 0A 80 11 00 00 00 00 00 00 21 [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 17 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 17 00 9D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [15:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:04:55]wFMCommunicate OK [15:04:55]CreateOFDProtocolMessage done [15:04:55]OFDSenderStorePacket 112569 [15:04:55]StoreOFDPacket docnum=112569 [15:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 96 07 01 84 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 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 AA 00 00 00 F4 03 04 00 97 39 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B7 01 00 35 04 06 00 2E BB 4F 82 7D 42 89 58 C5 35 69 AF 69 DA [15:04:55]CheckFolder [15:04:55]dirname=/storage/ofd_packets [15:04:55]CheckFolder done [15:04:55]ProducePacketName [15:04:55]name=ofd_packets/00112569 [15:04:55]NVStorageSaveData ofd_packets/00112569 [15:04:55]File name is /storage/ofd_packets/00112569 [15:04:55]Write 301 bytes [15:04:55]NVStorageSaveData done [15:04:55]OFDSenderStorePacket done [15:04:55]KKMCreateOFDPacket done [15:04:55]NVStorageSaveData kkm_last_timestamp [15:04:55]File name is /storage/kkm_last_timestamp [15:04:55]Write 4 bytes [15:04:55]NVStorageSaveData done [15:04:55]ExternCall_PrintAddStr [15:04:55]wPrintStart [15:04:55]Write to MH i2c: 01 00 00 9E 0A A8 [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: 01 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: 01 07 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 FF 0F BD [15:04:55]RasterBufferAndPrint [15:04:55]line Счет N : (1)321254 [15:04:55]line ИНН: 02508201610067 [15:04:55]line Контрольно-Кассовый Чек [15:04:55]line ПРОДАЖА [15:04:55]line ТРК (МРК, ГНК) : 11 [15:04:55]line Товар: 2710124130 [15:04:55]line Аи-92-К-5 [15:04:55]line 4.520 * 66.40 [15:04:55]line = 300.13 [15:04:55]line НДС 12% НСП 1% [15:04:55]line > о реализуемом товаре [15:04:55]line ОКРУГЛЕНИЕ: -0.13 [15:04:55]line ИТОГО: 300.00 [15:04:55]line Внесено: 300.00 [15:04:55]line СДАЧА: 0.00 [15:04:55]line НСП 1% : 2.66 [15:04:55]line НДС 12% : 31.87 [15:04:55]line Наличными: 300.00 [15:04:55]line Безнал.: 0.00 [15:04:55]line Место: АЗС № 65 "Партнер Нефть" [15:04:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:04:55]line СНО: Общий режим [15:04:55]line Чек 170 23.06.2024 15:04 [15:04:55]line Смена: 392 ФФД: 1.0 [15:04:55]line ЗНМ: 0300000198 [15:04:55]line РНМ: 0000000000092771 [15:04:55]line Версия ККМ: 001 [15:04:55]line ФМ: 0000000000875083 [15:04:55]line ФД: 112569 [15:04:55]line ФПД: 51382027713858 [15:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112569&fm=51382027713858&tin=02508201610067®Number=0000000000092771&sum=30000 [15:04:55]OFD Sender: Processing packet 112569 [packets to send 38, broken 37] [15:04:55]ProducePacketName [15:04:55]name=ofd_packets/00112569 [15:04:55]OFD Sender: To server: pG, [15:04:55]CommunicateWithHost lk.salyk.kg:30040 [15:04:55]ConnectInit lk.salyk.kg [15:04:55]written 0, free lines is 4095 [15:04:55]Connected sock=10 [15:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 96 07 01 84 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 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 AA 00 00 00 F4 03 04 00 97 39 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B7 01 00 35 04 06 00 2E BB 4F 82 7D 42 89 58 C5 35 69 AF 69 DA [15:04:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1F 47 47 00 0E BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B7 01 00 F4 03 04 00 81 D0 77 66 B6 04 01 00 00 29 FF 55 C5 FF A1 94 5A [15:04:56]CommunicateWithHost err = 0 [15:04:56]CheckOFDResponse [15:04:56]1017 (14) - 77093643461234 [15:04:56]1041 (16) - 0000000000875083 [15:04:56]1040 (4) - 112569 [15:04:56]1012 (4) - 23.06.2024 07:36 [15:04:56]1206 (1) - 0 [15:04:56]OFD Sender: Remove packet 112569 [15:04:56]ProducePacketName [15:04:56]name=ofd_packets/00112569 [15:04:56]NVStorageDeleteData [15:04:56]Write to MH i2c: 01 00 00 C9 0A D3 [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: 01 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: 01 07 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: 01 07 00 C9 0A 00 00 00 00 00 CD 0C B3 [15:04:56]RasterBufferAndPrint [15:04:56]line [15:04:56]line [15:04:56]line [15:04:56]line [15:04:56]line [15:04:56]written 0, free lines is 3283 [15:04:56]MH_Cut [15:04:56]Write to MH i2c: D1 01 00 D0 0A 01 AC [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: D1 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: D1 01 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: D1 01 00 D0 0A 00 AB [15:04:56]Write to MH i2c: 01 00 00 D1 0A DB [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]OFD Sender: No OFD packet to send [15:04:57]*** Cut start [15:04:57]*** Partial cut [15:04:57]*** CUTSNS_PIN = 1 [15:04:57]*** CUTSNS_PIN = 0 [15:04:57]*** Brake cut motor [15:04:57]Read from MH i2c: 01 [15:04:57]MH_I2C_Read... [15:04:57]*** Stop cut motor [15:04:57]*** Cut end [15:04:57]Read from MH i2c: 01 07 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 FF 0F F0 [15:04:57]process_action close_receipt done [15:04:57]requested_data is exist [15:04:57]produce_requested_data [15:04:57]requested_item fm.sn is exist - process it [15:04:57]wFMCommunicate request_size=4 [15:04:57]MH_SAM_APDU [15:04:57]CAPDU: 80 11 00 00 [15:04:57]Write to MH i2c: E2 08 00 D2 0A 80 11 00 00 00 00 00 00 56 [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:57]Read from MH i2c: E2 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 17 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 17 00 D2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [15:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:04:57]wFMCommunicate OK [15:04:57]requested_item fd.num is exist - process it [15:04:57]SAM_PROTO_GetFieldsCounters [15:04:57]wFMCommunicate request_size=4 [15:04:57]MH_SAM_APDU [15:04:57]CAPDU: 80 13 00 00 [15:04:57]Write to MH i2c: E2 08 00 D3 0A 80 13 00 00 00 00 00 00 59 [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:57]Read from MH i2c: E2 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 62 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 62 00 D3 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B7 01 00 0E 04 04 00 88 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 72 [15:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B7 01 00 0E 04 04 00 88 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 [15:04:57]wFMCommunicate OK [15:04:57]SAM_PROTO_GetFieldsCounters done [15:04:57]requested_item shift.num is exist - process it [15:04:57]requested_item shift.opened is exist - process it [15:04:57]req_shift_opened [15:04:57]FM_GetShiftState [15:04:57]SAM_PROTO_GetShiftState [15:04:57]wFMCommunicate request_size=4 [15:04:57]MH_SAM_APDU [15:04:57]CAPDU: 80 13 01 00 [15:04:57]Write to MH i2c: E2 08 00 D4 0A 80 13 01 00 00 00 00 00 5B [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:57]Read from MH i2c: E2 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 0E 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 0E 00 D4 0A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 79 [15:04:57]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:04:57]wFMCommunicate OK [15:04:57]SAM_PROTO_GetShiftState done [15:04:57]FM_GetShiftState done [15:04:57]req_shift_opened done [15:04:57]requested_item shift.open_date is exist - process it [15:04:57]req_shift_open_date [15:04:57]req_shift_open_date done [15:04:57]produce_requested_data done [15:04:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112569,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:04:57]process_action_free close_receipt [15:04:57]json_value_free [15:04:57]json_value_free done [15:04:57]process_json_proto returns [15:04:57]Send response to host [15:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112569,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:04:57]free response buf [15:04:57]execute_script done [15:04:57]execute_script returns [15:04:57]free content buf [15:04:57]Sock 8.Close socket [15:04:57]Sock 8.Thread stoped [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:13]accept exits with 9 [15:07:13]New connection [15:07:13]New thread 3066674532 created [15:07:13]Thread 3066817892 joined [15:07:13]Waiting for new connection... [15:07:13] Sock 9.Parse request [15:07:13]Sock 9.Check first char [15:07:13]Sock 9.First char is OK [15:07:13]request: POST /json_proto HTTP/1.0 [15:07:13]Method: POST [15:07:13]URL: /json_proto [15:07:13]Method is POST - this is cgi request [15:07:13]url: /json_proto [15:07:13]query_string will be loaded in cgi processing [15:07:13]execute_cgi json_proto POST (null) [15:07:13]execute_cgi path=json_proto method=POST [15:07:13]POST find Content-Length [15:07:13]Host: 172.17.59.68:8080 [15:07:13]Content-Length: 677 [15:07:13]Content-Type: application/json [15:07:13] [15:07:13]POST finish read [15:07:13]Found Content-Length = 677 [15:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:13]execute_script... [15:07: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)321255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:13]POST & json_proto [15:07:13]process_json_proto [15:07:13]json parsed OK: [15:07:13]protocol is kg_v1.0 [15:07:13]action value=close_receipt [15:07:13]process_action close_receipt [15:07:13]cmd_close_receipt [15:07:13]MH_GetDate [15:07:13]Write to MH i2c: F0 00 00 D5 0A CE [15:07:13]Write i2c OK [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: F0 [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: F0 09 00 [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: F0 09 00 D5 0A 00 22 3A 78 66 BC EC 60 65 7E [15:07:13]GetLastDocTimeStamp 1719155095 [15:07:13]current date 1719155234 [15:07:13]FM_GetShiftState [15:07:13]SAM_PROTO_GetShiftState [15:07:13]wFMCommunicate request_size=4 [15:07:13]MH_SAM_APDU [15:07:13]CAPDU: 80 13 01 00 [15:07:13]Write to MH i2c: E2 08 00 D6 0A 80 13 01 00 00 00 00 00 5D [15:07:13]Write i2c OK [15:07:13]MH_I2C_Read... [15:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:13]Read from MH i2c: E2 [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: E2 0E 00 [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: E2 0E 00 D6 0A 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 7B [15:07:13]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:07:13]wFMCommunicate OK [15:07:13]SAM_PROTO_GetShiftState done [15:07:13]FM_GetShiftState done [15:07:13]opened in 1719106490 [15:07:13]opened+sec_in_day 1719192890 [15:07:13]quantity*price = 10026 [15:07:13]sum+1 = 10027 [15:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 171 23.06.2024 15:07 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112570 ФПД: 95999750550287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150714&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112570&fm=95999750550287&tin=02508201610067®Number=0000000000092771&sum=10000 [15:07:14]StoreToDocumentArchive [15:07:14]shift 392 fd 112570 [15:07:14]save to /storage/0392/doc_00112570 [15:07:14]save last doc name /storage/0392/doc_00112570 to /storage/kkm_last_doc_name [15:07:14]save OK [15:07:14]Clear old archive folders... [15:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:14]tlvbuf is 01BAD350 [15:07:14]SAM_PROTO_ClearQueue [15:07:14]wFMCommunicate request_size=4 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 09 00 00 [15:07:14]Write to MH i2c: E2 08 00 E3 0A 80 09 00 00 00 00 00 00 5F [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [15:07:14]RAPDU: 90 00 [15:07:14]wFMCommunicate OK [15:07:14]SAM_PROTO_ClearQueue done [15:07:14]KKMCreateOFDPacket [15:07:14]OFDProtocolAddRootSTLVToBuf [15:07:14]FM_MakeSignedData [15:07:14]FM_MakeSignedData [15:07:14]SAM_PROTO_SignData [15:07:14]wFMCommunicate request_size=4 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 0D 01 02 [15:07:14]Write to MH i2c: E2 08 00 E4 0A 80 0D 01 02 00 00 00 00 67 [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [15:07:14]RAPDU: 90 00 [15:07:14]wFMCommunicate OK [15:07:14]wFMCommunicate request_size=255 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 22 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B7 01 00 35 04 06 00 57 [15:07:14]Write to MH i2c: E2 02 01 E5 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 22 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B7 01 00 35 04 06 00 57 00 00 E1 [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [15:07:14]RAPDU: 90 00 [15:07:14]wFMCommunicate OK [15:07:14]wFMCommunicate request_size=10 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 0D 02 02 05 4F AF 07 B3 0F [15:07:14]Write to MH i2c: E2 0D 00 E6 0A 80 0D 02 02 05 00 4F AF 07 B3 0F 00 00 3B [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:15]Read from MH i2c: E2 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: E2 03 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [15:07:15]RAPDU: 90 00 [15:07:15]wFMCommunicate OK [15:07:15]wFMCommunicate request_size=4 [15:07:15]MH_SAM_APDU [15:07:15]CAPDU: 80 0D 03 02 [15:07:15]Write to MH i2c: E2 08 00 E7 0A 80 0D 03 02 00 00 00 00 6C [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:15]Read from MH i2c: E2 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: E2 0B 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: E2 0B 00 E7 0A 00 09 4A 03 D3 AB 55 0C 0B 90 00 AD [15:07:15]RAPDU: 09 4A 03 D3 AB 55 0C 0B 90 00 [15:07:15]wFMCommunicate OK [15:07:15]SAM_PROTO_SignData done [15:07:15]FM_MakeSignedData done [15:07:15]CreateOFDProtocolMessage [15:07:15]wFMCommunicate request_size=4 [15:07:15]MH_SAM_APDU [15:07:15]CAPDU: 80 11 00 00 [15:07:15]Write to MH i2c: E2 08 00 E8 0A 80 11 00 00 00 00 00 00 6C [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:15]Read from MH i2c: E2 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: E2 17 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: E2 17 00 E8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [15:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:07:15]wFMCommunicate OK [15:07:15]CreateOFDProtocolMessage done [15:07:15]OFDSenderStorePacket 112570 [15:07:15]StoreOFDPacket docnum=112570 [15:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 29 07 01 51 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 22 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B7 01 00 35 04 06 00 57 4F AF 07 B3 0F 09 4A 03 D3 AB 55 0C 0B [15:07:15]CheckFolder [15:07:15]dirname=/storage/ofd_packets [15:07:15]CheckFolder done [15:07:15]ProducePacketName [15:07:15]name=ofd_packets/00112570 [15:07:15]NVStorageSaveData ofd_packets/00112570 [15:07:15]File name is /storage/ofd_packets/00112570 [15:07:15]Write 301 bytes [15:07:15]NVStorageSaveData done [15:07:15]OFDSenderStorePacket done [15:07:15]KKMCreateOFDPacket done [15:07:15]NVStorageSaveData kkm_last_timestamp [15:07:15]File name is /storage/kkm_last_timestamp [15:07:15]Write 4 bytes [15:07:15]NVStorageSaveData done [15:07:15]ExternCall_PrintAddStr [15:07:15]wPrintStart [15:07:15]Write to MH i2c: 01 00 00 E9 0A F3 [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 07 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 07 00 E9 0A 00 00 00 00 00 FF 0F 08 [15:07:15]RasterBufferAndPrint [15:07:15]line Счет N : (1)321255 [15:07:15]line ИНН: 02508201610067 [15:07:15]line Контрольно-Кассовый Чек [15:07:15]line ПРОДАЖА [15:07:15]line ТРК (МРК, ГНК) : 11 [15:07:15]line Товар: 2710124130 [15:07:15]line Аи-92-К-5 [15:07:15]line 1.510 * 66.40 [15:07:15]line = 100.26 [15:07:15]line НДС 12% НСП 1% [15:07:15]line > о реализуемом товаре [15:07:15]line ОКРУГЛЕНИЕ: -0.26 [15:07:15]line ИТОГО: 100.00 [15:07:15]line Внесено: 100.00 [15:07:15]line СДАЧА: 0.00 [15:07:15]line НСП 1% : 0.89 [15:07:15]line НДС 12% : 10.65 [15:07:15]line Наличными: 100.00 [15:07:15]line Безнал.: 0.00 [15:07:15]line Место: АЗС № 65 "Партнер Нефть" [15:07:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:07:15]line СНО: Общий режим [15:07:15]line Чек 171 23.06.2024 15:07 [15:07:15]line Смена: 392 ФФД: 1.0 [15:07:15]line ЗНМ: 0300000198 [15:07:15]line РНМ: 0000000000092771 [15:07:15]line Версия ККМ: 001 [15:07:15]line ФМ: 0000000000875083 [15:07:15]line ФД: 112570 [15:07:15]line ФПД: 95999750550287 [15:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150714&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112570&fm=95999750550287&tin=02508201610067®Number=0000000000092771&sum=10000 [15:07:15]OFD Sender: Processing packet 112570 [packets to send 38, broken 37] [15:07:15]ProducePacketName [15:07:15]name=ofd_packets/00112570 [15:07:15]OFD Sender: To server: pG, [15:07:15]CommunicateWithHost lk.salyk.kg:30040 [15:07:15]ConnectInit lk.salyk.kg [15:07:15]written 0, free lines is 4095 [15:07:15]Connected sock=10 [15:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 29 07 01 51 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 22 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B7 01 00 35 04 06 00 57 4F AF 07 B3 0F 09 4A 03 D3 AB 55 0C 0B [15:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F0 BF 47 00 27 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B7 01 00 F4 03 04 00 0C D1 77 66 B6 04 01 00 00 AE 7A CF 47 EF D6 3E 26 [15:07:15]CommunicateWithHost err = 0 [15:07:15]CheckOFDResponse [15:07:15]1017 (14) - 77093643461234 [15:07:15]1041 (16) - 0000000000875083 [15:07:15]1040 (4) - 112570 [15:07:15]1012 (4) - 23.06.2024 07:38 [15:07:15]1206 (1) - 0 [15:07:15]OFD Sender: Remove packet 112570 [15:07:15]ProducePacketName [15:07:15]name=ofd_packets/00112570 [15:07:15]NVStorageDeleteData [15:07:15]Write to MH i2c: 01 00 00 14 0B 1F [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 07 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 07 00 14 0B 00 00 00 00 00 CA 0C FC [15:07:15]RasterBufferAndPrint [15:07:15]line [15:07:15]line [15:07:15]line [15:07:15]line [15:07:15]line [15:07:15]written 0, free lines is 3280 [15:07:15]MH_Cut [15:07:15]Write to MH i2c: D1 01 00 1B 0B 01 F8 [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: D1 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: D1 01 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: D1 01 00 1B 0B 00 F7 [15:07:15]Write to MH i2c: 01 00 00 1C 0B 27 [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:16]OFD Sender: No OFD packet to send [15:07:16]*** Cut start [15:07:16]*** Partial cut [15:07:16]*** CUTSNS_PIN = 1 [15:07:16]*** CUTSNS_PIN = 0 [15:07:16]*** Brake cut motor [15:07:17]Read from MH i2c: 01 [15:07:17]MH_I2C_Read... [15:07:17]*** Stop cut motor [15:07:17]*** Cut end [15:07:17]Read from MH i2c: 01 07 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 FF 0F 3C [15:07:17]process_action close_receipt done [15:07:17]requested_data is exist [15:07:17]produce_requested_data [15:07:17]requested_item fm.sn is exist - process it [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 11 00 00 [15:07:17]Write to MH i2c: E2 08 00 1D 0B 80 11 00 00 00 00 00 00 A2 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 17 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 17 00 1D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [15:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:07:17]wFMCommunicate OK [15:07:17]requested_item fd.num is exist - process it [15:07:17]SAM_PROTO_GetFieldsCounters [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 13 00 00 [15:07:17]Write to MH i2c: E2 08 00 1E 0B 80 13 00 00 00 00 00 00 A5 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 62 00 [15:07:17]MH_I2C_Read... [15:07:17]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 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B7 01 00 0E 04 04 00 88 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 C2 [15:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B7 01 00 0E 04 04 00 88 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 [15:07:17]wFMCommunicate OK [15:07:17]SAM_PROTO_GetFieldsCounters done [15:07:17]requested_item shift.num is exist - process it [15:07:17]requested_item shift.opened is exist - process it [15:07:17]req_shift_opened [15:07:17]FM_GetShiftState [15:07:17]SAM_PROTO_GetShiftState [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 13 01 00 [15:07:17]Write to MH i2c: E2 08 00 1F 0B 80 13 01 00 00 00 00 00 A7 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 0E 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 0E 00 1F 0B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C5 [15:07:17]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:07:17]wFMCommunicate OK [15:07:17]SAM_PROTO_GetShiftState done [15:07:17]FM_GetShiftState done [15:07:17]req_shift_opened done [15:07:17]requested_item shift.open_date is exist - process it [15:07:17]req_shift_open_date [15:07:17]req_shift_open_date done [15:07:17]produce_requested_data done [15:07:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112570,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:07:17]process_action_free close_receipt [15:07:17]json_value_free [15:07:17]json_value_free done [15:07:17]process_json_proto returns [15:07:17]Send response to host [15:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112570,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:07:17]free response buf [15:07:17]execute_script done [15:07:17]execute_script returns [15:07:17]free content buf [15:07:17]Sock 9.Close socket [15:07:17]Sock 9.Thread stoped [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:45]accept exits with 8 [15:07:45]New connection [15:07:45]New thread 3066817892 created [15:07:45]Thread 3066674532 joined [15:07:45]Waiting for new connection... [15:07:45] Sock 8.Parse request [15:07:45]Sock 8.Check first char [15:07:45]Sock 8.First char is OK [15:07:45]request: POST /json_proto HTTP/1.0 [15:07:45]Method: POST [15:07:45]URL: /json_proto [15:07:45]Method is POST - this is cgi request [15:07:45]url: /json_proto [15:07:45]query_string will be loaded in cgi processing [15:07:45]execute_cgi json_proto POST (null) [15:07:45]execute_cgi path=json_proto method=POST [15:07:45]POST find Content-Length [15:07:45]Host: 172.17.59.68:8080 [15:07:45]Content-Length: 802 [15:07:45]Content-Type: application/json [15:07:45] [15:07:45]POST finish read [15:07:45]Found Content-Length = 802 [15:07:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:45]execute_script... [15:07: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)321256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:45]POST & json_proto [15:07:45]process_json_proto [15:07:45]json parsed OK: [15:07:45]protocol is kg_v1.0 [15:07:45]action value=close_receipt [15:07:45]process_action close_receipt [15:07:45]cmd_close_receipt [15:07:45]MH_GetDate [15:07:45]Write to MH i2c: F0 00 00 20 0B 1A [15:07:45]Write i2c OK [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: F0 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: F0 09 00 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: F0 09 00 20 0B 00 43 3A 78 66 BC EC 60 65 EB [15:07:45]GetLastDocTimeStamp 1719155234 [15:07:45]current date 1719155267 [15:07:45]FM_GetShiftState [15:07:45]SAM_PROTO_GetShiftState [15:07:45]wFMCommunicate request_size=4 [15:07:45]MH_SAM_APDU [15:07:45]CAPDU: 80 13 01 00 [15:07:45]Write to MH i2c: E2 08 00 21 0B 80 13 01 00 00 00 00 00 A9 [15:07:45]Write i2c OK [15:07:45]MH_I2C_Read... [15:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:46]Read from MH i2c: E2 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: E2 0E 00 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: E2 0E 00 21 0B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 C7 [15:07:46]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:07:46]wFMCommunicate OK [15:07:46]SAM_PROTO_GetShiftState done [15:07:46]FM_GetShiftState done [15:07:46]opened in 1719106490 [15:07:46]opened+sec_in_day 1719192890 [15:07:46]quantity*price = 60069 [15:07:46]sum+1 = 60071 [15:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.70 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 0.00 Безнал.: 600.70 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 172 23.06.2024 15:07 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112571 ФПД: 59842167226742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150747&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112571&fm=59842167226742&tin=02508201610067®Number=0000000000092771&sum=60070 [15:07:47]StoreToDocumentArchive [15:07:47]shift 392 fd 112571 [15:07:47]save to /storage/0392/doc_00112571 [15:07:47]save last doc name /storage/0392/doc_00112571 to /storage/kkm_last_doc_name [15:07:47]save OK [15:07:47]Clear old archive folders... [15:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:07:47]tlvbuf is 01B59840 [15:07:47]SAM_PROTO_ClearQueue [15:07:47]wFMCommunicate request_size=4 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 09 00 00 [15:07:47]Write to MH i2c: E2 08 00 2E 0B 80 09 00 00 00 00 00 00 AB [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 2E 0B 00 90 00 AD [15:07:47]RAPDU: 90 00 [15:07:47]wFMCommunicate OK [15:07:47]SAM_PROTO_ClearQueue done [15:07:47]KKMCreateOFDPacket [15:07:47]OFDProtocolAddRootSTLVToBuf [15:07:47]FM_MakeSignedData [15:07:47]FM_MakeSignedData [15:07:47]SAM_PROTO_SignData [15:07:47]wFMCommunicate request_size=4 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 0D 01 02 [15:07:47]Write to MH i2c: E2 08 00 2F 0B 80 0D 01 02 00 00 00 00 B3 [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 2F 0B 00 90 00 AE [15:07:47]RAPDU: 90 00 [15:07:47]wFMCommunicate OK [15:07:47]wFMCommunicate request_size=255 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 43 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B7 01 00 35 04 06 00 36 6D 17 1E [15:07:47]Write to MH i2c: E2 02 01 30 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 43 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B7 01 00 35 04 06 00 36 6D 17 1E 00 00 9A [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 30 0B 00 90 00 AF [15:07:47]RAPDU: 90 00 [15:07:47]wFMCommunicate OK [15:07:47]wFMCommunicate request_size=7 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 0D 02 02 02 C1 76 [15:07:47]Write to MH i2c: E2 0A 00 31 0B 80 0D 02 02 02 00 C1 76 00 00 F1 [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [15:07:47]RAPDU: 90 00 [15:07:47]wFMCommunicate OK [15:07:47]wFMCommunicate request_size=4 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 0D 03 02 [15:07:47]Write to MH i2c: E2 08 00 32 0B 80 0D 03 02 00 00 00 00 B8 [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 0B 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 0B 00 32 0B 00 41 70 41 7D ED F5 E6 ED 90 00 DD [15:07:47]RAPDU: 41 70 41 7D ED F5 E6 ED 90 00 [15:07:47]wFMCommunicate OK [15:07:47]SAM_PROTO_SignData done [15:07:47]FM_MakeSignedData done [15:07:47]CreateOFDProtocolMessage [15:07:47]wFMCommunicate request_size=4 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 11 00 00 [15:07:47]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 17 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [15:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:07:47]wFMCommunicate OK [15:07:47]CreateOFDProtocolMessage done [15:07:47]OFDSenderStorePacket 112571 [15:07:47]StoreOFDPacket docnum=112571 [15:07:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1C 78 04 01 30 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 43 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B7 01 00 35 04 06 00 36 6D 17 1E C1 76 41 70 41 7D ED F5 E6 ED [15:07:47]CheckFolder [15:07:47]dirname=/storage/ofd_packets [15:07:47]CheckFolder done [15:07:47]ProducePacketName [15:07:47]name=ofd_packets/00112571 [15:07:47]NVStorageSaveData ofd_packets/00112571 [15:07:47]File name is /storage/ofd_packets/00112571 [15:07:47]Write 298 bytes [15:07:47]NVStorageSaveData done [15:07:47]OFDSenderStorePacket done [15:07:47]KKMCreateOFDPacket done [15:07:47]NVStorageSaveData kkm_last_timestamp [15:07:47]File name is /storage/kkm_last_timestamp [15:07:47]Write 4 bytes [15:07:47]NVStorageSaveData done [15:07:47]ExternCall_PrintAddStr [15:07:47]wPrintStart [15:07:47]Write to MH i2c: 01 00 00 34 0B 3F [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: 01 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: 01 07 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: 01 07 00 34 0B 00 00 00 00 00 FF 0F 54 [15:07:47]RasterBufferAndPrint [15:07:47]line Счет N : (1)321256 [15:07:47]line ИНН: 02508201610067 [15:07:47]line Контрольно-Кассовый Чек [15:07:47]line ПРОДАЖА [15:07:47]line ТРК (МРК, ГНК) : 22 [15:07:47]line Товар: 2710194210 [15:07:47]line ДТ-К-5 [15:07:47]line 8.240 * 72.90 [15:07:47]line = 600.70 [15:07:47]line НДС 12% НСП 1% [15:07:47]line > о реализуемом товаре [15:07:47]line ИТОГО: 600.70 [15:07:47]line НСП 1% : 5.32 [15:07:47]line НДС 12% : 63.79 [15:07:47]line Наличными: 0.00 [15:07:47]line Безнал.: 600.70 [15:07:47]line Место: АЗС № 65 "Партнер Нефть" [15:07:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:07:47]line СНО: Общий режим [15:07:47]line Чек 172 23.06.2024 15:07 [15:07:47]line Смена: 392 ФФД: 1.0 [15:07:47]line ЗНМ: 0300000198 [15:07:47]line РНМ: 0000000000092771 [15:07:47]line Версия ККМ: 001 [15:07:47]line Платежная система: О! деньги [15:07:47]line ФМ: 0000000000875083 [15:07:47]line ФД: 112571 [15:07:47]line ФПД: 59842167226742 [15:07:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150747&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112571&fm=59842167226742&tin=02508201610067®Number=0000000000092771&sum=60070 [15:07:48]OFD Sender: Processing packet 112571 [packets to send 38, broken 37] [15:07:48]ProducePacketName [15:07:48]name=ofd_packets/00112571 [15:07:48]OFD Sender: To server: pG, [15:07:48]CommunicateWithHost lk.salyk.kg:30040 [15:07:48]ConnectInit lk.salyk.kg [15:07:48]written 0, free lines is 4095 [15:07:48]Connected sock=10 [15:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1C 78 04 01 30 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 43 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B7 01 00 35 04 06 00 36 6D 17 1E C1 76 41 70 41 7D ED F5 E6 ED [15:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FC CE 47 00 19 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B7 01 00 F4 03 04 00 2D D1 77 66 B6 04 01 00 00 82 A0 0F 04 96 D7 B9 42 [15:07:48]CommunicateWithHost err = 0 [15:07:48]CheckOFDResponse [15:07:48]1017 (14) - 77093643461234 [15:07:48]1041 (16) - 0000000000875083 [15:07:48]1040 (4) - 112571 [15:07:48]1012 (4) - 23.06.2024 07:39 [15:07:48]1206 (1) - 0 [15:07:48]OFD Sender: Remove packet 112571 [15:07:48]ProducePacketName [15:07:48]name=ofd_packets/00112571 [15:07:48]NVStorageDeleteData [15:07:48]Write to MH i2c: 01 00 00 5E 0B 69 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 5E 0B 00 00 00 00 00 E1 0C 5D [15:07:48]RasterBufferAndPrint [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]written 0, free lines is 3303 [15:07:48]MH_Cut [15:07:48]Write to MH i2c: D1 01 00 65 0B 01 42 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 01 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 01 00 65 0B 00 41 [15:07:48]Write to MH i2c: 01 00 00 66 0B 71 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]OFD Sender: No OFD packet to send [15:07:49]*** Cut start [15:07:49]*** Partial cut [15:07:49]*** CUTSNS_PIN = 1 [15:07:49]*** CUTSNS_PIN = 0 [15:07:49]*** Brake cut motor [15:07:49]Read from MH i2c: 01 [15:07:49]MH_I2C_Read... [15:07:49]*** Stop cut motor [15:07:49]*** Cut end [15:07:49]Read from MH i2c: 01 07 00 [15:07:49]MH_I2C_Read... [15:07:49]Read from MH i2c: 01 07 00 66 0B 00 00 00 00 00 FF 0F 86 [15:07:49]process_action close_receipt done [15:07:49]requested_data is exist [15:07:49]produce_requested_data [15:07:49]requested_item fm.sn is exist - process it [15:07:49]wFMCommunicate request_size=4 [15:07:49]MH_SAM_APDU [15:07:49]CAPDU: 80 11 00 00 [15:07:49]Write to MH i2c: E2 08 00 67 0B 80 11 00 00 00 00 00 00 EC [15:07:49]Write i2c OK [15:07:49]MH_I2C_Read... [15:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:49]Read from MH i2c: E2 [15:07:49]MH_I2C_Read... [15:07:49]Read from MH i2c: E2 17 00 [15:07:49]MH_I2C_Read... [15:07:49]Read from MH i2c: E2 17 00 67 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [15:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:07:49]wFMCommunicate OK [15:07:49]requested_item fd.num is exist - process it [15:07:49]SAM_PROTO_GetFieldsCounters [15:07:49]wFMCommunicate request_size=4 [15:07:49]MH_SAM_APDU [15:07:49]CAPDU: 80 13 00 00 [15:07:49]Write to MH i2c: E2 08 00 68 0B 80 13 00 00 00 00 00 00 EF [15:07:49]Write i2c OK [15:07:49]MH_I2C_Read... [15:07:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:49]Read from MH i2c: E2 [15:07:49]MH_I2C_Read... [15:07:49]Read from MH i2c: E2 62 00 [15:07:49]MH_I2C_Read... [15:07:49]Read from MH i2c: E2 62 00 68 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B7 01 00 0E 04 04 00 88 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 10 [15:07:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B7 01 00 0E 04 04 00 88 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 [15:07:49]wFMCommunicate OK [15:07:49]SAM_PROTO_GetFieldsCounters done [15:07:49]requested_item shift.num is exist - process it [15:07:49]requested_item shift.opened is exist - process it [15:07:49]req_shift_opened [15:07:49]FM_GetShiftState [15:07:49]SAM_PROTO_GetShiftState [15:07:49]wFMCommunicate request_size=4 [15:07:49]MH_SAM_APDU [15:07:49]CAPDU: 80 13 01 00 [15:07:49]Write to MH i2c: E2 08 00 69 0B 80 13 01 00 00 00 00 00 F1 [15:07:49]Write i2c OK [15:07:49]MH_I2C_Read... [15:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:50]Read from MH i2c: E2 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 0E 00 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 0E 00 69 0B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 0F [15:07:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:07:50]wFMCommunicate OK [15:07:50]SAM_PROTO_GetShiftState done [15:07:50]FM_GetShiftState done [15:07:50]req_shift_opened done [15:07:50]requested_item shift.open_date is exist - process it [15:07:50]req_shift_open_date [15:07:50]req_shift_open_date done [15:07:50]produce_requested_data done [15:07:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112571,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:07:50]process_action_free close_receipt [15:07:50]json_value_free [15:07:50]json_value_free done [15:07:50]process_json_proto returns [15:07:50]Send response to host [15:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112571,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:07:50]free response buf [15:07:50]execute_script done [15:07:50]execute_script returns [15:07:50]free content buf [15:07:50]Sock 8.Close socket [15:07:50]Sock 8.Thread stoped [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]accept exits with 9 [15:08:28]New connection [15:08:28]New thread 3066674532 created [15:08:28]Thread 3066817892 joined [15:08:28]Waiting for new connection... [15:08:28] Sock 9.Parse request [15:08:28]Sock 9.Check first char [15:08:28]Sock 9.First char is OK [15:08:28]request: POST /json_proto HTTP/1.0 [15:08:28]Method: POST [15:08:28]URL: /json_proto [15:08:28]Method is POST - this is cgi request [15:08:28]url: /json_proto [15:08:28]query_string will be loaded in cgi processing [15:08:28]execute_cgi json_proto POST (null) [15:08:28]execute_cgi path=json_proto method=POST [15:08:28]POST find Content-Length [15:08:28]Host: 172.17.59.68:8080 [15:08:28]Content-Length: 803 [15:08:28]Content-Type: application/json [15:08:28] [15:08:28]POST finish read [15:08:28]Found Content-Length = 803 [15:08:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 11.800, "sum" : 860.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 860.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:28]execute_script... [15:08: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)321257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 11.800, "sum" : 860.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 860.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:28]POST & json_proto [15:08:28]process_json_proto [15:08:28]json parsed OK: [15:08:28]protocol is kg_v1.0 [15:08:28]action value=close_receipt [15:08:28]process_action close_receipt [15:08:28]cmd_close_receipt [15:08:28]MH_GetDate [15:08:28]Write to MH i2c: F0 00 00 6A 0B 64 [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: F0 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: F0 09 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: F0 09 00 6A 0B 00 6D 3A 78 66 BC EC 60 65 5F [15:08:28]GetLastDocTimeStamp 1719155267 [15:08:28]current date 1719155309 [15:08:28]FM_GetShiftState [15:08:28]SAM_PROTO_GetShiftState [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 13 01 00 [15:08:28]Write to MH i2c: E2 08 00 6B 0B 80 13 01 00 00 00 00 00 F3 [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 0E 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 0E 00 6B 0B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 11 [15:08:28]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:08:28]wFMCommunicate OK [15:08:28]SAM_PROTO_GetShiftState done [15:08:28]FM_GetShiftState done [15:08:28]opened in 1719106490 [15:08:28]opened+sec_in_day 1719192890 [15:08:28]quantity*price = 86022 [15:08:28]sum+1 = 86023 [15:08:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 860.22 НСП 1% : 7.61 НДС 12% : 91.35 Наличными: 0.00 Безнал.: 860.22 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 173 23.06.2024 15:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112572 ФПД: 20617409682512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150829&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112572&fm=20617409682512&tin=02508201610067®Number=0000000000092771&sum=86022 [15:08:29]StoreToDocumentArchive [15:08:29]shift 392 fd 112572 [15:08:29]save to /storage/0392/doc_00112572 [15:08:29]save last doc name /storage/0392/doc_00112572 to /storage/kkm_last_doc_name [15:08:29]save OK [15:08:29]Clear old archive folders... [15:08:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:08:29]tlvbuf is 01B80BB0 [15:08:29]SAM_PROTO_ClearQueue [15:08:29]wFMCommunicate request_size=4 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 09 00 00 [15:08:29]Write to MH i2c: E2 08 00 78 0B 80 09 00 00 00 00 00 00 F5 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 78 0B 00 90 00 F7 [15:08:29]RAPDU: 90 00 [15:08:29]wFMCommunicate OK [15:08:29]SAM_PROTO_ClearQueue done [15:08:29]KKMCreateOFDPacket [15:08:29]OFDProtocolAddRootSTLVToBuf [15:08:29]FM_MakeSignedData [15:08:29]FM_MakeSignedData [15:08:29]SAM_PROTO_SignData [15:08:29]wFMCommunicate request_size=4 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 0D 01 02 [15:08:29]Write to MH i2c: E2 08 00 79 0B 80 0D 01 02 00 00 00 00 FD [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 79 0B 00 90 00 F8 [15:08:29]RAPDU: 90 00 [15:08:29]wFMCommunicate OK [15:08:29]wFMCommunicate request_size=255 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 50 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 6D 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B7 01 00 35 04 06 00 12 C0 5D 61 [15:08:29]Write to MH i2c: E2 02 01 7A 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 50 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 6D 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B7 01 00 35 04 06 00 12 C0 5D 61 00 00 C7 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [15:08:29]RAPDU: 90 00 [15:08:29]wFMCommunicate OK [15:08:29]wFMCommunicate request_size=7 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 0D 02 02 02 5C 50 [15:08:29]Write to MH i2c: E2 0A 00 7B 0B 80 0D 02 02 02 00 5C 50 00 00 B0 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [15:08:29]RAPDU: 90 00 [15:08:29]wFMCommunicate OK [15:08:29]wFMCommunicate request_size=4 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 0D 03 02 [15:08:29]Write to MH i2c: E2 08 00 7C 0B 80 0D 03 02 00 00 00 00 02 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 0B 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 0B 00 7C 0B 00 C6 EF 4F 44 FD AA 99 E0 90 00 6B [15:08:29]RAPDU: C6 EF 4F 44 FD AA 99 E0 90 00 [15:08:29]wFMCommunicate OK [15:08:29]SAM_PROTO_SignData done [15:08:29]FM_MakeSignedData done [15:08:29]CreateOFDProtocolMessage [15:08:29]wFMCommunicate request_size=4 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 11 00 00 [15:08:29]Write to MH i2c: E2 08 00 7D 0B 80 11 00 00 00 00 00 00 02 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 17 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 17 00 7D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [15:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:08:29]wFMCommunicate OK [15:08:29]CreateOFDProtocolMessage done [15:08:29]OFDSenderStorePacket 112572 [15:08:29]StoreOFDPacket docnum=112572 [15:08:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CE B4 04 01 8C 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 18 2E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 50 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 6D 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B7 01 00 35 04 06 00 12 C0 5D 61 5C 50 C6 EF 4F 44 FD AA 99 E0 [15:08:29]CheckFolder [15:08:29]dirname=/storage/ofd_packets [15:08:29]CheckFolder done [15:08:29]ProducePacketName [15:08:29]name=ofd_packets/00112572 [15:08:29]NVStorageSaveData ofd_packets/00112572 [15:08:29]File name is /storage/ofd_packets/00112572 [15:08:29]Write 298 bytes [15:08:29]NVStorageSaveData done [15:08:29]OFDSenderStorePacket done [15:08:29]KKMCreateOFDPacket done [15:08:29]NVStorageSaveData kkm_last_timestamp [15:08:29]File name is /storage/kkm_last_timestamp [15:08:29]Write 4 bytes [15:08:29]NVStorageSaveData done [15:08:29]ExternCall_PrintAddStr [15:08:29]wPrintStart [15:08:29]Write to MH i2c: 01 00 00 7E 0B 89 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: 01 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: 01 07 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: 01 07 00 7E 0B 00 00 00 00 00 FF 0F 9E [15:08:29]RasterBufferAndPrint [15:08:29]line Счет N : (1)321257 [15:08:29]line ИНН: 02508201610067 [15:08:29]line Контрольно-Кассовый Чек [15:08:29]line ПРОДАЖА [15:08:29]line ТРК (МРК, ГНК) : 22 [15:08:29]line Товар: 2710194210 [15:08:29]line ДТ-К-5 [15:08:29]line 11.800 * 72.90 [15:08:29]line = 860.22 [15:08:29]line НДС 12% НСП 1% [15:08:29]line > о реализуемом товаре [15:08:29]line ИТОГО: 860.22 [15:08:29]line НСП 1% : 7.61 [15:08:29]line НДС 12% : 91.35 [15:08:29]line Наличными: 0.00 [15:08:29]line Безнал.: 860.22 [15:08:29]line Место: АЗС № 65 "Партнер Нефть" [15:08:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:08:29]line СНО: Общий режим [15:08:29]line Чек 173 23.06.2024 15:08 [15:08:29]line Смена: 392 ФФД: 1.0 [15:08:29]line ЗНМ: 0300000198 [15:08:29]line РНМ: 0000000000092771 [15:08:29]line Версия ККМ: 001 [15:08:29]line Платежная система: О! деньги [15:08:29]line ФМ: 0000000000875083 [15:08:29]line ФД: 112572 [15:08:29]line ФПД: 20617409682512 [15:08:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150829&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112572&fm=20617409682512&tin=02508201610067®Number=0000000000092771&sum=86022 [15:08:30]OFD Sender: Processing packet 112572 [packets to send 38, broken 37] [15:08:30]ProducePacketName [15:08:30]name=ofd_packets/00112572 [15:08:30]OFD Sender: To server: pG, [15:08:30]CommunicateWithHost lk.salyk.kg:30040 [15:08:30]ConnectInit lk.salyk.kg [15:08:30]written 0, free lines is 4095 [15:08:30]Connected sock=10 [15:08:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CE B4 04 01 8C 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 18 2E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 50 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 6D 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B7 01 00 35 04 06 00 12 C0 5D 61 5C 50 C6 EF 4F 44 FD AA 99 E0 [15:08:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1D E0 47 00 5C 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B7 01 00 F4 03 04 00 57 D1 77 66 B6 04 01 00 00 00 04 80 E6 86 E2 A3 9C [15:08:30]CommunicateWithHost err = 0 [15:08:30]CheckOFDResponse [15:08:30]1017 (14) - 77093643461234 [15:08:30]1041 (16) - 0000000000875083 [15:08:30]1040 (4) - 112572 [15:08:30]1012 (4) - 23.06.2024 07:40 [15:08:30]1206 (1) - 0 [15:08:30]OFD Sender: Remove packet 112572 [15:08:30]ProducePacketName [15:08:30]name=ofd_packets/00112572 [15:08:30]NVStorageDeleteData [15:08:30]Write to MH i2c: 01 00 00 A8 0B B3 [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: 01 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: 01 07 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: 01 07 00 A8 0B 00 00 00 00 00 E4 0C AA [15:08:30]RasterBufferAndPrint [15:08:30]line [15:08:30]line [15:08:30]line [15:08:30]line [15:08:30]line [15:08:30]written 0, free lines is 3307 [15:08:30]MH_Cut [15:08:30]Write to MH i2c: D1 01 00 AF 0B 01 8C [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: D1 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: D1 01 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: D1 01 00 AF 0B 00 8B [15:08:30]Write to MH i2c: 01 00 00 B0 0B BB [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]OFD Sender: No OFD packet to send [15:08:31]*** Cut start [15:08:31]*** Partial cut [15:08:31]*** CUTSNS_PIN = 1 [15:08:31]*** CUTSNS_PIN = 0 [15:08:31]*** Brake cut motor [15:08:31]Read from MH i2c: 01 [15:08:31]MH_I2C_Read... [15:08:31]*** Stop cut motor [15:08:31]*** Cut end [15:08:31]Read from MH i2c: 01 07 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: 01 07 00 B0 0B 00 00 00 00 00 FF 0F D0 [15:08:31]process_action close_receipt done [15:08:31]requested_data is exist [15:08:31]produce_requested_data [15:08:31]requested_item fm.sn is exist - process it [15:08:31]wFMCommunicate request_size=4 [15:08:31]MH_SAM_APDU [15:08:31]CAPDU: 80 11 00 00 [15:08:31]Write to MH i2c: E2 08 00 B1 0B 80 11 00 00 00 00 00 00 36 [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:32]Read from MH i2c: E2 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 17 00 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 17 00 B1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [15:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:08:32]wFMCommunicate OK [15:08:32]requested_item fd.num is exist - process it [15:08:32]SAM_PROTO_GetFieldsCounters [15:08:32]wFMCommunicate request_size=4 [15:08:32]MH_SAM_APDU [15:08:32]CAPDU: 80 13 00 00 [15:08:32]Write to MH i2c: E2 08 00 B2 0B 80 13 00 00 00 00 00 00 39 [15:08:32]Write i2c OK [15:08:32]MH_I2C_Read... [15:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:32]Read from MH i2c: E2 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 62 00 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 62 00 B2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B7 01 00 0E 04 04 00 88 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 5E [15:08:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B7 01 00 0E 04 04 00 88 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 [15:08:32]wFMCommunicate OK [15:08:32]SAM_PROTO_GetFieldsCounters done [15:08:32]requested_item shift.num is exist - process it [15:08:32]requested_item shift.opened is exist - process it [15:08:32]req_shift_opened [15:08:32]FM_GetShiftState [15:08:32]SAM_PROTO_GetShiftState [15:08:32]wFMCommunicate request_size=4 [15:08:32]MH_SAM_APDU [15:08:32]CAPDU: 80 13 01 00 [15:08:32]Write to MH i2c: E2 08 00 B3 0B 80 13 01 00 00 00 00 00 3B [15:08:32]Write i2c OK [15:08:32]MH_I2C_Read... [15:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:32]Read from MH i2c: E2 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 0E 00 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 0E 00 B3 0B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 59 [15:08:32]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:08:32]wFMCommunicate OK [15:08:32]SAM_PROTO_GetShiftState done [15:08:32]FM_GetShiftState done [15:08:32]req_shift_opened done [15:08:32]requested_item shift.open_date is exist - process it [15:08:32]req_shift_open_date [15:08:32]req_shift_open_date done [15:08:32]produce_requested_data done [15:08:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112572,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:08:32]process_action_free close_receipt [15:08:32]json_value_free [15:08:32]json_value_free done [15:08:32]process_json_proto returns [15:08:32]Send response to host [15:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112572,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:08:32]free response buf [15:08:32]execute_script done [15:08:32]execute_script returns [15:08:32]free content buf [15:08:32]Sock 9.Close socket [15:08:32]Sock 9.Thread stoped [15:08:36]OFD Sender: No OFD packet to send [15:08:37]accept exits with 8 [15:08:37]New connection [15:08:37]New thread 3066817892 created [15:08:37]Thread 3066674532 joined [15:08:37]Waiting for new connection... [15:08:37] Sock 8.Parse request [15:08:37]Sock 8.Check first char [15:08:37]Sock 8.First char is OK [15:08:37]request: POST /json_proto HTTP/1.0 [15:08:37]Method: POST [15:08:37]URL: /json_proto [15:08:37]Method is POST - this is cgi request [15:08:37]url: /json_proto [15:08:37]query_string will be loaded in cgi processing [15:08:37]execute_cgi json_proto POST (null) [15:08:37]execute_cgi path=json_proto method=POST [15:08:37]POST find Content-Length [15:08:37]Host: 172.17.59.68:8080 [15:08:37]Content-Length: 677 [15:08:37]Content-Type: application/json [15:08:37] [15:08:37]POST finish read [15:08:37]Found Content-Length = 677 [15:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:08:37]execute_script... [15:08: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)321258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:08:37]POST & json_proto [15:08:37]process_json_proto [15:08:37]json parsed OK: [15:08:37]protocol is kg_v1.0 [15:08:37]action value=close_receipt [15:08:37]process_action close_receipt [15:08:37]cmd_close_receipt [15:08:37]MH_GetDate [15:08:37]Write to MH i2c: F0 00 00 B4 0B AE [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: F0 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: F0 09 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: F0 09 00 B4 0B 00 77 3A 78 66 BC EC 60 65 B3 [15:08:37]GetLastDocTimeStamp 1719155309 [15:08:37]current date 1719155319 [15:08:37]FM_GetShiftState [15:08:37]SAM_PROTO_GetShiftState [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 13 01 00 [15:08:37]Write to MH i2c: E2 08 00 B5 0B 80 13 01 00 00 00 00 00 3D [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 0E 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 0E 00 B5 0B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 5B [15:08:37]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:08:37]wFMCommunicate OK [15:08:37]SAM_PROTO_GetShiftState done [15:08:37]FM_GetShiftState done [15:08:37]opened in 1719106490 [15:08:37]opened+sec_in_day 1719192890 [15:08:37]quantity*price = 40039 [15:08:37]sum+1 = 40040 [15:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 174 23.06.2024 15:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112573 ФПД: 270495575335655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150839&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112573&fm=270495575335655&tin=02508201610067®Number=0000000000092771&sum=40000 [15:08:39]StoreToDocumentArchive [15:08:39]shift 392 fd 112573 [15:08:39]save to /storage/0392/doc_00112573 [15:08:39]save last doc name /storage/0392/doc_00112573 to /storage/kkm_last_doc_name [15:08:39]save OK [15:08:39]Clear old archive folders... [15:08:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:39]tlvbuf is 01BE1C60 [15:08:39]SAM_PROTO_ClearQueue [15:08:39]wFMCommunicate request_size=4 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 09 00 00 [15:08:39]Write to MH i2c: E2 08 00 C2 0B 80 09 00 00 00 00 00 00 3F [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 C2 0B 00 90 00 41 [15:08:39]RAPDU: 90 00 [15:08:39]wFMCommunicate OK [15:08:39]SAM_PROTO_ClearQueue done [15:08:39]KKMCreateOFDPacket [15:08:39]OFDProtocolAddRootSTLVToBuf [15:08:39]FM_MakeSignedData [15:08:39]FM_MakeSignedData [15:08:39]SAM_PROTO_SignData [15:08:39]wFMCommunicate request_size=4 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 0D 01 02 [15:08:39]Write to MH i2c: E2 08 00 C3 0B 80 0D 01 02 00 00 00 00 47 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 C3 0B 00 90 00 42 [15:08:39]RAPDU: 90 00 [15:08:39]wFMCommunicate OK [15:08:39]wFMCommunicate request_size=255 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 AE 00 00 00 F4 03 04 00 77 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B7 01 00 35 04 06 00 F6 [15:08:39]Write to MH i2c: E2 02 01 C4 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 AE 00 00 00 F4 03 04 00 77 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B7 01 00 35 04 06 00 F6 00 00 FA [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [15:08:39]RAPDU: 90 00 [15:08:39]wFMCommunicate OK [15:08:39]wFMCommunicate request_size=10 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 0D 02 02 05 03 A8 AE 62 E7 [15:08:39]Write to MH i2c: E2 0D 00 C5 0B 80 0D 02 02 05 00 03 A8 AE 62 E7 00 00 F6 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [15:08:39]RAPDU: 90 00 [15:08:39]wFMCommunicate OK [15:08:39]wFMCommunicate request_size=4 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 0D 03 02 [15:08:39]Write to MH i2c: E2 08 00 C6 0B 80 0D 03 02 00 00 00 00 4C [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 0B 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 0B 00 C6 0B 00 E9 09 FE 0F 8C 9A C0 BE 90 00 F0 [15:08:39]RAPDU: E9 09 FE 0F 8C 9A C0 BE 90 00 [15:08:39]wFMCommunicate OK [15:08:39]SAM_PROTO_SignData done [15:08:39]FM_MakeSignedData done [15:08:39]CreateOFDProtocolMessage [15:08:39]wFMCommunicate request_size=4 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 11 00 00 [15:08:39]Write to MH i2c: E2 08 00 C7 0B 80 11 00 00 00 00 00 00 4C [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 17 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 17 00 C7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [15:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:08:39]wFMCommunicate OK [15:08:39]CreateOFDProtocolMessage done [15:08:39]OFDSenderStorePacket 112573 [15:08:39]StoreOFDPacket docnum=112573 [15:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 91 07 01 E1 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 AE 00 00 00 F4 03 04 00 77 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B7 01 00 35 04 06 00 F6 03 A8 AE 62 E7 E9 09 FE 0F 8C 9A C0 BE [15:08:39]CheckFolder [15:08:39]dirname=/storage/ofd_packets [15:08:39]CheckFolder done [15:08:39]ProducePacketName [15:08:39]name=ofd_packets/00112573 [15:08:39]NVStorageSaveData ofd_packets/00112573 [15:08:39]File name is /storage/ofd_packets/00112573 [15:08:39]Write 301 bytes [15:08:39]NVStorageSaveData done [15:08:39]OFDSenderStorePacket done [15:08:39]KKMCreateOFDPacket done [15:08:39]NVStorageSaveData kkm_last_timestamp [15:08:39]File name is /storage/kkm_last_timestamp [15:08:39]Write 4 bytes [15:08:39]NVStorageSaveData done [15:08:39]ExternCall_PrintAddStr [15:08:39]wPrintStart [15:08:39]Write to MH i2c: 01 00 00 C8 0B D3 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 07 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 FF 0F E8 [15:08:39]RasterBufferAndPrint [15:08:39]line Счет N : (1)321258 [15:08:39]line ИНН: 02508201610067 [15:08:39]line Контрольно-Кассовый Чек [15:08:39]line ПРОДАЖА [15:08:39]line ТРК (МРК, ГНК) : 11 [15:08:39]line Товар: 2710124130 [15:08:39]line Аи-92-К-5 [15:08:39]line 6.030 * 66.40 [15:08:39]line = 400.39 [15:08:39]line НДС 12% НСП 1% [15:08:39]line > о реализуемом товаре [15:08:39]line ОКРУГЛЕНИЕ: -0.39 [15:08:39]line ИТОГО: 400.00 [15:08:39]line Внесено: 400.00 [15:08:39]line СДАЧА: 0.00 [15:08:39]line НСП 1% : 3.54 [15:08:39]line НДС 12% : 42.52 [15:08:39]line Наличными: 400.00 [15:08:39]line Безнал.: 0.00 [15:08:39]line Место: АЗС № 65 "Партнер Нефть" [15:08:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:08:39]line СНО: Общий режим [15:08:39]line Чек 174 23.06.2024 15:08 [15:08:39]line Смена: 392 ФФД: 1.0 [15:08:39]line ЗНМ: 0300000198 [15:08:39]line РНМ: 0000000000092771 [15:08:39]line Версия ККМ: 001 [15:08:39]line ФМ: 0000000000875083 [15:08:39]line ФД: 112573 [15:08:39]line ФПД: 270495575335655 [15:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150839&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112573&fm=270495575335655&tin=02508201610067®Number=0000000000092771&sum=40000 [15:08:39]written 0, free lines is 4095 [15:08:39]OFD Sender: Processing packet 112573 [packets to send 38, broken 37] [15:08:39]ProducePacketName [15:08:39]name=ofd_packets/00112573 [15:08:39]OFD Sender: To server: pG, [15:08:39]CommunicateWithHost lk.salyk.kg:30040 [15:08:39]ConnectInit lk.salyk.kg [15:08:39]Connected sock=10 [15:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 91 07 01 E1 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 AE 00 00 00 F4 03 04 00 77 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B7 01 00 35 04 06 00 F6 03 A8 AE 62 E7 E9 09 FE 0F 8C 9A C0 BE [15:08:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 47 47 00 71 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B7 01 00 F4 03 04 00 61 D1 77 66 B6 04 01 00 00 DF BB B3 F9 4A 68 BB 67 [15:08:39]CommunicateWithHost err = 0 [15:08:39]CheckOFDResponse [15:08:39]1017 (14) - 77093643461234 [15:08:39]1041 (16) - 0000000000875083 [15:08:39]1040 (4) - 112573 [15:08:39]1012 (4) - 23.06.2024 07:40 [15:08:39]1206 (1) - 0 [15:08:39]OFD Sender: Remove packet 112573 [15:08:39]ProducePacketName [15:08:39]name=ofd_packets/00112573 [15:08:39]NVStorageDeleteData [15:08:40]Write to MH i2c: 01 00 00 F3 0B FE [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: 01 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: 01 07 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: 01 07 00 F3 0B 00 00 00 00 00 D4 0C E5 [15:08:40]RasterBufferAndPrint [15:08:40]line [15:08:40]line [15:08:40]line [15:08:40]line [15:08:40]line [15:08:40]written 0, free lines is 3295 [15:08:40]MH_Cut [15:08:40]Write to MH i2c: D1 01 00 FA 0B 01 D7 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: D1 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: D1 01 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: D1 01 00 FA 0B 00 D6 [15:08:40]Write to MH i2c: 01 00 00 FB 0B 06 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]OFD Sender: No OFD packet to send [15:08:40]*** Cut start [15:08:40]*** Partial cut [15:08:40]*** CUTSNS_PIN = 1 [15:08:40]*** CUTSNS_PIN = 0 [15:08:41]*** Brake cut motor [15:08:41]Read from MH i2c: 01 [15:08:41]MH_I2C_Read... [15:08:41]*** Stop cut motor [15:08:41]*** Cut end [15:08:41]Read from MH i2c: 01 07 00 [15:08:41]MH_I2C_Read... [15:08:41]Read from MH i2c: 01 07 00 FB 0B 00 00 00 00 00 FF 0F 1B [15:08:41]process_action close_receipt done [15:08:41]requested_data is exist [15:08:41]produce_requested_data [15:08:41]requested_item fm.sn is exist - process it [15:08:41]wFMCommunicate request_size=4 [15:08:41]MH_SAM_APDU [15:08:41]CAPDU: 80 11 00 00 [15:08:41]Write to MH i2c: E2 08 00 FC 0B 80 11 00 00 00 00 00 00 81 [15:08:41]Write i2c OK [15:08:41]MH_I2C_Read... [15:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:41]Read from MH i2c: E2 [15:08:41]MH_I2C_Read... [15:08:41]Read from MH i2c: E2 17 00 [15:08:41]MH_I2C_Read... [15:08:41]Read from MH i2c: E2 17 00 FC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [15:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:08:41]wFMCommunicate OK [15:08:41]requested_item fd.num is exist - process it [15:08:41]SAM_PROTO_GetFieldsCounters [15:08:41]wFMCommunicate request_size=4 [15:08:41]MH_SAM_APDU [15:08:41]CAPDU: 80 13 00 00 [15:08:41]Write to MH i2c: E2 08 00 FD 0B 80 13 00 00 00 00 00 00 84 [15:08:41]Write i2c OK [15:08:41]MH_I2C_Read... [15:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:41]Read from MH i2c: E2 [15:08:41]MH_I2C_Read... [15:08:41]Read from MH i2c: E2 62 00 [15:08:41]MH_I2C_Read... [15:08:41]Read from MH i2c: E2 62 00 FD 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B7 01 00 0E 04 04 00 88 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 AD [15:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B7 01 00 0E 04 04 00 88 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 [15:08:41]wFMCommunicate OK [15:08:41]SAM_PROTO_GetFieldsCounters done [15:08:41]requested_item shift.num is exist - process it [15:08:41]requested_item shift.opened is exist - process it [15:08:41]req_shift_opened [15:08:41]FM_GetShiftState [15:08:41]SAM_PROTO_GetShiftState [15:08:41]wFMCommunicate request_size=4 [15:08:41]MH_SAM_APDU [15:08:41]CAPDU: 80 13 01 00 [15:08:41]Write to MH i2c: E2 08 00 FE 0B 80 13 01 00 00 00 00 00 86 [15:08:41]Write i2c OK [15:08:41]MH_I2C_Read... [15:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:41]Read from MH i2c: E2 [15:08:41]MH_I2C_Read... [15:08:41]Read from MH i2c: E2 0E 00 [15:08:41]MH_I2C_Read... [15:08:41]Read from MH i2c: E2 0E 00 FE 0B 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A4 [15:08:41]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:08:41]wFMCommunicate OK [15:08:41]SAM_PROTO_GetShiftState done [15:08:41]FM_GetShiftState done [15:08:41]req_shift_opened done [15:08:41]requested_item shift.open_date is exist - process it [15:08:41]req_shift_open_date [15:08:41]req_shift_open_date done [15:08:41]produce_requested_data done [15:08:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112573,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:08:41]process_action_free close_receipt [15:08:41]json_value_free [15:08:41]json_value_free done [15:08:41]process_json_proto returns [15:08:41]Send response to host [15:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112573,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:08:41]free response buf [15:08:41]execute_script done [15:08:41]execute_script returns [15:08:41]free content buf [15:08:41]Sock 8.Close socket [15:08:41]Sock 8.Thread stoped [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:08:55]accept exits with 9 [15:08:55]New connection [15:08:55]New thread 3066674532 created [15:08:55]Thread 3066817892 joined [15:08:55]Waiting for new connection... [15:08:55] Sock 9.Parse request [15:08:55]Sock 9.Check first char [15:08:55]Sock 9.First char is OK [15:08:55]request: POST /json_proto HTTP/1.0 [15:08:55]Method: POST [15:08:55]URL: /json_proto [15:08:55]Method is POST - this is cgi request [15:08:55]url: /json_proto [15:08:55]query_string will be loaded in cgi processing [15:08:55]execute_cgi json_proto POST (null) [15:08:55]execute_cgi path=json_proto method=POST [15:08:55]POST find Content-Length [15:08:55]Host: 172.17.59.68:8080 [15:08:55]Content-Length: 677 [15:08:55]Content-Type: application/json [15:08:55] [15:08:55]POST finish read [15:08:55]Found Content-Length = 677 [15:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:55]execute_script... [15:08:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:55]POST & json_proto [15:08:55]process_json_proto [15:08:55]json parsed OK: [15:08:55]protocol is kg_v1.0 [15:08:55]action value=close_receipt [15:08:55]process_action close_receipt [15:08:55]cmd_close_receipt [15:08:55]MH_GetDate [15:08:55]Write to MH i2c: F0 00 00 FF 0B F9 [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 09 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 09 00 FF 0B 00 88 3A 78 66 BC EC 60 65 0F [15:08:55]GetLastDocTimeStamp 1719155319 [15:08:55]current date 1719155336 [15:08:55]FM_GetShiftState [15:08:55]SAM_PROTO_GetShiftState [15:08:55]wFMCommunicate request_size=4 [15:08:55]MH_SAM_APDU [15:08:55]CAPDU: 80 13 01 00 [15:08:55]Write to MH i2c: E2 08 00 00 0C 80 13 01 00 00 00 00 00 89 [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:55]Read from MH i2c: E2 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: E2 0E 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: E2 0E 00 00 0C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 A7 [15:08:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:08:55]wFMCommunicate OK [15:08:55]SAM_PROTO_GetShiftState done [15:08:55]FM_GetShiftState done [15:08:55]opened in 1719106490 [15:08:55]opened+sec_in_day 1719192890 [15:08:55]quantity*price = 10026 [15:08:55]sum+1 = 10027 [15:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 175 23.06.2024 15:08 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112574 ФПД: 233478094357727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150856&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112574&fm=233478094357727&tin=02508201610067®Number=0000000000092771&sum=10000 [15:08:56]StoreToDocumentArchive [15:08:56]shift 392 fd 112574 [15:08:56]save to /storage/0392/doc_00112574 [15:08:56]save last doc name /storage/0392/doc_00112574 to /storage/kkm_last_doc_name [15:08:56]save OK [15:08:56]Clear old archive folders... [15:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:56]tlvbuf is 01BCB470 [15:08:56]SAM_PROTO_ClearQueue [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 09 00 00 [15:08:56]Write to MH i2c: E2 08 00 0D 0C 80 09 00 00 00 00 00 00 8B [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 0D 0C 00 90 00 8D [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]SAM_PROTO_ClearQueue done [15:08:56]KKMCreateOFDPacket [15:08:56]OFDProtocolAddRootSTLVToBuf [15:08:56]FM_MakeSignedData [15:08:56]FM_MakeSignedData [15:08:56]SAM_PROTO_SignData [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 0D 01 02 [15:08:56]Write to MH i2c: E2 08 00 0E 0C 80 0D 01 02 00 00 00 00 93 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 0E 0C 00 90 00 8E [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]wFMCommunicate request_size=255 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 88 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B7 01 00 35 04 06 00 D4 [15:08:56]Write to MH i2c: E2 02 01 0F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 88 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B7 01 00 35 04 06 00 D4 00 00 F8 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 03 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [15:08:57]RAPDU: 90 00 [15:08:57]wFMCommunicate OK [15:08:57]wFMCommunicate request_size=10 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 0D 02 02 05 58 DA E0 84 DF [15:08:57]Write to MH i2c: E2 0D 00 10 0C 80 0D 02 02 05 00 58 DA E0 84 DF 00 00 15 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 03 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [15:08:57]RAPDU: 90 00 [15:08:57]wFMCommunicate OK [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 0D 03 02 [15:08:57]Write to MH i2c: E2 08 00 11 0C 80 0D 03 02 00 00 00 00 98 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 0B 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 0B 00 11 0C 00 DF 8E 19 A6 E9 53 ED A1 90 00 8F [15:08:57]RAPDU: DF 8E 19 A6 E9 53 ED A1 90 00 [15:08:57]wFMCommunicate OK [15:08:57]SAM_PROTO_SignData done [15:08:57]FM_MakeSignedData done [15:08:57]CreateOFDProtocolMessage [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 11 00 00 [15:08:57]Write to MH i2c: E2 08 00 12 0C 80 11 00 00 00 00 00 00 98 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 17 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 17 00 12 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [15:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:08:57]wFMCommunicate OK [15:08:57]CreateOFDProtocolMessage done [15:08:57]OFDSenderStorePacket 112574 [15:08:57]StoreOFDPacket docnum=112574 [15:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 60 E5 07 01 01 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 88 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B7 01 00 35 04 06 00 D4 58 DA E0 84 DF DF 8E 19 A6 E9 53 ED A1 [15:08:57]CheckFolder [15:08:57]dirname=/storage/ofd_packets [15:08:57]CheckFolder done [15:08:57]ProducePacketName [15:08:57]name=ofd_packets/00112574 [15:08:57]NVStorageSaveData ofd_packets/00112574 [15:08:57]File name is /storage/ofd_packets/00112574 [15:08:57]Write 301 bytes [15:08:57]NVStorageSaveData done [15:08:57]OFDSenderStorePacket done [15:08:57]KKMCreateOFDPacket done [15:08:57]NVStorageSaveData kkm_last_timestamp [15:08:57]File name is /storage/kkm_last_timestamp [15:08:57]Write 4 bytes [15:08:57]NVStorageSaveData done [15:08:57]ExternCall_PrintAddStr [15:08:57]wPrintStart [15:08:57]Write to MH i2c: 01 00 00 13 0C 1F [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 13 0C 00 00 00 00 00 FF 0F 34 [15:08:57]RasterBufferAndPrint [15:08:57]line Счет N : (1)321259 [15:08:57]line ИНН: 02508201610067 [15:08:57]line Контрольно-Кассовый Чек [15:08:57]line ПРОДАЖА [15:08:57]line ТРК (МРК, ГНК) : 11 [15:08:57]line Товар: 2710124130 [15:08:57]line Аи-92-К-5 [15:08:57]line 1.510 * 66.40 [15:08:57]line = 100.26 [15:08:57]line НДС 12% НСП 1% [15:08:57]line > о реализуемом товаре [15:08:57]line ОКРУГЛЕНИЕ: -0.26 [15:08:57]line ИТОГО: 100.00 [15:08:57]line Внесено: 100.00 [15:08:57]line СДАЧА: 0.00 [15:08:57]line НСП 1% : 0.89 [15:08:57]line НДС 12% : 10.65 [15:08:57]line Наличными: 100.00 [15:08:57]line Безнал.: 0.00 [15:08:57]line Место: АЗС № 65 "Партнер Нефть" [15:08:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:08:57]line СНО: Общий режим [15:08:57]line Чек 175 23.06.2024 15:08 [15:08:57]line Смена: 392 ФФД: 1.0 [15:08:57]line ЗНМ: 0300000198 [15:08:57]line РНМ: 0000000000092771 [15:08:57]line Версия ККМ: 001 [15:08:57]line ФМ: 0000000000875083 [15:08:57]line ФД: 112574 [15:08:57]line ФПД: 233478094357727 [15:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150856&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112574&fm=233478094357727&tin=02508201610067®Number=0000000000092771&sum=10000 [15:08:57]written 0, free lines is 4095 [15:08:57]OFD Sender: Processing packet 112574 [packets to send 38, broken 37] [15:08:57]ProducePacketName [15:08:57]name=ofd_packets/00112574 [15:08:57]OFD Sender: To server: pG, [15:08:57]CommunicateWithHost lk.salyk.kg:30040 [15:08:57]ConnectInit lk.salyk.kg [15:08:57]Connected sock=11 [15:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 60 E5 07 01 01 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 88 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B7 01 00 35 04 06 00 D4 58 DA E0 84 DF DF 8E 19 A6 E9 53 ED A1 [15:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 15 4B 47 00 CC AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B7 01 00 F4 03 04 00 72 D1 77 66 B6 04 01 00 00 63 06 2E F9 61 B9 1B 1E [15:08:57]CommunicateWithHost err = 0 [15:08:57]CheckOFDResponse [15:08:57]1017 (14) - 77093643461234 [15:08:57]1041 (16) - 0000000000875083 [15:08:57]1040 (4) - 112574 [15:08:57]1012 (4) - 23.06.2024 07:40 [15:08:57]1206 (1) - 0 [15:08:57]OFD Sender: Remove packet 112574 [15:08:57]ProducePacketName [15:08:57]name=ofd_packets/00112574 [15:08:57]NVStorageDeleteData [15:08:57]Write to MH i2c: 01 00 00 3E 0C 4A [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 3E 0C 00 00 00 00 00 E4 0C 41 [15:08:57]RasterBufferAndPrint [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]written 0, free lines is 3306 [15:08:57]MH_Cut [15:08:57]Write to MH i2c: D1 01 00 45 0C 01 23 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 01 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 01 00 45 0C 00 22 [15:08:57]Write to MH i2c: 01 00 00 46 0C 52 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:58]OFD Sender: No OFD packet to send [15:08:58]*** Cut start [15:08:58]*** Partial cut [15:08:58]*** CUTSNS_PIN = 1 [15:08:58]*** CUTSNS_PIN = 0 [15:08:58]*** Brake cut motor [15:08:58]Read from MH i2c: 01 [15:08:58]MH_I2C_Read... [15:08:58]*** Stop cut motor [15:08:58]Read from MH i2c: 01 07 00 [15:08:58]MH_I2C_Read... [15:08:58]*** Cut end [15:08:58]Read from MH i2c: 01 07 00 46 0C 00 00 00 00 00 FF 0F 67 [15:08:58]process_action close_receipt done [15:08:58]requested_data is exist [15:08:58]produce_requested_data [15:08:58]requested_item fm.sn is exist - process it [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 11 00 00 [15:08:58]Write to MH i2c: E2 08 00 47 0C 80 11 00 00 00 00 00 00 CD [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 17 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 17 00 47 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [15:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:08:59]wFMCommunicate OK [15:08:59]requested_item fd.num is exist - process it [15:08:59]SAM_PROTO_GetFieldsCounters [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 13 00 00 [15:08:59]Write to MH i2c: E2 08 00 48 0C 80 13 00 00 00 00 00 00 D0 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 62 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 62 00 48 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B7 01 00 0E 04 04 00 88 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 FD [15:08:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B7 01 00 0E 04 04 00 88 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 [15:08:59]wFMCommunicate OK [15:08:59]SAM_PROTO_GetFieldsCounters done [15:08:59]requested_item shift.num is exist - process it [15:08:59]requested_item shift.opened is exist - process it [15:08:59]req_shift_opened [15:08:59]FM_GetShiftState [15:08:59]SAM_PROTO_GetShiftState [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 13 01 00 [15:08:59]Write to MH i2c: E2 08 00 49 0C 80 13 01 00 00 00 00 00 D2 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 0E 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 0E 00 49 0C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F0 [15:08:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:08:59]wFMCommunicate OK [15:08:59]SAM_PROTO_GetShiftState done [15:08:59]FM_GetShiftState done [15:08:59]req_shift_opened done [15:08:59]requested_item shift.open_date is exist - process it [15:08:59]req_shift_open_date [15:08:59]req_shift_open_date done [15:08:59]produce_requested_data done [15:08:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112574,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:08:59]process_action_free close_receipt [15:08:59]json_value_free [15:08:59]json_value_free done [15:08:59]process_json_proto returns [15:08:59]Send response to host [15:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112574,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:08:59]free response buf [15:08:59]execute_script done [15:08:59]execute_script returns [15:08:59]free content buf [15:08:59]Sock 9.Close socket [15:08:59]Sock 9.Thread stoped [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:56]accept exits with 8 [15:09:56]New connection [15:09:56]New thread 3066817892 created [15:09:56]Thread 3066674532 joined [15:09:56]Waiting for new connection... [15:09:56] Sock 8.Parse request [15:09:56]Sock 8.Check first char [15:09:56]Sock 8.First char is OK [15:09:56]request: POST /json_proto HTTP/1.0 [15:09:56]Method: POST [15:09:56]URL: /json_proto [15:09:56]Method is POST - this is cgi request [15:09:56]url: /json_proto [15:09:56]query_string will be loaded in cgi processing [15:09:56]execute_cgi json_proto POST (null) [15:09:56]execute_cgi path=json_proto method=POST [15:09:56]POST find Content-Length [15:09:56]Host: 172.17.59.68:8080 [15:09:56]Content-Length: 679 [15:09:56]Content-Type: application/json [15:09:56] [15:09:56]POST finish read [15:09:56]Found Content-Length = 679 [15:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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:09:56]execute_script... [15:09:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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:09:56]POST & json_proto [15:09:56]process_json_proto [15:09:56]json parsed OK: [15:09:56]protocol is kg_v1.0 [15:09:56]action value=close_receipt [15:09:56]process_action close_receipt [15:09:56]cmd_close_receipt [15:09:56]MH_GetDate [15:09:56]Write to MH i2c: F0 00 00 4A 0C 45 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: F0 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: F0 09 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: F0 09 00 4A 0C 00 C6 3A 78 66 BC EC 60 65 99 [15:09:56]GetLastDocTimeStamp 1719155336 [15:09:56]current date 1719155398 [15:09:56]FM_GetShiftState [15:09:56]SAM_PROTO_GetShiftState [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 13 01 00 [15:09:56]Write to MH i2c: E2 08 00 4B 0C 80 13 01 00 00 00 00 00 D4 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 0E 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 0E 00 4B 0C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F2 [15:09:56]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:09:56]wFMCommunicate OK [15:09:56]SAM_PROTO_GetShiftState done [15:09:56]FM_GetShiftState done [15:09:56]opened in 1719106490 [15:09:56]opened+sec_in_day 1719192890 [15:09:56]quantity*price = 150028 [15:09:56]sum+1 = 150029 [15:09:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 176 23.06.2024 15:09 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112575 ФПД: 60017062661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150958&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112575&fm=60017062661&tin=02508201610067®Number=0000000000092771&sum=150000 [15:09:57]StoreToDocumentArchive [15:09:57]shift 392 fd 112575 [15:09:57]save to /storage/0392/doc_00112575 [15:09:57]save last doc name /storage/0392/doc_00112575 to /storage/kkm_last_doc_name [15:09:57]save OK [15:09:57]Clear old archive folders... [15:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:09:57]tlvbuf is 01B816E0 [15:09:57]SAM_PROTO_ClearQueue [15:09:57]wFMCommunicate request_size=4 [15:09:57]MH_SAM_APDU [15:09:57]CAPDU: 80 09 00 00 [15:09:57]Write to MH i2c: E2 08 00 58 0C 80 09 00 00 00 00 00 00 D6 [15:09:57]Write i2c OK [15:09:57]MH_I2C_Read... [15:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [15:09:58]RAPDU: 90 00 [15:09:58]wFMCommunicate OK [15:09:58]SAM_PROTO_ClearQueue done [15:09:58]KKMCreateOFDPacket [15:09:58]OFDProtocolAddRootSTLVToBuf [15:09:58]FM_MakeSignedData [15:09:58]FM_MakeSignedData [15:09:58]SAM_PROTO_SignData [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 0D 01 02 [15:09:58]Write to MH i2c: E2 08 00 59 0C 80 0D 01 02 00 00 00 00 DE [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 59 0C 00 90 00 D9 [15:09:58]RAPDU: 90 00 [15:09:58]wFMCommunicate OK [15:09:58]wFMCommunicate request_size=255 [15:09:58]MH_SAM_APDU [15:09: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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 B0 00 00 00 F4 03 04 00 C6 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B7 01 00 35 04 06 00 00 0D F9 4B [15:09:58]Write to MH i2c: E2 02 01 5A 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 B0 00 00 00 F4 03 04 00 C6 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B7 01 00 35 04 06 00 00 0D F9 4B 00 00 E1 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]OFD Sender: No OFD packet to send [15:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 5A 0C 00 90 00 DA [15:09:58]RAPDU: 90 00 [15:09:58]wFMCommunicate OK [15:09:58]wFMCommunicate request_size=7 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 0D 02 02 02 B3 05 [15:09:58]Write to MH i2c: E2 0A 00 5B 0C 80 0D 02 02 02 00 B3 05 00 00 9D [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [15:09:58]RAPDU: 90 00 [15:09:58]wFMCommunicate OK [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 0D 03 02 [15:09:58]Write to MH i2c: E2 08 00 5C 0C 80 0D 03 02 00 00 00 00 E3 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 0B 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 0B 00 5C 0C 00 B0 8B A2 BD E1 44 08 7F 90 00 2A [15:09:58]RAPDU: B0 8B A2 BD E1 44 08 7F 90 00 [15:09:58]wFMCommunicate OK [15:09:58]SAM_PROTO_SignData done [15:09:58]FM_MakeSignedData done [15:09:58]CreateOFDProtocolMessage [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 11 00 00 [15:09:58]Write to MH i2c: E2 08 00 5D 0C 80 11 00 00 00 00 00 00 E3 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 17 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 17 00 5D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [15:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:09:58]wFMCommunicate OK [15:09:58]CreateOFDProtocolMessage done [15:09:58]OFDSenderStorePacket 112575 [15:09:58]StoreOFDPacket docnum=112575 [15:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 5E 24 04 01 DF AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 B0 00 00 00 F4 03 04 00 C6 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B7 01 00 35 04 06 00 00 0D F9 4B B3 05 B0 8B A2 BD E1 44 08 7F [15:09:58]CheckFolder [15:09:58]dirname=/storage/ofd_packets [15:09:58]CheckFolder done [15:09:58]ProducePacketName [15:09:58]name=ofd_packets/00112575 [15:09:58]NVStorageSaveData ofd_packets/00112575 [15:09:58]File name is /storage/ofd_packets/00112575 [15:09:58]Write 298 bytes [15:09:58]NVStorageSaveData done [15:09:58]OFDSenderStorePacket done [15:09:58]KKMCreateOFDPacket done [15:09:58]NVStorageSaveData kkm_last_timestamp [15:09:58]File name is /storage/kkm_last_timestamp [15:09:58]Write 4 bytes [15:09:58]NVStorageSaveData done [15:09:58]ExternCall_PrintAddStr [15:09:58]wPrintStart [15:09:58]Write to MH i2c: 01 00 00 5E 0C 6A [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: 01 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: 01 07 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: 01 07 00 5E 0C 00 00 00 00 00 FF 0F 7F [15:09:58]RasterBufferAndPrint [15:09:58]line Счет N : (1)321260 [15:09:58]line ИНН: 02508201610067 [15:09:58]line Контрольно-Кассовый Чек [15:09:58]line ПРОДАЖА [15:09:58]line ТРК (МРК, ГНК) : 22 [15:09:58]line Товар: 2710194210 [15:09:58]line ДТ-К-5 [15:09:58]line 20.580 * 72.90 [15:09:58]line = 1500.28 [15:09:58]line НДС 12% НСП 1% [15:09:58]line > о реализуемом товаре [15:09:58]line ОКРУГЛЕНИЕ: -0.28 [15:09:58]line ИТОГО: 1500.00 [15:09:58]line Внесено: 1500.00 [15:09:58]line СДАЧА: 0.00 [15:09:58]line НСП 1% : 13.28 [15:09:58]line НДС 12% : 159.32 [15:09:58]line Наличными: 1500.00 [15:09:58]line Безнал.: 0.00 [15:09:58]line Место: АЗС № 65 "Партнер Нефть" [15:09:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:09:58]line СНО: Общий режим [15:09:58]line Чек 176 23.06.2024 15:09 [15:09:58]line Смена: 392 ФФД: 1.0 [15:09:58]line ЗНМ: 0300000198 [15:09:58]line РНМ: 0000000000092771 [15:09:58]line Версия ККМ: 001 [15:09:58]line ФМ: 0000000000875083 [15:09:58]line ФД: 112575 [15:09:58]line ФПД: 60017062661 [15:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T150958&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112575&fm=60017062661&tin=02508201610067®Number=0000000000092771&sum=150000 [15:09:58]OFD Sender: Processing packet 112575 [packets to send 38, broken 37] [15:09:58]ProducePacketName [15:09:58]name=ofd_packets/00112575 [15:09:58]OFD Sender: To server: pG, [15:09:58]CommunicateWithHost lk.salyk.kg:30040 [15:09:58]ConnectInit lk.salyk.kg [15:09:58]written 0, free lines is 4095 [15:09:58]Connected sock=10 [15:09:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 5E 24 04 01 DF AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 B0 00 00 00 F4 03 04 00 C6 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B7 01 00 35 04 06 00 00 0D F9 4B B3 05 B0 8B A2 BD E1 44 08 7F [15:09:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BF E7 47 00 C5 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B7 01 00 F4 03 04 00 B0 D1 77 66 B6 04 01 00 00 F6 12 28 78 AF A3 59 E0 [15:09:59]CommunicateWithHost err = 0 [15:09:59]CheckOFDResponse [15:09:59]1017 (14) - 77093643461234 [15:09:59]1041 (16) - 0000000000875083 [15:09:59]1040 (4) - 112575 [15:09:59]1012 (4) - 23.06.2024 07:41 [15:09:59]1206 (1) - 0 [15:09:59]OFD Sender: Remove packet 112575 [15:09:59]ProducePacketName [15:09:59]name=ofd_packets/00112575 [15:09:59]NVStorageDeleteData [15:09:59]Write to MH i2c: 01 00 00 89 0C 95 [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: 01 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: 01 07 00 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: 01 07 00 89 0C 00 00 00 00 00 E1 0C 89 [15:09:59]RasterBufferAndPrint [15:09:59]line [15:09:59]line [15:09:59]line [15:09:59]line [15:09:59]line [15:09:59]written 0, free lines is 3303 [15:09:59]MH_Cut [15:09:59]Write to MH i2c: D1 01 00 90 0C 01 6E [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: D1 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: D1 01 00 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: D1 01 00 90 0C 00 6D [15:09:59]Write to MH i2c: 01 00 00 91 0C 9D [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]OFD Sender: No OFD packet to send [15:10:00]*** Cut start [15:10:00]*** Partial cut [15:10:00]*** CUTSNS_PIN = 1 [15:10:00]*** CUTSNS_PIN = 0 [15:10:00]*** Brake cut motor [15:10:00]Read from MH i2c: 01 [15:10:00]MH_I2C_Read... [15:10:00]*** Stop cut motor [15:10:00]*** Cut end [15:10:00]Read from MH i2c: 01 07 00 [15:10:00]MH_I2C_Read... [15:10:00]Read from MH i2c: 01 07 00 91 0C 00 00 00 00 00 FF 0F B2 [15:10:00]process_action close_receipt done [15:10:00]requested_data is exist [15:10:00]produce_requested_data [15:10:00]requested_item fm.sn is exist - process it [15:10:00]wFMCommunicate request_size=4 [15:10:00]MH_SAM_APDU [15:10:00]CAPDU: 80 11 00 00 [15:10:00]Write to MH i2c: E2 08 00 92 0C 80 11 00 00 00 00 00 00 18 [15:10:00]Write i2c OK [15:10:00]MH_I2C_Read... [15:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:00]Read from MH i2c: E2 [15:10:00]MH_I2C_Read... [15:10:00]Read from MH i2c: E2 17 00 [15:10:00]MH_I2C_Read... [15:10:00]Read from MH i2c: E2 17 00 92 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [15:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:10:00]wFMCommunicate OK [15:10:00]requested_item fd.num is exist - process it [15:10:00]SAM_PROTO_GetFieldsCounters [15:10:00]wFMCommunicate request_size=4 [15:10:00]MH_SAM_APDU [15:10:00]CAPDU: 80 13 00 00 [15:10:00]Write to MH i2c: E2 08 00 93 0C 80 13 00 00 00 00 00 00 1B [15:10:00]Write i2c OK [15:10:00]MH_I2C_Read... [15:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:00]Read from MH i2c: E2 [15:10:00]MH_I2C_Read... [15:10:00]Read from MH i2c: E2 62 00 [15:10:00]MH_I2C_Read... [15:10:00]Read from MH i2c: E2 62 00 93 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B7 01 00 0E 04 04 00 88 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 4C [15:10:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B7 01 00 0E 04 04 00 88 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 [15:10:00]wFMCommunicate OK [15:10:00]SAM_PROTO_GetFieldsCounters done [15:10:00]requested_item shift.num is exist - process it [15:10:00]requested_item shift.opened is exist - process it [15:10:00]req_shift_opened [15:10:00]FM_GetShiftState [15:10:00]SAM_PROTO_GetShiftState [15:10:00]wFMCommunicate request_size=4 [15:10:00]MH_SAM_APDU [15:10:00]CAPDU: 80 13 01 00 [15:10:00]Write to MH i2c: E2 08 00 94 0C 80 13 01 00 00 00 00 00 1D [15:10:00]Write i2c OK [15:10:00]MH_I2C_Read... [15:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:00]Read from MH i2c: E2 [15:10:00]MH_I2C_Read... [15:10:00]Read from MH i2c: E2 0E 00 [15:10:00]MH_I2C_Read... [15:10:00]Read from MH i2c: E2 0E 00 94 0C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3B [15:10:00]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:10:00]wFMCommunicate OK [15:10:00]SAM_PROTO_GetShiftState done [15:10:00]FM_GetShiftState done [15:10:00]req_shift_opened done [15:10:00]requested_item shift.open_date is exist - process it [15:10:00]req_shift_open_date [15:10:00]req_shift_open_date done [15:10:00]produce_requested_data done [15:10:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112575,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:10:00]process_action_free close_receipt [15:10:00]json_value_free [15:10:00]json_value_free done [15:10:00]process_json_proto returns [15:10:00]Send response to host [15:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112575,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:10:00]free response buf [15:10:00]execute_script done [15:10:00]execute_script returns [15:10:00]free content buf [15:10:00]Sock 8.Close socket [15:10:00]Sock 8.Thread stoped [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:46]accept exits with 9 [15:10:46]New connection [15:10:46]New thread 3066674532 created [15:10:46]Thread 3066817892 joined [15:10:46]Waiting for new connection... [15:10:46] Sock 9.Parse request [15:10:46]Sock 9.Check first char [15:10:46]Sock 9.First char is OK [15:10:46]request: POST /json_proto HTTP/1.0 [15:10:46]Method: POST [15:10:46]URL: /json_proto [15:10:46]Method is POST - this is cgi request [15:10:46]url: /json_proto [15:10:46]query_string will be loaded in cgi processing [15:10:46]execute_cgi json_proto POST (null) [15:10:46]execute_cgi path=json_proto method=POST [15:10:46]POST find Content-Length [15:10:46]Host: 172.17.59.68:8080 [15:10:46]Content-Length: 677 [15:10:46]Content-Type: application/json [15:10:46] [15:10:46]POST finish read [15:10:46]Found Content-Length = 677 [15:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:10:46]execute_script... [15:10: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)321261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:10:46]POST & json_proto [15:10:46]process_json_proto [15:10:46]json parsed OK: [15:10:46]protocol is kg_v1.0 [15:10:46]action value=close_receipt [15:10:46]process_action close_receipt [15:10:46]cmd_close_receipt [15:10:46]MH_GetDate [15:10:46]Write to MH i2c: F0 00 00 95 0C 90 [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: F0 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: F0 09 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: F0 09 00 95 0C 00 F8 3A 78 66 BC EC 60 65 16 [15:10:46]GetLastDocTimeStamp 1719155398 [15:10:46]current date 1719155448 [15:10:46]FM_GetShiftState [15:10:46]SAM_PROTO_GetShiftState [15:10:46]wFMCommunicate request_size=4 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 13 01 00 [15:10:46]Write to MH i2c: E2 08 00 96 0C 80 13 01 00 00 00 00 00 1F [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 0E 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 0E 00 96 0C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 3D [15:10:46]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:10:46]wFMCommunicate OK [15:10:46]SAM_PROTO_GetShiftState done [15:10:46]FM_GetShiftState done [15:10:46]opened in 1719106490 [15:10:46]opened+sec_in_day 1719192890 [15:10:46]quantity*price = 50065 [15:10:46]sum+1 = 50067 [15:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 177 23.06.2024 15:10 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112576 ФПД: 70190682525498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T151048&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112576&fm=70190682525498&tin=02508201610067®Number=0000000000092771&sum=50000 [15:10:47]StoreToDocumentArchive [15:10:47]shift 392 fd 112576 [15:10:47]save to /storage/0392/doc_00112576 [15:10:47]save last doc name /storage/0392/doc_00112576 to /storage/kkm_last_doc_name [15:10:47]save OK [15:10:47]Clear old archive folders... [15:10:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:47]tlvbuf is 01BB45D0 [15:10:47]SAM_PROTO_ClearQueue [15:10:47]wFMCommunicate request_size=4 [15:10:47]MH_SAM_APDU [15:10:47]CAPDU: 80 09 00 00 [15:10:47]Write to MH i2c: E2 08 00 A3 0C 80 09 00 00 00 00 00 00 21 [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:47]Read from MH i2c: E2 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 03 00 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 03 00 A3 0C 00 90 00 23 [15:10:47]RAPDU: 90 00 [15:10:47]wFMCommunicate OK [15:10:47]SAM_PROTO_ClearQueue done [15:10:47]KKMCreateOFDPacket [15:10:47]OFDProtocolAddRootSTLVToBuf [15:10:47]FM_MakeSignedData [15:10:47]FM_MakeSignedData [15:10:47]SAM_PROTO_SignData [15:10:47]wFMCommunicate request_size=4 [15:10:47]MH_SAM_APDU [15:10:47]CAPDU: 80 0D 01 02 [15:10:47]Write to MH i2c: E2 08 00 A4 0C 80 0D 01 02 00 00 00 00 29 [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:47]Read from MH i2c: E2 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 03 00 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [15:10:47]RAPDU: 90 00 [15:10:47]wFMCommunicate OK [15:10:47]wFMCommunicate request_size=255 [15:10:47]MH_SAM_APDU [15:10:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B1 00 00 00 F4 03 04 00 F8 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B7 01 00 35 04 06 00 3F [15:10:47]Write to MH i2c: E2 02 01 A5 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B1 00 00 00 F4 03 04 00 F8 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B7 01 00 35 04 06 00 3F 00 00 DE [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:48]Read from MH i2c: E2 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 03 00 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [15:10:48]RAPDU: 90 00 [15:10:48]wFMCommunicate OK [15:10:48]wFMCommunicate request_size=10 [15:10:48]MH_SAM_APDU [15:10:48]CAPDU: 80 0D 02 02 05 D6 8A B2 CF 3A [15:10:48]Write to MH i2c: E2 0D 00 A6 0C 80 0D 02 02 05 00 D6 8A B2 CF 3A 00 00 51 [15:10:48]Write i2c OK [15:10:48]MH_I2C_Read... [15:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:48]Read from MH i2c: E2 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 03 00 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [15:10:48]RAPDU: 90 00 [15:10:48]wFMCommunicate OK [15:10:48]wFMCommunicate request_size=4 [15:10:48]MH_SAM_APDU [15:10:48]CAPDU: 80 0D 03 02 [15:10:48]Write to MH i2c: E2 08 00 A7 0C 80 0D 03 02 00 00 00 00 2E [15:10:48]Write i2c OK [15:10:48]MH_I2C_Read... [15:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:48]Read from MH i2c: E2 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 0B 00 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 0B 00 A7 0C 00 28 B7 BC EF 9E 6D D3 30 90 00 C7 [15:10:48]RAPDU: 28 B7 BC EF 9E 6D D3 30 90 00 [15:10:48]wFMCommunicate OK [15:10:48]SAM_PROTO_SignData done [15:10:48]FM_MakeSignedData done [15:10:48]CreateOFDProtocolMessage [15:10:48]wFMCommunicate request_size=4 [15:10:48]MH_SAM_APDU [15:10:48]CAPDU: 80 11 00 00 [15:10:48]Write to MH i2c: E2 08 00 A8 0C 80 11 00 00 00 00 00 00 2E [15:10:48]Write i2c OK [15:10:48]MH_I2C_Read... [15:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:48]Read from MH i2c: E2 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 17 00 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 17 00 A8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 80 [15:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:10:48]wFMCommunicate OK [15:10:48]CreateOFDProtocolMessage done [15:10:48]OFDSenderStorePacket 112576 [15:10:48]StoreOFDPacket docnum=112576 [15:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 ED 07 01 07 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B1 00 00 00 F4 03 04 00 F8 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B7 01 00 35 04 06 00 3F D6 8A B2 CF 3A 28 B7 BC EF 9E 6D D3 30 [15:10:48]CheckFolder [15:10:48]dirname=/storage/ofd_packets [15:10:48]CheckFolder done [15:10:48]ProducePacketName [15:10:48]name=ofd_packets/00112576 [15:10:48]NVStorageSaveData ofd_packets/00112576 [15:10:48]File name is /storage/ofd_packets/00112576 [15:10:48]Write 301 bytes [15:10:48]NVStorageSaveData done [15:10:48]OFDSenderStorePacket done [15:10:48]KKMCreateOFDPacket done [15:10:48]NVStorageSaveData kkm_last_timestamp [15:10:48]File name is /storage/kkm_last_timestamp [15:10:48]Write 4 bytes [15:10:48]NVStorageSaveData done [15:10:48]ExternCall_PrintAddStr [15:10:48]wPrintStart [15:10:48]Write to MH i2c: 01 00 00 A9 0C B5 [15:10:48]Write i2c OK [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: 01 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: 01 07 00 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 FF 0F CA [15:10:48]RasterBufferAndPrint [15:10:48]line Счет N : (1)321261 [15:10:48]line ИНН: 02508201610067 [15:10:48]line Контрольно-Кассовый Чек [15:10:48]line ПРОДАЖА [15:10:48]line ТРК (МРК, ГНК) : 11 [15:10:48]line Товар: 2710124130 [15:10:48]line Аи-92-К-5 [15:10:48]line 7.540 * 66.40 [15:10:48]line = 500.66 [15:10:48]line НДС 12% НСП 1% [15:10:48]line > о реализуемом товаре [15:10:48]line ОКРУГЛЕНИЕ: -0.66 [15:10:48]line ИТОГО: 500.00 [15:10:48]line Внесено: 500.00 [15:10:48]line СДАЧА: 0.00 [15:10:48]line НСП 1% : 4.43 [15:10:48]line НДС 12% : 53.17 [15:10:48]line Наличными: 500.00 [15:10:48]line Безнал.: 0.00 [15:10:48]line Место: АЗС № 65 "Партнер Нефть" [15:10:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:10:48]line СНО: Общий режим [15:10:48]line Чек 177 23.06.2024 15:10 [15:10:48]line Смена: 392 ФФД: 1.0 [15:10:48]line ЗНМ: 0300000198 [15:10:48]line РНМ: 0000000000092771 [15:10:48]line Версия ККМ: 001 [15:10:48]line ФМ: 0000000000875083 [15:10:48]line ФД: 112576 [15:10:48]line ФПД: 70190682525498 [15:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T151048&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112576&fm=70190682525498&tin=02508201610067®Number=0000000000092771&sum=50000 [15:10:48]OFD Sender: Processing packet 112576 [packets to send 38, broken 37] [15:10:48]ProducePacketName [15:10:48]name=ofd_packets/00112576 [15:10:48]OFD Sender: To server: pG, [15:10:48]CommunicateWithHost lk.salyk.kg:30040 [15:10:48]ConnectInit lk.salyk.kg [15:10:48]written 0, free lines is 4095 [15:10:48]Connected sock=10 [15:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 ED 07 01 07 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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B1 00 00 00 F4 03 04 00 F8 3A 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B7 01 00 35 04 06 00 3F D6 8A B2 CF 3A 28 B7 BC EF 9E 6D D3 30 [15:10:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 49 BB 47 00 62 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B7 01 00 F4 03 04 00 E1 D1 77 66 B6 04 01 00 00 25 F4 94 20 05 2F 36 2B [15:10:48]CommunicateWithHost err = 0 [15:10:48]CheckOFDResponse [15:10:48]1017 (14) - 77093643461234 [15:10:48]1041 (16) - 0000000000875083 [15:10:48]1040 (4) - 112576 [15:10:48]1012 (4) - 23.06.2024 07:42 [15:10:48]1206 (1) - 0 [15:10:48]OFD Sender: Remove packet 112576 [15:10:48]ProducePacketName [15:10:48]name=ofd_packets/00112576 [15:10:48]NVStorageDeleteData [15:10:49]Write to MH i2c: 01 00 00 D4 0C E0 [15:10:49]Write i2c OK [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: 01 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: 01 07 00 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: 01 07 00 D4 0C 00 00 00 00 00 E0 0C D3 [15:10:49]RasterBufferAndPrint [15:10:49]line [15:10:49]line [15:10:49]line [15:10:49]line [15:10:49]line [15:10:49]written 0, free lines is 3301 [15:10:49]MH_Cut [15:10:49]Write to MH i2c: D1 01 00 DB 0C 01 B9 [15:10:49]Write i2c OK [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: D1 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: D1 01 00 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: D1 01 00 DB 0C 00 B8 [15:10:49]Write to MH i2c: 01 00 00 DC 0C E8 [15:10:49]Write i2c OK [15:10:49]MH_I2C_Read... [15:10:49]OFD Sender: No OFD packet to send [15:10:49]*** Cut start [15:10:49]*** Partial cut [15:10:49]*** CUTSNS_PIN = 1 [15:10:49]*** CUTSNS_PIN = 0 [15:10:49]*** Brake cut motor [15:10:50]Read from MH i2c: 01 [15:10:50]MH_I2C_Read... [15:10:50]*** Stop cut motor [15:10:50]*** Cut end [15:10:50]Read from MH i2c: 01 07 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: 01 07 00 DC 0C 00 00 00 00 00 FF 0F FD [15:10:50]process_action close_receipt done [15:10:50]requested_data is exist [15:10:50]produce_requested_data [15:10:50]requested_item fm.sn is exist - process it [15:10:50]wFMCommunicate request_size=4 [15:10:50]MH_SAM_APDU [15:10:50]CAPDU: 80 11 00 00 [15:10:50]Write to MH i2c: E2 08 00 DD 0C 80 11 00 00 00 00 00 00 63 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:50]Read from MH i2c: E2 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 17 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 17 00 DD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [15:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:10:50]wFMCommunicate OK [15:10:50]requested_item fd.num is exist - process it [15:10:50]SAM_PROTO_GetFieldsCounters [15:10:50]wFMCommunicate request_size=4 [15:10:50]MH_SAM_APDU [15:10:50]CAPDU: 80 13 00 00 [15:10:50]Write to MH i2c: E2 08 00 DE 0C 80 13 00 00 00 00 00 00 66 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:50]Read from MH i2c: E2 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 62 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 62 00 DE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B7 01 00 0E 04 04 00 88 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 9B [15:10:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B7 01 00 0E 04 04 00 88 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 [15:10:50]wFMCommunicate OK [15:10:50]SAM_PROTO_GetFieldsCounters done [15:10:50]requested_item shift.num is exist - process it [15:10:50]requested_item shift.opened is exist - process it [15:10:50]req_shift_opened [15:10:50]FM_GetShiftState [15:10:50]SAM_PROTO_GetShiftState [15:10:50]wFMCommunicate request_size=4 [15:10:50]MH_SAM_APDU [15:10:50]CAPDU: 80 13 01 00 [15:10:50]Write to MH i2c: E2 08 00 DF 0C 80 13 01 00 00 00 00 00 68 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:50]Read from MH i2c: E2 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 0E 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 0E 00 DF 0C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 86 [15:10:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:10:50]wFMCommunicate OK [15:10:50]SAM_PROTO_GetShiftState done [15:10:50]FM_GetShiftState done [15:10:50]req_shift_opened done [15:10:50]requested_item shift.open_date is exist - process it [15:10:50]req_shift_open_date [15:10:50]req_shift_open_date done [15:10:50]produce_requested_data done [15:10:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112576,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:10:50]process_action_free close_receipt [15:10:50]json_value_free [15:10:50]json_value_free done [15:10:50]process_json_proto returns [15:10:50]Send response to host [15:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112576,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:10:50]free response buf [15:10:50]execute_script done [15:10:50]execute_script returns [15:10:50]free content buf [15:10:50]Sock 9.Close socket [15:10:50]Sock 9.Thread stoped [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:46]accept exits with 8 [15:12:46]New connection [15:12:46]New thread 3066817892 created [15:12:46]Thread 3066674532 joined [15:12:46]Waiting for new connection... [15:12:46] Sock 8.Parse request [15:12:46]Sock 8.Check first char [15:12:46]Sock 8.First char is OK [15:12:46]request: POST /json_proto HTTP/1.0 [15:12:46]Method: POST [15:12:46]URL: /json_proto [15:12:46]Method is POST - this is cgi request [15:12:46]url: /json_proto [15:12:46]query_string will be loaded in cgi processing [15:12:46]execute_cgi json_proto POST (null) [15:12:46]execute_cgi path=json_proto method=POST [15:12:46]POST find Content-Length [15:12:46]Host: 172.17.59.68:8080 [15:12:46]Content-Length: 682 [15:12:46]Content-Type: application/json [15:12:46] [15:12:46]POST finish read [15:12:46]Found Content-Length = 682 [15:12:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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" ] } } [15:12:46]execute_script... [15:12: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)321262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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" ] } } [15:12:46]POST & json_proto [15:12:46]process_json_proto [15:12:46]json parsed OK: [15:12:46]protocol is kg_v1.0 [15:12:46]action value=close_receipt [15:12:46]process_action close_receipt [15:12:46]cmd_close_receipt [15:12:46]MH_GetDate [15:12:46]Write to MH i2c: F0 00 00 E0 0C DB [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: F0 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: F0 09 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: F0 09 00 E0 0C 00 6F 3B 78 66 BC EC 60 65 D9 [15:12:46]GetLastDocTimeStamp 1719155448 [15:12:46]current date 1719155567 [15:12:46]FM_GetShiftState [15:12:46]SAM_PROTO_GetShiftState [15:12:46]wFMCommunicate request_size=4 [15:12:46]MH_SAM_APDU [15:12:46]CAPDU: 80 13 01 00 [15:12:46]Write to MH i2c: E2 08 00 E1 0C 80 13 01 00 00 00 00 00 6A [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 0E 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 0E 00 E1 0C 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 88 [15:12:46]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:12:46]wFMCommunicate OK [15:12:46]SAM_PROTO_GetShiftState done [15:12:46]FM_GetShiftState done [15:12:46]opened in 1719106490 [15:12:46]opened+sec_in_day 1719192890 [15:12:46]quantity*price = 110024 [15:12:46]sum+1 = 110026 [15:12:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.84 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 178 23.06.2024 15:12 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112577 ФПД: 173561695491131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T151247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112577&fm=173561695491131&tin=02508201610067®Number=0000000000092771&sum=110000 [15:12:47]StoreToDocumentArchive [15:12:47]shift 392 fd 112577 [15:12:47]save to /storage/0392/doc_00112577 [15:12:47]save last doc name /storage/0392/doc_00112577 to /storage/kkm_last_doc_name [15:12:47]save OK [15:12:47]Clear old archive folders... [15:12:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:47]tlvbuf is 01B75AD0 [15:12:47]SAM_PROTO_ClearQueue [15:12:47]wFMCommunicate request_size=4 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 09 00 00 [15:12:47]Write to MH i2c: E2 08 00 EE 0C 80 09 00 00 00 00 00 00 6C [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 03 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 03 00 EE 0C 00 90 00 6E [15:12:47]RAPDU: 90 00 [15:12:47]wFMCommunicate OK [15:12:47]SAM_PROTO_ClearQueue done [15:12:47]KKMCreateOFDPacket [15:12:47]OFDProtocolAddRootSTLVToBuf [15:12:47]FM_MakeSignedData [15:12:47]FM_MakeSignedData [15:12:47]SAM_PROTO_SignData [15:12:47]wFMCommunicate request_size=4 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 0D 01 02 [15:12:47]Write to MH i2c: E2 08 00 EF 0C 80 0D 01 02 00 00 00 00 74 [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 03 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [15:12:47]RAPDU: 90 00 [15:12:47]wFMCommunicate OK [15:12:47]wFMCommunicate request_size=255 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 B2 00 00 00 F4 03 04 00 6F 3B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B7 01 00 35 04 06 00 9D [15:12:47]Write to MH i2c: E2 02 01 F0 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 B2 00 00 00 F4 03 04 00 6F 3B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B7 01 00 35 04 06 00 9D 00 00 2F [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 03 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [15:12:47]RAPDU: 90 00 [15:12:47]wFMCommunicate OK [15:12:47]wFMCommunicate request_size=10 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 0D 02 02 05 DA 7B 34 D4 3B [15:12:47]Write to MH i2c: E2 0D 00 F1 0C 80 0D 02 02 05 00 DA 7B 34 D4 3B 00 00 19 [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 03 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [15:12:47]RAPDU: 90 00 [15:12:47]wFMCommunicate OK [15:12:47]wFMCommunicate request_size=4 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 0D 03 02 [15:12:47]Write to MH i2c: E2 08 00 F2 0C 80 0D 03 02 00 00 00 00 79 [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 0B 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 0B 00 F2 0C 00 A2 1A 4C 7E 6B C7 B1 CB 90 00 AE [15:12:47]RAPDU: A2 1A 4C 7E 6B C7 B1 CB 90 00 [15:12:47]wFMCommunicate OK [15:12:47]SAM_PROTO_SignData done [15:12:47]FM_MakeSignedData done [15:12:47]CreateOFDProtocolMessage [15:12:47]wFMCommunicate request_size=4 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 11 00 00 [15:12:47]Write to MH i2c: E2 08 00 F3 0C 80 11 00 00 00 00 00 00 79 [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 17 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 17 00 F3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CB [15:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:12:47]wFMCommunicate OK [15:12:47]CreateOFDProtocolMessage done [15:12:47]OFDSenderStorePacket 112577 [15:12:47]StoreOFDPacket docnum=112577 [15:12:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EE B9 07 01 DF 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 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 B2 00 00 00 F4 03 04 00 6F 3B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B7 01 00 35 04 06 00 9D DA 7B 34 D4 3B A2 1A 4C 7E 6B C7 B1 CB [15:12:47]CheckFolder [15:12:47]dirname=/storage/ofd_packets [15:12:47]CheckFolder done [15:12:47]ProducePacketName [15:12:47]name=ofd_packets/00112577 [15:12:47]NVStorageSaveData ofd_packets/00112577 [15:12:47]File name is /storage/ofd_packets/00112577 [15:12:47]Write 301 bytes [15:12:47]NVStorageSaveData done [15:12:47]OFDSenderStorePacket done [15:12:47]KKMCreateOFDPacket done [15:12:47]NVStorageSaveData kkm_last_timestamp [15:12:47]File name is /storage/kkm_last_timestamp [15:12:47]Write 4 bytes [15:12:47]NVStorageSaveData done [15:12:47]ExternCall_PrintAddStr [15:12:47]wPrintStart [15:12:47]Write to MH i2c: 01 00 00 F4 0C 00 [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: 01 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: 01 07 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 FF 0F 15 [15:12:47]RasterBufferAndPrint [15:12:47]line Счет N : (1)321262 [15:12:47]line ИНН: 02508201610067 [15:12:47]line Контрольно-Кассовый Чек [15:12:47]line ПРОДАЖА [15:12:47]line ТРК (МРК, ГНК) : 11 [15:12:47]line Товар: 2710124130 [15:12:47]line Аи-92-К-5 [15:12:47]line 16.570 * 66.40 [15:12:47]line = 1100.25 [15:12:47]line НДС 12% НСП 1% [15:12:47]line > о реализуемом товаре [15:12:47]line ОКРУГЛЕНИЕ: -0.25 [15:12:47]line ИТОГО: 1100.00 [15:12:47]line Внесено: 1100.00 [15:12:47]line СДАЧА: 0.00 [15:12:47]line НСП 1% : 9.74 [15:12:47]line НДС 12% : 116.84 [15:12:47]line Наличными: 1100.00 [15:12:47]line Безнал.: 0.00 [15:12:47]line Место: АЗС № 65 "Партнер Нефть" [15:12:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:12:47]line СНО: Общий режим [15:12:47]line Чек 178 23.06.2024 15:12 [15:12:47]line Смена: 392 ФФД: 1.0 [15:12:47]line ЗНМ: 0300000198 [15:12:47]line РНМ: 0000000000092771 [15:12:47]line Версия ККМ: 001 [15:12:47]line ФМ: 0000000000875083 [15:12:47]line ФД: 112577 [15:12:47]line ФПД: 173561695491131 [15:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T151247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112577&fm=173561695491131&tin=02508201610067®Number=0000000000092771&sum=110000 [15:12:48]OFD Sender: Processing packet 112577 [packets to send 38, broken 37] [15:12:48]ProducePacketName [15:12:48]name=ofd_packets/00112577 [15:12:48]OFD Sender: To server: pG, [15:12:48]CommunicateWithHost lk.salyk.kg:30040 [15:12:48]ConnectInit lk.salyk.kg [15:12:48]written 0, free lines is 4095 [15:12:48]Connected sock=10 [15:12:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EE B9 07 01 DF 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 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 B2 00 00 00 F4 03 04 00 6F 3B 78 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B7 01 00 35 04 06 00 9D DA 7B 34 D4 3B A2 1A 4C 7E 6B C7 B1 CB [15:12:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C1 05 47 00 A5 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B7 01 00 F4 03 04 00 59 D2 77 66 B6 04 01 00 00 6F 5C 12 BF 71 D7 3E 86 [15:12:48]CommunicateWithHost err = 0 [15:12:48]CheckOFDResponse [15:12:48]1017 (14) - 77093643461234 [15:12:48]1041 (16) - 0000000000875083 [15:12:48]1040 (4) - 112577 [15:12:48]1012 (4) - 23.06.2024 07:44 [15:12:48]1206 (1) - 0 [15:12:48]OFD Sender: Remove packet 112577 [15:12:48]ProducePacketName [15:12:48]name=ofd_packets/00112577 [15:12:48]NVStorageDeleteData [15:12:48]Write to MH i2c: 01 00 00 1F 0D 2C [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: 01 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: 01 07 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 EB 0C 2A [15:12:48]RasterBufferAndPrint [15:12:48]line [15:12:48]line [15:12:48]line [15:12:48]line [15:12:48]line [15:12:48]written 0, free lines is 3313 [15:12:48]MH_Cut [15:12:48]Write to MH i2c: D1 01 00 26 0D 01 05 [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: D1 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: D1 01 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: D1 01 00 26 0D 00 04 [15:12:48]Write to MH i2c: 01 00 00 27 0D 34 [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:48]OFD Sender: No OFD packet to send [15:12:49]*** Cut start [15:12:49]*** Partial cut [15:12:49]*** CUTSNS_PIN = 1 [15:12:49]*** CUTSNS_PIN = 0 [15:12:49]*** Brake cut motor [15:12:49]Read from MH i2c: 01 [15:12:49]MH_I2C_Read... [15:12:49]*** Stop cut motor [15:12:49]*** Cut end [15:12:49]Read from MH i2c: 01 07 00 [15:12:49]MH_I2C_Read... [15:12:49]Read from MH i2c: 01 07 00 27 0D 00 00 00 00 00 FF 0F 49 [15:12:49]process_action close_receipt done [15:12:49]requested_data is exist [15:12:49]produce_requested_data [15:12:49]requested_item fm.sn is exist - process it [15:12:49]wFMCommunicate request_size=4 [15:12:49]MH_SAM_APDU [15:12:49]CAPDU: 80 11 00 00 [15:12:49]Write to MH i2c: E2 08 00 28 0D 80 11 00 00 00 00 00 00 AF [15:12:49]Write i2c OK [15:12:49]MH_I2C_Read... [15:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:49]Read from MH i2c: E2 [15:12:49]MH_I2C_Read... [15:12:49]Read from MH i2c: E2 17 00 [15:12:49]MH_I2C_Read... [15:12:49]Read from MH i2c: E2 17 00 28 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [15:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:12:49]wFMCommunicate OK [15:12:49]requested_item fd.num is exist - process it [15:12:49]SAM_PROTO_GetFieldsCounters [15:12:49]wFMCommunicate request_size=4 [15:12:49]MH_SAM_APDU [15:12:49]CAPDU: 80 13 00 00 [15:12:49]Write to MH i2c: E2 08 00 29 0D 80 13 00 00 00 00 00 00 B2 [15:12:49]Write i2c OK [15:12:49]MH_I2C_Read... [15:12:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:50]Read from MH i2c: E2 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 62 00 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 62 00 29 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 EB [15:12:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 [15:12:50]wFMCommunicate OK [15:12:50]SAM_PROTO_GetFieldsCounters done [15:12:50]requested_item shift.num is exist - process it [15:12:50]requested_item shift.opened is exist - process it [15:12:50]req_shift_opened [15:12:50]FM_GetShiftState [15:12:50]SAM_PROTO_GetShiftState [15:12:50]wFMCommunicate request_size=4 [15:12:50]MH_SAM_APDU [15:12:50]CAPDU: 80 13 01 00 [15:12:50]Write to MH i2c: E2 08 00 2A 0D 80 13 01 00 00 00 00 00 B4 [15:12:50]Write i2c OK [15:12:50]MH_I2C_Read... [15:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:50]Read from MH i2c: E2 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 0E 00 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 0E 00 2A 0D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D2 [15:12:50]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:12:50]wFMCommunicate OK [15:12:50]SAM_PROTO_GetShiftState done [15:12:50]FM_GetShiftState done [15:12:50]req_shift_opened done [15:12:50]requested_item shift.open_date is exist - process it [15:12:50]req_shift_open_date [15:12:50]req_shift_open_date done [15:12:50]produce_requested_data done [15:12:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112577,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:12:50]process_action_free close_receipt [15:12:50]json_value_free [15:12:50]json_value_free done [15:12:50]process_json_proto returns [15:12:50]Send response to host [15:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112577,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:12:50]free response buf [15:12:50]execute_script done [15:12:50]execute_script returns [15:12:50]free content buf [15:12:50]Sock 8.Close socket [15:12:50]Sock 8.Thread stoped [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:25]accept exits with 9 [15:13:25]New connection [15:13:25]New thread 3066674532 created [15:13:25]Thread 3066817892 joined [15:13:25]Waiting for new connection... [15:13:25] Sock 9.Parse request [15:13:25]Sock 9.Check first char [15:13:25]Sock 9.First char is OK [15:13:25]request: POST /json_proto HTTP/1.0 [15:13:25]Method: POST [15:13:25]URL: /json_proto [15:13:25]Method is POST - this is cgi request [15:13:25]url: /json_proto [15:13:25]query_string will be loaded in cgi processing [15:13:25]execute_cgi json_proto POST (null) [15:13:25]execute_cgi path=json_proto method=POST [15:13:25]POST find Content-Length [15:13:25]Host: 172.17.59.68:8080 [15:13:25]Content-Length: 215 [15:13:25]Content-Type: application/json [15:13:25] [15:13:25]POST finish read [15:13:25]Found Content-Length = 215 [15:13:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:25]execute_script... [15:13:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:25]POST & json_proto [15:13:25]process_json_proto [15:13:25]json parsed OK: [15:13:25]protocol is kg_v1.0 [15:13:25]action value=get_value [15:13:25]process_action get_value [15:13:25]cmd_get_value [15:13:25]process_action get_value done [15:13:25]requested_data is exist [15:13:25]produce_requested_data [15:13:25]requested_item kkm.sn is exist - process it [15:13:25]requested_item kkm.ver is exist - process it [15:13:25]requested_item fm.sn is exist - process it [15:13:25]wFMCommunicate request_size=4 [15:13:25]MH_SAM_APDU [15:13:25]CAPDU: 80 11 00 00 [15:13:25]Write to MH i2c: E2 08 00 2B 0D 80 11 00 00 00 00 00 00 B2 [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:25]Read from MH i2c: E2 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 17 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 17 00 2B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [15:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:13:25]wFMCommunicate OK [15:13:25]requested_item fd.num is exist - process it [15:13:25]SAM_PROTO_GetFieldsCounters [15:13:25]wFMCommunicate request_size=4 [15:13:25]MH_SAM_APDU [15:13:25]CAPDU: 80 13 00 00 [15:13:25]Write to MH i2c: E2 08 00 2C 0D 80 13 00 00 00 00 00 00 B5 [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:25]Read from MH i2c: E2 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 62 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 62 00 2C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 EE [15:13:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 [15:13:25]wFMCommunicate OK [15:13:25]SAM_PROTO_GetFieldsCounters done [15:13:25]requested_item shift.num is exist - process it [15:13:25]requested_item shift.opened is exist - process it [15:13:25]req_shift_opened [15:13:25]FM_GetShiftState [15:13:25]SAM_PROTO_GetShiftState [15:13:25]wFMCommunicate request_size=4 [15:13:25]MH_SAM_APDU [15:13:25]CAPDU: 80 13 01 00 [15:13:25]Write to MH i2c: E2 08 00 2D 0D 80 13 01 00 00 00 00 00 B7 [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:25]Read from MH i2c: E2 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 0E 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 0E 00 2D 0D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 D5 [15:13:25]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:13:25]wFMCommunicate OK [15:13:25]SAM_PROTO_GetShiftState done [15:13:25]FM_GetShiftState done [15:13:25]req_shift_opened done [15:13:25]requested_item shift.open_date is exist - process it [15:13:25]req_shift_open_date [15:13:25]req_shift_open_date done [15:13:25]produce_requested_data done [15:13:25]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112577,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:13:25]process_action_free get_value [15:13:25]json_value_free [15:13:25]json_value_free done [15:13:25]process_json_proto returns [15:13:25]Send response to host [15:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112577,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:13:25]free response buf [15:13:25]execute_script done [15:13:25]execute_script returns [15:13:25]free content buf [15:13:25]Sock 9.Close socket [15:13:25]Sock 9.Thread stoped [15:13:25]accept exits with 8 [15:13:25]New connection [15:13:25]New thread 3066817892 created [15:13:25]Thread 3066674532 joined [15:13:25]Waiting for new connection... [15:13:25] Sock 8.Parse request [15:13:25]Sock 8.Check first char [15:13:25]Sock 8.First char is OK [15:13:25]request: POST /json_proto HTTP/1.0 [15:13:25]Method: POST [15:13:25]URL: /json_proto [15:13:25]Method is POST - this is cgi request [15:13:25]url: /json_proto [15:13:25]query_string will be loaded in cgi processing [15:13:25]execute_cgi json_proto POST (null) [15:13:25]execute_cgi path=json_proto method=POST [15:13:25]POST find Content-Length [15:13:25]Host: 172.17.59.68:8080 [15:13:25]Content-Length: 331 [15:13:25]Content-Type: application/json [15:13:25] [15:13:25]POST finish read [15:13:25]Found Content-Length = 331 [15:13:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:13:25]execute_script... [15:13:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:13:25]POST & json_proto [15:13:25]process_json_proto [15:13:25]json parsed OK: [15:13:25]protocol is kg_v1.0 [15:13:25]action value=get_value [15:13:25]process_action get_value [15:13:25]cmd_get_value [15:13:25]process_action get_value done [15:13:25]requested_data is exist [15:13:25]produce_requested_data [15:13:25]requested_item fm.sale.total is exist - process it [15:13:25]SAM_PROTO_GetFMData [15:13:25]wFMCommunicate request_size=4 [15:13:25]MH_SAM_APDU [15:13:25]CAPDU: 80 13 03 00 [15:13:25]Write to MH i2c: E2 08 00 2E 0D 80 13 03 00 00 00 00 00 BA [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 FD 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 FD 00 2E 0D 00 BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 65 [15:13:26]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [15:13:26]wFMCommunicate OK [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 17 00 00 [15:13:26]Write to MH i2c: E2 08 00 2F 0D 80 17 00 00 00 00 00 00 BC [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 FD 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 FD 00 2F 0D 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [15:13:26]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:26]wFMCommunicate OK [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 17 00 00 [15:13:26]Write to MH i2c: E2 08 00 30 0D 80 17 00 00 00 00 00 00 BD [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 FD 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 FD 00 30 0D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [15:13:26]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:26]wFMCommunicate OK [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 17 00 00 [15:13:26]Write to MH i2c: E2 08 00 31 0D 80 17 00 00 00 00 00 00 BE [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 FD 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 FD 00 31 0D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 35 [15:13:26]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [15:13:26]wFMCommunicate OK [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 17 00 00 [15:13:26]Write to MH i2c: E2 08 00 32 0D 80 17 00 00 00 00 00 00 BF [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 DA 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 DA 00 32 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A0 [15:13:27]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:13:27]wFMCommunicate OK [15:13:27]SAM_PROTO_GetFMData done [15:13:27]requested_item fm.sale_refund.total is exist - process it [15:13:27]requested_item fm.buy.total is exist - process it [15:13:27]requested_item shift.sale.total is exist - process it [15:13:27]SAM_PROTO_GetShiftData [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 13 02 00 [15:13:27]Write to MH i2c: E2 08 00 33 0D 80 13 02 00 00 00 00 00 BE [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 FD 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 FD 00 33 0D 00 B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 FF [15:13:27]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 [15:13:27]wFMCommunicate OK [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 17 00 00 [15:13:27]Write to MH i2c: E2 08 00 34 0D 80 17 00 00 00 00 00 00 C1 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 FD 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 FD 00 34 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DB [15:13:27]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 [15:13:27]wFMCommunicate OK [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 17 00 00 [15:13:27]Write to MH i2c: E2 08 00 35 0D 80 17 00 00 00 00 00 00 C2 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 FD 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 FD 00 35 0D 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 7F [15:13:28]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 [15:13:28]wFMCommunicate OK [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 17 00 00 [15:13:28]Write to MH i2c: E2 08 00 36 0D 80 17 00 00 00 00 00 00 C3 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 FD 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 FD 00 36 0D 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 36 [15:13:28]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 [15:13:28]wFMCommunicate OK [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 17 00 00 [15:13:28]Write to MH i2c: E2 08 00 37 0D 80 17 00 00 00 00 00 00 C4 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 CD 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 CD 00 37 0D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A8 [15:13:28]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 [15:13:28]wFMCommunicate OK [15:13:28]SAM_PROTO_GetShiftData done [15:13:28]requested_item shift.sale.total_cash is exist - process it [15:13:28]requested_item shift.sale_refund.total is exist - process it [15:13:28]requested_item shift.sale_refund.total_cash is exist - process it [15:13:28]requested_item shift.buy.total is exist - process it [15:13:28]requested_item shift.buy.total_cash is exist - process it [15:13:28]produce_requested_data done [15:13:28]produce_requested_data return {"fm.sale.total":84740474.34,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":170457.05,"shift.sale.total_cash":142006.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:13:28]process_action_free get_value [15:13:28]json_value_free [15:13:28]json_value_free done [15:13:28]process_json_proto returns [15:13:28]Send response to host [15:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84740474.34,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":170457.05,"shift.sale.total_cash":142006.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:13:28]free response buf [15:13:28]execute_script done [15:13:28]execute_script returns [15:13:28]free content buf [15:13:28]Sock 8.Close socket [15:13:28]Sock 8.Thread stoped [15:13:29]OFD Sender: No OFD packet to send [15:13:29]accept exits with 9 [15:13:29]New connection [15:13:29]New thread 3066674532 created [15:13:29]Thread 3066817892 joined [15:13:29]Waiting for new connection... [15:13:29] Sock 9.Parse request [15:13:29]Sock 9.Check first char [15:13:29]Sock 9.First char is OK [15:13:29]request: POST /json_proto HTTP/1.0 [15:13:29]Method: POST [15:13:29]URL: /json_proto [15:13:29]Method is POST - this is cgi request [15:13:29]url: /json_proto [15:13:29]query_string will be loaded in cgi processing [15:13:29]execute_cgi json_proto POST (null) [15:13:29]execute_cgi path=json_proto method=POST [15:13:29]POST find Content-Length [15:13:29]Host: 172.17.59.68:8080 [15:13:29]Content-Length: 331 [15:13:29]Content-Type: application/json [15:13:29] [15:13:29]POST finish read [15:13:29]Found Content-Length = 331 [15:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:13:29]execute_script... [15:13:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:13:29]POST & json_proto [15:13:29]process_json_proto [15:13:29]json parsed OK: [15:13:29]protocol is kg_v1.0 [15:13:29]action value=get_value [15:13:29]process_action get_value [15:13:29]cmd_get_value [15:13:29]process_action get_value done [15:13:29]requested_data is exist [15:13:29]produce_requested_data [15:13:29]requested_item fm.sale.total is exist - process it [15:13:29]SAM_PROTO_GetFMData [15:13:29]wFMCommunicate request_size=4 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 13 03 00 [15:13:29]Write to MH i2c: E2 08 00 38 0D 80 13 03 00 00 00 00 00 C4 [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 FD 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 FD 00 38 0D 00 BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 6F [15:13:29]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [15:13:29]wFMCommunicate OK [15:13:29]wFMCommunicate request_size=4 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 17 00 00 [15:13:29]Write to MH i2c: E2 08 00 39 0D 80 17 00 00 00 00 00 00 C6 [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 FD 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 FD 00 39 0D 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [15:13:29]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:29]wFMCommunicate OK [15:13:29]wFMCommunicate request_size=4 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 17 00 00 [15:13:29]Write to MH i2c: E2 08 00 3A 0D 80 17 00 00 00 00 00 00 C7 [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 FD 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 FD 00 3A 0D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [15:13:30]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:30]wFMCommunicate OK [15:13:30]wFMCommunicate request_size=4 [15:13:30]MH_SAM_APDU [15:13:30]CAPDU: 80 17 00 00 [15:13:30]Write to MH i2c: E2 08 00 3B 0D 80 17 00 00 00 00 00 00 C8 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 FD 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 FD 00 3B 0D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 3F [15:13:30]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [15:13:30]wFMCommunicate OK [15:13:30]wFMCommunicate request_size=4 [15:13:30]MH_SAM_APDU [15:13:30]CAPDU: 80 17 00 00 [15:13:30]Write to MH i2c: E2 08 00 3C 0D 80 17 00 00 00 00 00 00 C9 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 DA 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 DA 00 3C 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AA [15:13:30]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:13:31]wFMCommunicate OK [15:13:31]SAM_PROTO_GetFMData done [15:13:31]requested_item fm.sale_refund.total is exist - process it [15:13:31]requested_item fm.buy.total is exist - process it [15:13:31]requested_item shift.sale.total is exist - process it [15:13:31]SAM_PROTO_GetShiftData [15:13:31]wFMCommunicate request_size=4 [15:13:31]MH_SAM_APDU [15:13:31]CAPDU: 80 13 02 00 [15:13:31]Write to MH i2c: E2 08 00 3D 0D 80 13 02 00 00 00 00 00 C8 [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:13:31]Read from MH i2c: E2 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: E2 FD 00 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: E2 FD 00 3D 0D 00 B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 09 [15:13:31]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 [15:13:31]wFMCommunicate OK [15:13:31]wFMCommunicate request_size=4 [15:13:31]MH_SAM_APDU [15:13:31]CAPDU: 80 17 00 00 [15:13:31]Write to MH i2c: E2 08 00 3E 0D 80 17 00 00 00 00 00 00 CB [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:31]Read from MH i2c: E2 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: E2 FD 00 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: E2 FD 00 3E 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [15:13:31]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 [15:13:31]wFMCommunicate OK [15:13:31]wFMCommunicate request_size=4 [15:13:31]MH_SAM_APDU [15:13:31]CAPDU: 80 17 00 00 [15:13:31]Write to MH i2c: E2 08 00 3F 0D 80 17 00 00 00 00 00 00 CC [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 FD 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 FD 00 3F 0D 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 89 [15:13:32]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 [15:13:32]wFMCommunicate OK [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 17 00 00 [15:13:32]Write to MH i2c: E2 08 00 40 0D 80 17 00 00 00 00 00 00 CD [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 FD 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 FD 00 40 0D 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 40 [15:13:32]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 [15:13:32]wFMCommunicate OK [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 17 00 00 [15:13:32]Write to MH i2c: E2 08 00 41 0D 80 17 00 00 00 00 00 00 CE [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [15:13:33]Read from MH i2c: E2 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 CD 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 CD 00 41 0D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B2 [15:13:33]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 [15:13:33]wFMCommunicate OK [15:13:33]SAM_PROTO_GetShiftData done [15:13:33]requested_item shift.sale.total_cash is exist - process it [15:13:33]requested_item shift.sale_refund.total is exist - process it [15:13:33]requested_item shift.sale_refund.total_cash is exist - process it [15:13:33]requested_item shift.buy.total is exist - process it [15:13:33]requested_item shift.buy.total_cash is exist - process it [15:13:33]produce_requested_data done [15:13:33]produce_requested_data return {"fm.sale.total":84740474.34,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":170457.05,"shift.sale.total_cash":142006.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:13:33]process_action_free get_value [15:13:33]json_value_free [15:13:33]json_value_free done [15:13:33]process_json_proto returns [15:13:33]Send response to host [15:13:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84740474.34,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":170457.05,"shift.sale.total_cash":142006.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:13:33]free response buf [15:13:33]execute_script done [15:13:33]execute_script returns [15:13:33]free content buf [15:13:33]Sock 9.Close socket [15:13:33]Sock 9.Thread stoped [15:13:33]accept exits with 8 [15:13:33]New connection [15:13:33]New thread 3066817892 created [15:13:33]Thread 3066674532 joined [15:13:33]Waiting for new connection... [15:13:33] Sock 8.Parse request [15:13:33]Sock 8.Check first char [15:13:33]Sock 8.First char is OK [15:13:33]request: POST /json_proto HTTP/1.0 [15:13:33]Method: POST [15:13:33]URL: /json_proto [15:13:33]Method is POST - this is cgi request [15:13:33]url: /json_proto [15:13:33]query_string will be loaded in cgi processing [15:13:33]execute_cgi json_proto POST (null) [15:13:33]execute_cgi path=json_proto method=POST [15:13:33]POST find Content-Length [15:13:33]Host: 172.17.59.68:8080 [15:13:33]Content-Length: 275 [15:13:33]Content-Type: application/json [15:13:33] [15:13:33]POST finish read [15:13:33]Found Content-Length = 275 [15:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:33]execute_script... [15:13:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:33]POST & json_proto [15:13:33]process_json_proto [15:13:33]json parsed OK: [15:13:33]protocol is kg_v1.0 [15:13:33]action value=x_report [15:13:33]process_action x_report [15:13:33]cmd_x_report [15:13:33]MH_GetDate [15:13:33]Write to MH i2c: F0 00 00 42 0D 3E [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 09 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 09 00 42 0D 00 9E 3B 78 66 BC EC 60 65 6B [15:13:33]GetLastDocTimeStamp 1719155567 [15:13:33]current date 1719155614 [15:13:33]FM_GetShiftState [15:13:33]SAM_PROTO_GetShiftState [15:13:33]wFMCommunicate request_size=4 [15:13:33]MH_SAM_APDU [15:13:33]CAPDU: 80 13 01 00 [15:13:33]Write to MH i2c: E2 08 00 43 0D 80 13 01 00 00 00 00 00 CD [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:33]Read from MH i2c: E2 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 0E 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 0E 00 43 0D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 EB [15:13:33]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:13:33]wFMCommunicate OK [15:13:33]SAM_PROTO_GetShiftState done [15:13:33]FM_GetShiftState done [15:13:33]KKMCreateXReportDocument [15:13:33]Load OK [15:13:33]Malloc new data [15:13:33]MH_GetDate [15:13:33]Write to MH i2c: F0 00 00 44 0D 40 [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 09 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 09 00 44 0D 00 9E 3B 78 66 BC EC 60 65 6D [15:13:33]Malloc new data [15:13:33]Malloc new data [15:13:33]wFMCommunicate request_size=4 [15:13:33]MH_SAM_APDU [15:13:33]CAPDU: 80 11 00 00 [15:13:33]Write to MH i2c: E2 08 00 45 0D 80 11 00 00 00 00 00 00 CC [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:33]Read from MH i2c: E2 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 17 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 17 00 45 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [15:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:13:33]wFMCommunicate OK [15:13:33]SAM_PROTO_GetFieldsCounters [15:13:33]wFMCommunicate request_size=4 [15:13:33]MH_SAM_APDU [15:13:33]CAPDU: 80 13 00 00 [15:13:33]Write to MH i2c: E2 08 00 46 0D 80 13 00 00 00 00 00 00 CF [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:33]Read from MH i2c: E2 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 62 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 62 00 46 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 08 [15:13:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 [15:13:33]wFMCommunicate OK [15:13:33]SAM_PROTO_GetFieldsCounters done [15:13:33]Malloc new data [15:13:33]Malloc new data [15:13:33]Malloc new data [15:13:33]KKMCreateXReportDocument OK [15:13:33]KKMSetXReportData OK [15:13:33]KKMPrepareXReportFMData [15:13:33]SAM_PROTO_GetShiftData [15:13:33]wFMCommunicate request_size=4 [15:13:33]MH_SAM_APDU [15:13:33]CAPDU: 80 13 02 00 [15:13:33]Write to MH i2c: E2 08 00 47 0D 80 13 02 00 00 00 00 00 D2 [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]OFD Sender: No OFD packet to send [15:13:34]Read from MH i2c: E2 FD 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 FD 00 47 0D 00 B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 13 [15:13:34]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 [15:13:34]wFMCommunicate OK [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 17 00 00 [15:13:34]Write to MH i2c: E2 08 00 48 0D 80 17 00 00 00 00 00 00 D5 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 FD 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 FD 00 48 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [15:13:34]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 [15:13:34]wFMCommunicate OK [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 17 00 00 [15:13:34]Write to MH i2c: E2 08 00 49 0D 80 17 00 00 00 00 00 00 D6 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 FD 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 FD 00 49 0D 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 93 [15:13:35]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 [15:13:35]wFMCommunicate OK [15:13:35]wFMCommunicate request_size=4 [15:13:35]MH_SAM_APDU [15:13:35]CAPDU: 80 17 00 00 [15:13:35]Write to MH i2c: E2 08 00 4A 0D 80 17 00 00 00 00 00 00 D7 [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 FD 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 FD 00 4A 0D 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 4A [15:13:35]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 [15:13:35]wFMCommunicate OK [15:13:35]wFMCommunicate request_size=4 [15:13:35]MH_SAM_APDU [15:13:35]CAPDU: 80 17 00 00 [15:13:35]Write to MH i2c: E2 08 00 4B 0D 80 17 00 00 00 00 00 00 D8 [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 CD 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 CD 00 4B 0D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC [15:13:36]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 [15:13:36]wFMCommunicate OK [15:13:36]SAM_PROTO_GetShiftData done [15:13:36]1194 (1196) - счетчики итогов смены [15:13:36] 1134 (4) - 178 - количество чеков со всеми признаками расчетов [15:13:36] 1129 (157) - счетчики операций «приход» [15:13:36] 1135 (4) - 178 - количество чеков по признаку расчетов [15:13:36] 1201 (4) - 170457.05 - общая итоговая сумма в чеках [15:13:36] 1136 (3) - 142006.00 - итоговая сумма в чеках наличными [15:13:36] 1138 (3) - 28451.05 - итоговая сумма в чеках безналичными [15:13:36] 1024 (123) - суммы налогов [15:13:36] 1006 (9) - суммы НДС [15:13:36] 1010 (1) - 0% - код ставки НДС [15:13:36] 1011 (0) - 0.00 - сумма НДС по ставке [15:13:36] 1006 (12) - суммы НДС [15:13:36] 1010 (1) - 12% - код ставки НДС [15:13:36] 1011 (3) - 18108.98 - сумма НДС по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 0% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (12) - суммы НСП [15:13:36] 1014 (1) - 1% - код ставки НСП [15:13:36] 1015 (3) - 1508.83 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 2% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 3% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 5% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 0,50% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 1,50% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1130 (141) - счетчики операций «возврат прихода» [15:13:36] 1135 (4) - 0 - количество чеков по признаку расчетов [15:13:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:13:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:13:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:13:36] 1024 (117) - суммы налогов [15:13:36] 1006 (9) - суммы НДС [15:13:36] 1010 (1) - 0% - код ставки НДС [15:13:36] 1011 (0) - 0.00 - сумма НДС по ставке [15:13:36] 1006 (9) - суммы НДС [15:13:36] 1010 (1) - 12% - код ставки НДС [15:13:36] 1011 (0) - 0.00 - сумма НДС по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 0% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 1% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 2% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 3% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 5% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 0,50% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 1,50% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1131 (141) - счетчики операций «расход» [15:13:36] 1135 (4) - 0 - количество чеков по признаку расчетов [15:13:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:13:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:13:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:13:36] 1024 (117) - суммы налогов [15:13:36] 1006 (9) - суммы НДС [15:13:36] 1010 (1) - 0% - код ставки НДС [15:13:36] 1011 (0) - 0.00 - сумма НДС по ставке [15:13:36] 1006 (9) - суммы НДС [15:13:36] 1010 (1) - 12% - код ставки НДС [15:13:36] 1011 (0) - 0.00 - сумма НДС по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 0% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 1% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 2% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 3% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 5% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 0,50% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 1,50% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1132 (141) - счетчики операций «возврат расхода» [15:13:36] 1135 (4) - 0 - количество чеков по признаку расчетов [15:13:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:13:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:13:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:13:36] 1024 (117) - суммы налогов [15:13:36] 1006 (9) - суммы НДС [15:13:36] 1010 (1) - 0% - код ставки НДС [15:13:36] 1011 (0) - 0.00 - сумма НДС по ставке [15:13:36] 1006 (9) - суммы НДС [15:13:36] 1010 (1) - 12% - код ставки НДС [15:13:36] 1011 (0) - 0.00 - сумма НДС по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 0% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 1% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 2% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 3% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 5% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 0,50% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1007 (9) - суммы НСП [15:13:36] 1014 (1) - 1,50% - код ставки НСП [15:13:36] 1015 (0) - 0.00 - сумма НСП по ставке [15:13:36] 1133 (588) - - счетчики коррекции - не используются [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1194 (04AA) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1134 (046E) [15:13:36]Malloc new data [15:13:36]Processing tag 1129 (0469) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1135 (046F) [15:13:36]Malloc new data [15:13:36]Processing tag 1201 (04B1) [15:13:36]Malloc new data [15:13:36]Processing tag 1136 (0470) [15:13:36]Malloc new data [15:13:36]Processing tag 1138 (0472) [15:13:36]Malloc new data [15:13:36]Processing tag 1024 (0400) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1006 (03EE) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1010 (03F2) [15:13:36]Malloc new data [15:13:36]Processing tag 1011 (03F3) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1006 (03EE) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1010 (03F2) [15:13:36]Malloc new data [15:13:36]Processing tag 1011 (03F3) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]SetTLVBufToDocument err=0 [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1130 (046A) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1135 (046F) [15:13:36]Malloc new data [15:13:36]Processing tag 1201 (04B1) [15:13:36]Malloc new data [15:13:36]Processing tag 1136 (0470) [15:13:36]Malloc new data [15:13:36]Processing tag 1138 (0472) [15:13:36]Malloc new data [15:13:36]Processing tag 1024 (0400) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1006 (03EE) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1010 (03F2) [15:13:36]Malloc new data [15:13:36]Processing tag 1011 (03F3) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1006 (03EE) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1010 (03F2) [15:13:36]Malloc new data [15:13:36]Processing tag 1011 (03F3) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]SetTLVBufToDocument err=0 [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1131 (046B) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1135 (046F) [15:13:36]Malloc new data [15:13:36]Processing tag 1201 (04B1) [15:13:36]Malloc new data [15:13:36]Processing tag 1136 (0470) [15:13:36]Malloc new data [15:13:36]Processing tag 1138 (0472) [15:13:36]Malloc new data [15:13:36]Processing tag 1024 (0400) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1006 (03EE) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1010 (03F2) [15:13:36]Malloc new data [15:13:36]Processing tag 1011 (03F3) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1006 (03EE) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1010 (03F2) [15:13:36]Malloc new data [15:13:36]Processing tag 1011 (03F3) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:36]Malloc new data [15:13:36]Processing tag 1015 (03F7) [15:13:36]Malloc new data [15:13:36]SetTLVBufToDocument err=0 [15:13:36]Processing tag 1007 (03EF) [15:13:36]Load OK [15:13:36]SetTLVBufToDocument [15:13:36]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]SetTLVBufToDocument err=0 [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1132 (046C) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1135 (046F) [15:13:37]Malloc new data [15:13:37]Processing tag 1201 (04B1) [15:13:37]Malloc new data [15:13:37]Processing tag 1136 (0470) [15:13:37]Malloc new data [15:13:37]Processing tag 1138 (0472) [15:13:37]Malloc new data [15:13:37]Processing tag 1024 (0400) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1006 (03EE) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1010 (03F2) [15:13:37]Malloc new data [15:13:37]Processing tag 1011 (03F3) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1006 (03EE) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1010 (03F2) [15:13:37]Malloc new data [15:13:37]Processing tag 1011 (03F3) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1007 (03EF) [15:13:37]Load OK [15:13:37]SetTLVBufToDocument [15:13:37]Processing tag 1014 (03F6) [15:13:37]Malloc new data [15:13:37]Processing tag 1015 (03F7) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]SetTLVBufToDocument err=0 [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Processing tag 1133 (046D) [15:13:37]Malloc new data [15:13:37]SetTLVBufToDocument err=0 [15:13:37]SetTLVBufToDocument err=0 [15:13:37]Malloc new data [15:13:37]SAM_PROTO_GetFMData [15:13:37]wFMCommunicate request_size=4 [15:13:37]MH_SAM_APDU [15:13:37]CAPDU: 80 13 03 00 [15:13:37]Write to MH i2c: E2 08 00 4C 0D 80 13 03 00 00 00 00 00 D8 [15:13:37]Write i2c OK [15:13:37]MH_I2C_Read... [15:13:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:13:37]Read from MH i2c: E2 [15:13:37]MH_I2C_Read... [15:13:37]Read from MH i2c: E2 FD 00 [15:13:37]MH_I2C_Read... [15:13:37]Read from MH i2c: E2 FD 00 4C 0D 00 BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 83 [15:13:37]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [15:13:37]wFMCommunicate OK [15:13:37]wFMCommunicate request_size=4 [15:13:37]MH_SAM_APDU [15:13:37]CAPDU: 80 17 00 00 [15:13:37]Write to MH i2c: E2 08 00 4D 0D 80 17 00 00 00 00 00 00 DA [15:13:37]Write i2c OK [15:13:37]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 FD 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 FD 00 4D 0D 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [15:13:38]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:38]wFMCommunicate OK [15:13:38]wFMCommunicate request_size=4 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 17 00 00 [15:13:38]Write to MH i2c: E2 08 00 4E 0D 80 17 00 00 00 00 00 00 DB [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 FD 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 FD 00 4E 0D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0D [15:13:38]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:38]wFMCommunicate OK [15:13:38]wFMCommunicate request_size=4 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 17 00 00 [15:13:38]Write to MH i2c: E2 08 00 4F 0D 80 17 00 00 00 00 00 00 DC [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:39]OFD Sender: No OFD packet to send [15:13:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 FD 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 FD 00 4F 0D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [15:13:39]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [15:13:39]wFMCommunicate OK [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 17 00 00 [15:13:39]Write to MH i2c: E2 08 00 50 0D 80 17 00 00 00 00 00 00 DD [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 DA 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 DA 00 50 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [15:13:39]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:13:39]wFMCommunicate OK [15:13:39]SAM_PROTO_GetFMData done [15:13:39]FM_GetFMData:85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:13:40]oper:6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:13:40]total:CA B3 17 F9 01 [15:13:40]Malloc new data [15:13:40]oper:6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:13:40]total:84 4E [15:13:40]Malloc new data [15:13:40]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:13:40]total: [15:13:40]Malloc new data [15:13:40]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:13:40]total: [15:13:40]Malloc new data [15:13:40]KKMPrepareXReportFMData err=0 [15:13:40]Х отчет ИНН: 02508201610067 Кассир: Бейшенбеков А. 23.06.2024 15:13 Смена: 266 РНМ: 0000000000092771 ЗНМ: 0300000198 СНО: Общий режим Всего чеков: 178 ИТОГИ ПРИХОД Чеков: 178 Общий итог: 170457.05 Итого наличными: 142006.00 Итого безнал.: 28451.05 НДС 0% : 0.00 НДС 12% : 18108.98 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1508.83 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 142006.00 НС Приход: 84740474.34 НС Возвр.Прихода: 201.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875083 [15:13:40]StoreToDocumentArchive [15:13:40]MH_GetDate [15:13:40]Write to MH i2c: F0 00 00 51 0D 4D [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: F0 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: F0 09 00 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: F0 09 00 51 0D 00 A6 3B 78 66 BC EC 60 65 82 [15:13:41]shift 266 fd 1719155622 [15:13:41]Create dir for shift 0266 [15:13:41]save to /storage/0266/doc_1719155622 [15:13:41]save last doc name /storage/0266/doc_1719155622 to /storage/kkm_last_doc_name [15:13:41]save OK [15:13:41]Clear old archive folders... [15:13:41]NVStorageSaveData kkm_last_timestamp [15:13:41]File name is /storage/kkm_last_timestamp [15:13:41]Write 4 bytes [15:13:41]NVStorageSaveData done [15:13:41]ExternCall_PrintAddStr [15:13:41]wPrintStart [15:13:41]Write to MH i2c: 01 00 00 52 0D 5F [15:13:41]Write i2c OK [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: 01 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: 01 07 00 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: 01 07 00 52 0D 00 00 00 00 00 FF 0F 74 [15:13:41]RasterBufferAndPrint [15:13:41]line Х отчет [15:13:41]line ИНН: 02508201610067 [15:13:41]line Кассир: Бейшенбеков А. [15:13:41]line 23.06.2024 15:13 [15:13:41]line Смена: 266 [15:13:41]line РНМ: 0000000000092771 [15:13:41]line ЗНМ: 0300000198 [15:13:41]line СНО: Общий режим [15:13:41]line Всего чеков: 178 [15:13:41]line ИТОГИ ПРИХОД [15:13:41]line Чеков: 178 [15:13:41]line Общий итог: 170457.05 [15:13:41]line Итого наличными: 142006.00 [15:13:41]line Итого безнал.: 28451.05 [15:13:41]line НДС 0% : 0.00 [15:13:41]line НДС 12% : 18108.98 [15:13:41]line НСП 0% : 0.00 [15:13:41]line НСП 1,50% : 0.00 [15:13:41]line НСП 0,50% : 0.00 [15:13:41]line НСП 5% : 0.00 [15:13:41]line НСП 3% : 0.00 [15:13:41]line НСП 2% : 0.00 [15:13:41]line НСП 1% : 1508.83 [15:13:41]line ИТОГИ ВОЗВРАТ ПРИХОДА [15:13:41]line Чеков: 0 [15:13:41]line Общий итог: 0.00 [15:13:41]line Итого наличными: 0.00 [15:13:41]line Итого безнал.: 0.00 [15:13:41]line НДС 0% : 0.00 [15:13:41]line НДС 12% : 0.00 [15:13:41]line НСП 0% : 0.00 [15:13:41]line НСП 1,50% : 0.00 [15:13:41]line НСП 0,50% : 0.00 [15:13:41]line НСП 5% : 0.00 [15:13:41]line НСП 3% : 0.00 [15:13:41]line НСП 2% : 0.00 [15:13:41]line НСП 1% : 0.00 [15:13:41]line ИТОГИ РАСХОД [15:13:41]line Чеков: 0 [15:13:41]line Общий итог: 0.00 [15:13:41]line Итого наличными: 0.00 [15:13:41]line Итого безнал.: 0.00 [15:13:41]line НДС 0% : 0.00 [15:13:41]line НДС 12% : 0.00 [15:13:41]line НСП 0% : 0.00 [15:13:41]line НСП 1,50% : 0.00 [15:13:41]line НСП 0,50% : 0.00 [15:13:41]line НСП 5% : 0.00 [15:13:41]line НСП 3% : 0.00 [15:13:41]line НСП 2% : 0.00 [15:13:41]line НСП 1% : 0.00 [15:13:41]line ИТОГИ ВОЗВРАТ РАСХОДА [15:13:41]line Чеков: 0 [15:13:41]line Общий итог: 0.00 [15:13:41]line Итого наличными: 0.00 [15:13:41]line Итого безнал.: 0.00 [15:13:41]line НДС 0% : 0.00 [15:13:41]line НДС 12% : 0.00 [15:13:41]line НСП 0% : 0.00 [15:13:41]line НСП 1,50% : 0.00 [15:13:41]line НСП 0,50% : 0.00 [15:13:41]line НСП 5% : 0.00 [15:13:41]line НСП 3% : 0.00 [15:13:41]line НСП 2% : 0.00 [15:13:41]line НСП 1% : 0.00 [15:13:41]line Сумма внесений: 0.00 [15:13:41]line Сумма выплат: 0.00 [15:13:41]line Нал. в кассе: 142006.00 [15:13:41]line НС Приход: 84740474.34 [15:13:41]line НС Возвр.Прихода: 201.00 [15:13:41]line НС Расход: 0.00 [15:13:41]line НС Возвр.Расхода: 0.00 [15:13:41]line ФМ: 0000000000875083 [15:13:41]written 0, free lines is 4095 [15:13:41]Write to MH i2c: 01 00 00 9D 0D AA [15:13:41]Write i2c OK [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: 01 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: 01 07 00 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: 01 07 00 9D 0D 00 00 00 00 00 BA 0A 75 [15:13:41]RasterBufferAndPrint [15:13:41]line [15:13:41]line [15:13:41]line [15:13:41]line [15:13:41]line [15:13:41]written 0, free lines is 2781 [15:13:41]MH_Cut [15:13:41]Write to MH i2c: D1 01 00 A4 0D 01 83 [15:13:41]Write i2c OK [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: D1 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: D1 01 00 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: D1 01 00 A4 0D 00 82 [15:13:41]Write to MH i2c: 01 00 00 A5 0D B2 [15:13:41]Write i2c OK [15:13:41]MH_I2C_Read... [15:13:42]*** Cut start [15:13:42]*** Partial cut [15:13:42]*** CUTSNS_PIN = 1 [15:13:42]*** CUTSNS_PIN = 0 [15:13:43]*** Brake cut motor [15:13:43]Read from MH i2c: 01 [15:13:43]MH_I2C_Read... [15:13:43]*** Stop cut motor [15:13:43]*** Cut end [15:13:43]Read from MH i2c: 01 07 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: 01 07 00 A5 0D 00 00 00 00 00 FF 0F C7 [15:13:43]process_action x_report done [15:13:43]requested_data is exist [15:13:43]produce_requested_data [15:13:43]requested_item fd.num is exist - process it [15:13:43]SAM_PROTO_GetFieldsCounters [15:13:43]wFMCommunicate request_size=4 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 13 00 00 [15:13:43]Write to MH i2c: E2 08 00 A6 0D 80 13 00 00 00 00 00 00 2F [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 62 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 62 00 A6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 68 [15:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 [15:13:43]wFMCommunicate OK [15:13:43]SAM_PROTO_GetFieldsCounters done [15:13:43]requested_item shift.num is exist - process it [15:13:43]requested_item shift.opened is exist - process it [15:13:43]req_shift_opened [15:13:43]FM_GetShiftState [15:13:43]SAM_PROTO_GetShiftState [15:13:43]wFMCommunicate request_size=4 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 13 01 00 [15:13:43]Write to MH i2c: E2 08 00 A7 0D 80 13 01 00 00 00 00 00 31 [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 0E 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 0E 00 A7 0D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4F [15:13:43]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:13:43]wFMCommunicate OK [15:13:43]SAM_PROTO_GetShiftState done [15:13:43]FM_GetShiftState done [15:13:43]req_shift_opened done [15:13:43]requested_item shift.open_date is exist - process it [15:13:43]req_shift_open_date [15:13:43]req_shift_open_date done [15:13:43]produce_requested_data done [15:13:43]produce_requested_data return {"fd.num":112577,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:13:43]process_action_free x_report [15:13:43]json_value_free [15:13:43]json_value_free done [15:13:43]process_json_proto returns [15:13:43]Send response to host [15:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112577,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:13:43]free response buf [15:13:43]execute_script done [15:13:43]execute_script returns [15:13:43]free content buf [15:13:43]Sock 8.Close socket [15:13:43]Sock 8.Thread stoped [15:13:44]OFD Sender: No OFD packet to send [15:13:47]accept exits with 9 [15:13:47]New connection [15:13:47]New thread 3066674532 created [15:13:47]Thread 3066817892 joined [15:13:47]Waiting for new connection... [15:13:47] Sock 9.Parse request [15:13:47]Sock 9.Check first char [15:13:47]Sock 9.First char is OK [15:13:47]request: POST /json_proto HTTP/1.0 [15:13:47]Method: POST [15:13:47]URL: /json_proto [15:13:47]Method is POST - this is cgi request [15:13:47]url: /json_proto [15:13:47]query_string will be loaded in cgi processing [15:13:47]execute_cgi json_proto POST (null) [15:13:47]execute_cgi path=json_proto method=POST [15:13:47]POST find Content-Length [15:13:47]Host: 172.17.59.68:8080 [15:13:47]Content-Length: 215 [15:13:47]Content-Type: application/json [15:13:47] [15:13:47]POST finish read [15:13:47]Found Content-Length = 215 [15:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:47]execute_script... [15:13:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:47]POST & json_proto [15:13:47]process_json_proto [15:13:47]json parsed OK: [15:13:47]protocol is kg_v1.0 [15:13:47]action value=get_value [15:13:47]process_action get_value [15:13:47]cmd_get_value [15:13:47]process_action get_value done [15:13:47]requested_data is exist [15:13:47]produce_requested_data [15:13:47]requested_item kkm.sn is exist - process it [15:13:47]requested_item kkm.ver is exist - process it [15:13:47]requested_item fm.sn is exist - process it [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 11 00 00 [15:13:47]Write to MH i2c: E2 08 00 A8 0D 80 11 00 00 00 00 00 00 2F [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 17 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 17 00 A8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [15:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:13:47]wFMCommunicate OK [15:13:47]requested_item fd.num is exist - process it [15:13:47]SAM_PROTO_GetFieldsCounters [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 13 00 00 [15:13:47]Write to MH i2c: E2 08 00 A9 0D 80 13 00 00 00 00 00 00 32 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 62 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 62 00 A9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 6B [15:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B7 01 00 0E 04 04 00 88 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 [15:13:47]wFMCommunicate OK [15:13:47]SAM_PROTO_GetFieldsCounters done [15:13:47]requested_item shift.num is exist - process it [15:13:47]requested_item shift.opened is exist - process it [15:13:47]req_shift_opened [15:13:47]FM_GetShiftState [15:13:47]SAM_PROTO_GetShiftState [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 13 01 00 [15:13:47]Write to MH i2c: E2 08 00 AA 0D 80 13 01 00 00 00 00 00 34 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 0E 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 0E 00 AA 0D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 52 [15:13:47]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:13:47]wFMCommunicate OK [15:13:47]SAM_PROTO_GetShiftState done [15:13:47]FM_GetShiftState done [15:13:47]req_shift_opened done [15:13:47]requested_item shift.open_date is exist - process it [15:13:47]req_shift_open_date [15:13:47]req_shift_open_date done [15:13:47]produce_requested_data done [15:13:47]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112577,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [15:13:47]process_action_free get_value [15:13:47]json_value_free [15:13:47]json_value_free done [15:13:47]process_json_proto returns [15:13:47]Send response to host [15:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112577,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [15:13:47]free response buf [15:13:47]execute_script done [15:13:47]execute_script returns [15:13:47]free content buf [15:13:47]Sock 9.Close socket [15:13:47]Sock 9.Thread stoped [15:13:47]accept exits with 8 [15:13:47]New connection [15:13:47]New thread 3066817892 created [15:13:47]Thread 3066674532 joined [15:13:47]Waiting for new connection... [15:13:47] Sock 8.Parse request [15:13:47]Sock 8.Check first char [15:13:47]Sock 8.First char is OK [15:13:47]request: POST /json_proto HTTP/1.0 [15:13:47]Method: POST [15:13:47]URL: /json_proto [15:13:47]Method is POST - this is cgi request [15:13:47]url: /json_proto [15:13:47]query_string will be loaded in cgi processing [15:13:47]execute_cgi json_proto POST (null) [15:13:47]execute_cgi path=json_proto method=POST [15:13:47]POST find Content-Length [15:13:47]Host: 172.17.59.68:8080 [15:13:47]Content-Length: 331 [15:13:47]Content-Type: application/json [15:13:47] [15:13:47]POST finish read [15:13:47]Found Content-Length = 331 [15:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:13:47]execute_script... [15:13:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:13:47]POST & json_proto [15:13:47]process_json_proto [15:13:47]json parsed OK: [15:13:47]protocol is kg_v1.0 [15:13:47]action value=get_value [15:13:47]process_action get_value [15:13:47]cmd_get_value [15:13:47]process_action get_value done [15:13:47]requested_data is exist [15:13:47]produce_requested_data [15:13:47]requested_item fm.sale.total is exist - process it [15:13:47]SAM_PROTO_GetFMData [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 13 03 00 [15:13:47]Write to MH i2c: E2 08 00 AB 0D 80 13 03 00 00 00 00 00 37 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:13:48]Read from MH i2c: E2 [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: E2 FD 00 [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: E2 FD 00 AB 0D 00 BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 E2 [15:13:48]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [15:13:48]wFMCommunicate OK [15:13:48]wFMCommunicate request_size=4 [15:13:48]MH_SAM_APDU [15:13:48]CAPDU: 80 17 00 00 [15:13:48]Write to MH i2c: E2 08 00 AC 0D 80 17 00 00 00 00 00 00 39 [15:13:48]Write i2c OK [15:13:48]MH_I2C_Read... [15:13:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:48]Read from MH i2c: E2 [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: E2 FD 00 [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: E2 FD 00 AC 0D 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [15:13:48]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:49]wFMCommunicate OK [15:13:49]wFMCommunicate request_size=4 [15:13:49]MH_SAM_APDU [15:13:49]CAPDU: 80 17 00 00 [15:13:49]Write to MH i2c: E2 08 00 AD 0D 80 17 00 00 00 00 00 00 3A [15:13:49]Write i2c OK [15:13:49]MH_I2C_Read... [15:13:49]OFD Sender: No OFD packet to send [15:13:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:49]Read from MH i2c: E2 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 FD 00 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 FD 00 AD 0D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [15:13:49]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:49]wFMCommunicate OK [15:13:49]wFMCommunicate request_size=4 [15:13:49]MH_SAM_APDU [15:13:49]CAPDU: 80 17 00 00 [15:13:49]Write to MH i2c: E2 08 00 AE 0D 80 17 00 00 00 00 00 00 3B [15:13:49]Write i2c OK [15:13:49]MH_I2C_Read... [15:13:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:49]Read from MH i2c: E2 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 FD 00 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 FD 00 AE 0D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B2 [15:13:49]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [15:13:50]wFMCommunicate OK [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 17 00 00 [15:13:50]Write to MH i2c: E2 08 00 AF 0D 80 17 00 00 00 00 00 00 3C [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 DA 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 DA 00 AF 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1D [15:13:50]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:13:50]wFMCommunicate OK [15:13:50]SAM_PROTO_GetFMData done [15:13:50]requested_item fm.sale_refund.total is exist - process it [15:13:50]requested_item fm.buy.total is exist - process it [15:13:50]requested_item shift.sale.total is exist - process it [15:13:50]SAM_PROTO_GetShiftData [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 13 02 00 [15:13:50]Write to MH i2c: E2 08 00 B0 0D 80 13 02 00 00 00 00 00 3B [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 FD 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 FD 00 B0 0D 00 B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 7C [15:13:51]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 [15:13:51]wFMCommunicate OK [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 17 00 00 [15:13:51]Write to MH i2c: E2 08 00 B1 0D 80 17 00 00 00 00 00 00 3E [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 FD 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 FD 00 B1 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 58 [15:13: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 [15:13:51]wFMCommunicate OK [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 17 00 00 [15:13:51]Write to MH i2c: E2 08 00 B2 0D 80 17 00 00 00 00 00 00 3F [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 FD 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 FD 00 B2 0D 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 FC [15:13:52]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 [15:13:52]wFMCommunicate OK [15:13:52]wFMCommunicate request_size=4 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 17 00 00 [15:13:52]Write to MH i2c: E2 08 00 B3 0D 80 17 00 00 00 00 00 00 40 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 FD 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 FD 00 B3 0D 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 B3 [15:13: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 [15:13:53]wFMCommunicate OK [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 17 00 00 [15:13:53]Write to MH i2c: E2 08 00 B4 0D 80 17 00 00 00 00 00 00 41 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 CD 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 CD 00 B4 0D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 25 [15:13:53]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 [15:13:53]wFMCommunicate OK [15:13:53]SAM_PROTO_GetShiftData done [15:13:53]requested_item shift.sale.total_cash is exist - process it [15:13:53]requested_item shift.sale_refund.total is exist - process it [15:13:53]requested_item shift.sale_refund.total_cash is exist - process it [15:13:53]requested_item shift.buy.total is exist - process it [15:13:53]requested_item shift.buy.total_cash is exist - process it [15:13:53]produce_requested_data done [15:13:53]produce_requested_data return {"fm.sale.total":84740474.34,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":170457.05,"shift.sale.total_cash":142006.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:13:53]process_action_free get_value [15:13:53]json_value_free [15:13:53]json_value_free done [15:13:53]process_json_proto returns [15:13:53]Send response to host [15:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84740474.34,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":170457.05,"shift.sale.total_cash":142006.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:13:53]free response buf [15:13:53]execute_script done [15:13:53]execute_script returns [15:13:53]free content buf [15:13:53]Sock 8.Close socket [15:13:53]Sock 8.Thread stoped [15:13:53]accept exits with 9 [15:13:53]New connection [15:13:53]New thread 3066674532 created [15:13:53]Thread 3066817892 joined [15:13:53]Waiting for new connection... [15:13:53] Sock 9.Parse request [15:13:53]Sock 9.Check first char [15:13:53]Sock 9.First char is OK [15:13:53]request: POST /json_proto HTTP/1.0 [15:13:53]Method: POST [15:13:53]URL: /json_proto [15:13:53]Method is POST - this is cgi request [15:13:53]url: /json_proto [15:13:53]query_string will be loaded in cgi processing [15:13:53]execute_cgi json_proto POST (null) [15:13:53]execute_cgi path=json_proto method=POST [15:13:53]POST find Content-Length [15:13:53]Host: 172.17.59.68:8080 [15:13:53]Content-Length: 331 [15:13:53]Content-Type: application/json [15:13:53] [15:13:53]POST finish read [15:13:53]Found Content-Length = 331 [15:13:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:13:53]execute_script... [15:13:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:13:53]POST & json_proto [15:13:53]process_json_proto [15:13:53]json parsed OK: [15:13:53]protocol is kg_v1.0 [15:13:53]action value=get_value [15:13:53]process_action get_value [15:13:53]cmd_get_value [15:13:53]process_action get_value done [15:13:53]requested_data is exist [15:13:53]produce_requested_data [15:13:53]requested_item fm.sale.total is exist - process it [15:13:53]SAM_PROTO_GetFMData [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 13 03 00 [15:13:53]Write to MH i2c: E2 08 00 B5 0D 80 13 03 00 00 00 00 00 41 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 FD 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 FD 00 B5 0D 00 BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 EC [15:13:54]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 OFD Sender: No OFD packet to send [15:13:54]00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [15:13:54]wFMCommunicate OK [15:13:54]wFMCommunicate request_size=4 [15:13:54]MH_SAM_APDU [15:13:54]CAPDU: 80 17 00 00 [15:13:54]Write to MH i2c: E2 08 00 B6 0D 80 17 00 00 00 00 00 00 43 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 FD 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 FD 00 B6 0D 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [15:13:54]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:55]wFMCommunicate OK [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 17 00 00 [15:13:55]Write to MH i2c: E2 08 00 B7 0D 80 17 00 00 00 00 00 00 44 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 FD 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 FD 00 B7 0D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [15:13:55]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:13:55]wFMCommunicate OK [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 17 00 00 [15:13:55]Write to MH i2c: E2 08 00 B8 0D 80 17 00 00 00 00 00 00 45 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:56]Read from MH i2c: E2 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: E2 FD 00 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: E2 FD 00 B8 0D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 BC [15:13:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [15:13:56]wFMCommunicate OK [15:13:56]wFMCommunicate request_size=4 [15:13:56]MH_SAM_APDU [15:13:56]CAPDU: 80 17 00 00 [15:13:56]Write to MH i2c: E2 08 00 B9 0D 80 17 00 00 00 00 00 00 46 [15:13:56]Write i2c OK [15:13:56]MH_I2C_Read... [15:13:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [15:13:56]Read from MH i2c: E2 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: E2 DA 00 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: E2 DA 00 B9 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 27 [15:13:56]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:13:56]wFMCommunicate OK [15:13:56]SAM_PROTO_GetFMData done [15:13:56]requested_item fm.sale_refund.total is exist - process it [15:13:56]requested_item fm.buy.total is exist - process it [15:13:56]requested_item shift.sale.total is exist - process it [15:13:56]SAM_PROTO_GetShiftData [15:13:56]wFMCommunicate request_size=4 [15:13:56]MH_SAM_APDU [15:13:56]CAPDU: 80 13 02 00 [15:13:56]Write to MH i2c: E2 08 00 BA 0D 80 13 02 00 00 00 00 00 45 [15:13:57]Write i2c OK [15:13:57]MH_I2C_Read... [15:13:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:13:57]Read from MH i2c: E2 [15:13:57]MH_I2C_Read... [15:13:57]Read from MH i2c: E2 FD 00 [15:13:57]MH_I2C_Read... [15:13:57]Read from MH i2c: E2 FD 00 BA 0D 00 B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 86 [15:13:57]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 [15:13:57]wFMCommunicate OK [15:13:57]wFMCommunicate request_size=4 [15:13:57]MH_SAM_APDU [15:13:57]CAPDU: 80 17 00 00 [15:13:57]Write to MH i2c: E2 08 00 BB 0D 80 17 00 00 00 00 00 00 48 [15:13:57]Write i2c OK [15:13:57]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:58]Read from MH i2c: E2 FD 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 FD 00 BB 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 62 [15:13:58]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 [15:13:58]wFMCommunicate OK [15:13:58]wFMCommunicate request_size=4 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 17 00 00 [15:13:58]Write to MH i2c: E2 08 00 BC 0D 80 17 00 00 00 00 00 00 49 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 FD 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 FD 00 BC 0D 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 06 [15:13:58]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 [15:13:59]wFMCommunicate OK [15:13:59]wFMCommunicate request_size=4 [15:13:59]MH_SAM_APDU [15:13:59]CAPDU: 80 17 00 00 [15:13:59]Write to MH i2c: E2 08 00 BD 0D 80 17 00 00 00 00 00 00 4A [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:13:59]Read from MH i2c: E2 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 FD 00 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 FD 00 BD 0D 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 OFD Sender: No OFD packet to send [15:13:59]00 04 F7 03 00 00 EF 03 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 BD [15:13:59]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 [15:13:59]wFMCommunicate OK [15:13:59]wFMCommunicate request_size=4 [15:13:59]MH_SAM_APDU [15:13:59]CAPDU: 80 17 00 00 [15:13:59]Write to MH i2c: E2 08 00 BE 0D 80 17 00 00 00 00 00 00 4B [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [15:13:59]Read from MH i2c: E2 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 CD 00 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 CD 00 BE 0D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [15:14:00]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 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_GetShiftData done [15:14:00]requested_item shift.sale.total_cash is exist - process it [15:14:00]requested_item shift.sale_refund.total is exist - process it [15:14:00]requested_item shift.sale_refund.total_cash is exist - process it [15:14:00]requested_item shift.buy.total is exist - process it [15:14:00]requested_item shift.buy.total_cash is exist - process it [15:14:00]produce_requested_data done [15:14:00]produce_requested_data return {"fm.sale.total":84740474.34,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":170457.05,"shift.sale.total_cash":142006.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:14:00]process_action_free get_value [15:14:00]json_value_free [15:14:00]json_value_free done [15:14:00]process_json_proto returns [15:14:00]Send response to host [15:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84740474.34,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":170457.05,"shift.sale.total_cash":142006.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:14:00]free response buf [15:14:00]execute_script done [15:14:00]execute_script returns [15:14:00]free content buf [15:14:00]Sock 9.Close socket [15:14:00]Sock 9.Thread stoped [15:14:00]accept exits with 8 [15:14:00]New connection [15:14:00]New thread 3066817892 created [15:14:00]Thread 3066674532 joined [15:14:00]Waiting for new connection... [15:14:00] Sock 8.Parse request [15:14:00]Sock 8.Check first char [15:14:00]Sock 8.First char is OK [15:14:00]request: POST /json_proto HTTP/1.0 [15:14:00]Method: POST [15:14:00]URL: /json_proto [15:14:00]Method is POST - this is cgi request [15:14:00]url: /json_proto [15:14:00]query_string will be loaded in cgi processing [15:14:00]execute_cgi json_proto POST (null) [15:14:00]execute_cgi path=json_proto method=POST [15:14:00]POST find Content-Length [15:14:00]Host: 172.17.59.68:8080 [15:14:00]Content-Length: 278 [15:14:00]Content-Type: application/json [15:14:00] [15:14:00]POST finish read [15:14:00]Found Content-Length = 278 [15:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:00]execute_script... [15:14:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:00]POST & json_proto [15:14:00]process_json_proto [15:14:00]json parsed OK: [15:14:00]protocol is kg_v1.0 [15:14:00]action value=close_shift [15:14:00]process_action close_shift [15:14:00]cmd_close_shift [15:14:00]MH_GetDate [15:14:00]Write to MH i2c: F0 00 00 BF 0D BB [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 09 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 09 00 BF 0D 00 B9 3B 78 66 BC EC 60 65 03 [15:14:00]GetLastDocTimeStamp 1719155614 [15:14:00]current date 1719155641 [15:14:00]FM_GetShiftState [15:14:00]SAM_PROTO_GetShiftState [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 13 01 00 [15:14:00]Write to MH i2c: E2 08 00 C0 0D 80 13 01 00 00 00 00 00 4A [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 C0 0D 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 68 [15:14:00]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_GetShiftState done [15:14:00]FM_GetShiftState done [15:14:00]KKMCreateCloseShiftDocument [15:14:00]Load OK [15:14:00]Malloc new data [15:14:00]MH_GetDate [15:14:00]Write to MH i2c: F0 00 00 C1 0D BD [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 09 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 09 00 C1 0D 00 BA 3B 78 66 BC EC 60 65 06 [15:14:00]Malloc new data [15:14:00]Malloc new data [15:14:00]Malloc new data [15:14:00]Malloc new data [15:14:00]KKMCreateCloseShiftDocument OK [15:14:00]KKMSetCloseShiftData OK [15:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=77 [15:14:00]tlvbuf is 01C20980 [15:14:00]KKMLoadAndSignCloseShiftData [15:14:00]SAM_PROTO_ProcessDocument [15:14:00]wFMCommunicate request_size=9 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 15 01 00 04 05 00 4D 00 [15:14:00]Write to MH i2c: E2 0C 00 C2 0D 80 15 01 00 04 00 05 00 4D 00 00 00 A8 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 C2 0D 00 90 00 43 [15:14:00]RAPDU: 90 00 [15:14:00]wFMCommunicate OK [15:14:00]wFMCommunicate request_size=23 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [15:14:00]Write to MH i2c: E2 1A 00 C3 0D 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 45 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 C3 0D 00 90 00 44 [15:14:00]RAPDU: 90 00 [15:14:00]wFMCommunicate OK [15:14:00]wFMCommunicate request_size=36 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 [15:14:00]Write to MH i2c: E2 27 00 C4 0D 80 15 02 00 1F 00 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 00 00 F2 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 C4 0D 00 90 00 45 [15:14:00]RAPDU: 90 00 [15:14:00]wFMCommunicate OK [15:14:00]wFMCommunicate request_size=13 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 15 02 00 08 F4 03 04 00 BA 3B 78 66 [15:14:00]Write to MH i2c: E2 10 00 C5 0D 80 15 02 00 08 00 F4 03 04 00 BA 3B 78 66 00 00 30 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 C5 0D 00 90 00 46 [15:14:01]RAPDU: 90 00 [15:14:01]wFMCommunicate OK [15:14:01]wFMCommunicate request_size=25 [15:14:01]MH_SAM_APDU [15:14:01]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 [15:14:01]Write to MH i2c: E2 1C 00 C6 0D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 00 00 B6 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 C6 0D 00 90 00 47 [15:14:01]RAPDU: 90 00 [15:14:01]wFMCommunicate OK [15:14:01]wFMCommunicate request_size=4 [15:14:01]MH_SAM_APDU [15:14:01]CAPDU: 80 15 03 00 [15:14:01]Write to MH i2c: E2 08 00 C7 0D 80 15 03 00 00 00 00 00 55 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 C7 0D 00 F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B7 01 00 0E 04 04 00 88 01 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B4 00 00 00 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 90 00 95 [15:14:01]RAPDU: F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B7 01 00 0E 04 04 00 88 01 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B4 00 00 00 AA 04 AC 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 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 63 4D 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 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_ProcessDocument answer len = 1267 [15:14:02]SAM_PROTO_ProcessDocument remain to read = 1019 [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 17 00 00 [15:14:02]Write to MH i2c: E2 08 00 C8 0D 80 17 00 00 00 00 00 00 55 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 FD 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 FD 00 C8 0D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A5 [15:14:02]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:14:02]SAM_PROTO_ProcessDocument remain to read = 769 [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 17 00 00 [15:14:02]Write to MH i2c: E2 08 00 C9 0D 80 17 00 00 00 00 00 00 56 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 FD 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 FD 00 C9 0D 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 B8 [15:14:03]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [15:14:03]wFMCommunicate OK [15:14:03]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:14:03]SAM_PROTO_ProcessDocument remain to read = 519 [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 17 00 00 [15:14:03]Write to MH i2c: E2 08 00 CA 0D 80 17 00 00 00 00 00 00 57 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 FD 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 FD 00 CA 0D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [15:14:03]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:14:04]wFMCommunicate OK [15:14:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:14:04]SAM_PROTO_ProcessDocument remain to read = 269 [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 17 00 00 [15:14:04]Write to MH i2c: E2 08 00 CB 0D 80 17 00 00 00 00 00 00 58 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 FD 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 FD 00 CB 0D 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [15:14:04]01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 90 00 19 [15:14:04]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:14:04]wFMCommunicate OK [15:14:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:14:04]SAM_PROTO_ProcessDocument remain to read = 19 [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 17 00 00 [15:14:04]Write to MH i2c: E2 08 00 CC 0D 80 17 00 00 00 00 00 00 59 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 16 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 16 00 CC 0D 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 59 57 8E F2 62 B1 90 00 DC [15:14:04]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 59 57 8E F2 62 B1 90 00 [15:14:04]wFMCommunicate OK [15:14:04]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [15:14:04]SAM_PROTO_ProcessDocument done [15:14:04]1209 (1) - 1.0 - номер версии ФФД [15:14:04]1041 (16) - 0000000000875083 - номер ФМ [15:14:04]1040 (4) - 112578 - номер ФД [15:14:04]1038 (4) - 392 - номер смены [15:14:04]1118 (4) - 178 - количество кассовых чеков за смену [15:14:04]1111 (4) - 180 - общее количество ФД за смену [15:14:04]1194 (1196) - счетчики итогов смены [15:14:04] 1134 (4) - 178 - количество чеков со всеми признаками расчетов [15:14:05] 1129 (157) - счетчики операций «приход» [15:14:05] 1135 (4) - 178 - количество чеков по признаку расчетов [15:14:05] 1201 (4) - 170457.05 - общая итоговая сумма в чеках [15:14:05] 1136 (3) - 142006.00 - итоговая сумма в чеках наличными [15:14:05] 1138 (3) - 28451.05 - итоговая сумма в чеках безналичными [15:14:05] 1024 (123) - суммы налогов [15:14:05] 1006 (9) - суммы НДС [15:14:05] 1010 (1) - 0% - код ставки НДС [15:14:05] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:05] 1006 (12) - суммы НДС [15:14:05] 1010 (1) - 12% - код ставки НДС [15:14:05] 1011 (3) - 18108.98 - сумма НДС по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 0% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (12) - суммы НСП [15:14:05] 1014 (1) - 1% - код ставки НСП [15:14:05] 1015 (3) - 1508.83 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 2% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 3% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 5% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 0,50% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 1,50% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1130 (141) - счетчики операций «возврат прихода» [15:14:05] 1135 (4) - 0 - количество чеков по признаку расчетов [15:14:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:14:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:14:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:05] 1024 (117) - суммы налогов [15:14:05] 1006 (9) - суммы НДС [15:14:05] 1010 (1) - 0% - код ставки НДС [15:14:05] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:05] 1006 (9) - суммы НДС [15:14:05] 1010 (1) - 12% - код ставки НДС [15:14:05] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 0% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 1% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 2% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 3% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 5% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 0,50% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 1,50% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1131 (141) - счетчики операций «расход» [15:14:05] 1135 (4) - 0 - количество чеков по признаку расчетов [15:14:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:14:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:14:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:05] 1024 (117) - суммы налогов [15:14:05] 1006 (9) - суммы НДС [15:14:05] 1010 (1) - 0% - код ставки НДС [15:14:05] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:05] 1006 (9) - суммы НДС [15:14:05] 1010 (1) - 12% - код ставки НДС [15:14:05] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 0% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 1% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 2% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 3% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 5% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 0,50% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 1,50% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1132 (141) - счетчики операций «возврат расхода» [15:14:05] 1135 (4) - 0 - количество чеков по признаку расчетов [15:14:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:14:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:14:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:05] 1024 (117) - суммы налогов [15:14:05] 1006 (9) - суммы НДС [15:14:05] 1010 (1) - 0% - код ставки НДС [15:14:05] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:05] 1006 (9) - суммы НДС [15:14:05] 1010 (1) - 12% - код ставки НДС [15:14:05] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 0% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 1% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 2% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 3% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 5% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 0,50% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1007 (9) - суммы НСП [15:14:05] 1014 (1) - 1,50% - код ставки НСП [15:14:05] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:05] 1133 (588) - - счетчики коррекции - не используются [15:14:05]1077 (6) - 98232595276465 - ФПД [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1209 (04B9) [15:14:05]Malloc new data [15:14:05]Processing tag 1041 (0411) [15:14:05]Processing tag 1040 (0410) [15:14:05]Malloc new data [15:14:05]Processing tag 1038 (040E) [15:14:05]Malloc new data [15:14:05]Processing tag 1118 (045E) [15:14:05]Malloc new data [15:14:05]Processing tag 1111 (0457) [15:14:05]Malloc new data [15:14:05]Processing tag 1194 (04AA) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1134 (046E) [15:14:05]Malloc new data [15:14:05]Processing tag 1129 (0469) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1135 (046F) [15:14:05]Malloc new data [15:14:05]Processing tag 1201 (04B1) [15:14:05]Malloc new data [15:14:05]Processing tag 1136 (0470) [15:14:05]Malloc new data [15:14:05]Processing tag 1138 (0472) [15:14:05]Malloc new data [15:14:05]Processing tag 1024 (0400) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1006 (03EE) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1010 (03F2) [15:14:05]Malloc new data [15:14:05]Processing tag 1011 (03F3) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1006 (03EE) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1010 (03F2) [15:14:05]Malloc new data [15:14:05]Processing tag 1011 (03F3) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]SetTLVBufToDocument err=0 [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1130 (046A) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1135 (046F) [15:14:05]Malloc new data [15:14:05]Processing tag 1201 (04B1) [15:14:05]Malloc new data [15:14:05]Processing tag 1136 (0470) [15:14:05]Malloc new data [15:14:05]Processing tag 1138 (0472) [15:14:05]Malloc new data [15:14:05]Processing tag 1024 (0400) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1006 (03EE) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1010 (03F2) [15:14:05]Malloc new data [15:14:05]Processing tag 1011 (03F3) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1006 (03EE) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1010 (03F2) [15:14:05]Malloc new data [15:14:05]Processing tag 1011 (03F3) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]SetTLVBufToDocument err=0 [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1131 (046B) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1135 (046F) [15:14:05]Malloc new data [15:14:05]Processing tag 1201 (04B1) [15:14:05]Malloc new data [15:14:05]Processing tag 1136 (0470) [15:14:05]Malloc new data [15:14:05]Processing tag 1138 (0472) [15:14:05]Malloc new data [15:14:05]Processing tag 1024 (0400) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1006 (03EE) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1010 (03F2) [15:14:05]Malloc new data [15:14:05]Processing tag 1011 (03F3) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1006 (03EE) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1010 (03F2) [15:14:05]Malloc new data [15:14:05]Processing tag 1011 (03F3) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]SetTLVBufToDocument err=0 [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1132 (046C) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1135 (046F) [15:14:05]Malloc new data [15:14:05]Processing tag 1201 (04B1) [15:14:05]Malloc new data [15:14:05]Processing tag 1136 (0470) [15:14:05]Malloc new data [15:14:05]Processing tag 1138 (0472) [15:14:05]Malloc new data [15:14:05]Processing tag 1024 (0400) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1006 (03EE) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1010 (03F2) [15:14:05]Malloc new data [15:14:05]Processing tag 1011 (03F3) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1006 (03EE) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1010 (03F2) [15:14:05]Malloc new data [15:14:05]Processing tag 1011 (03F3) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:05]Processing tag 1007 (03EF) [15:14:05]Load OK [15:14:05]SetTLVBufToDocument [15:14:05]Processing tag 1014 (03F6) [15:14:05]Malloc new data [15:14:05]Processing tag 1015 (03F7) [15:14:05]Malloc new data [15:14:05]SetTLVBufToDocument err=0 [15:14:06]Processing tag 1007 (03EF) [15:14:06]Load OK [15:14:06]SetTLVBufToDocument [15:14:06]Processing tag 1014 (03F6) [15:14:06]Malloc new data [15:14:06]Processing tag 1015 (03F7) [15:14:06]Malloc new data [15:14:06]SetTLVBufToDocument err=0 [15:14:06]Processing tag 1007 (03EF) [15:14:06]Load OK [15:14:06]SetTLVBufToDocument [15:14:06]Processing tag 1014 (03F6) [15:14:06]Malloc new data [15:14:06]Processing tag 1015 (03F7) [15:14:06]Malloc new data [15:14:06]SetTLVBufToDocument err=0 [15:14:06]Processing tag 1007 (03EF) [15:14:06]Load OK [15:14:06]SetTLVBufToDocument [15:14:06]Processing tag 1014 (03F6) [15:14:06]Malloc new data [15:14:06]Processing tag 1015 (03F7) [15:14:06]Malloc new data [15:14:06]SetTLVBufToDocument err=0 [15:14:06]SetTLVBufToDocument err=0 [15:14:06]SetTLVBufToDocument err=0 [15:14:06]Processing tag 1133 (046D) [15:14:06]Malloc new data [15:14:06]SetTLVBufToDocument err=0 [15:14:06]Processing tag 1077 (0435) [15:14:06]Malloc new data [15:14:06]SetTLVBufToDocument err=0 [15:14:06]Malloc new data [15:14:06]SAM_PROTO_GetFMData [15:14:06]wFMCommunicate request_size=4 [15:14:06]MH_SAM_APDU [15:14:06]CAPDU: 80 13 03 00 [15:14:06]Write to MH i2c: E2 08 00 CD 0D 80 13 03 00 00 00 00 00 59 [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:14:06]Read from MH i2c: E2 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 FD 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 FD 00 CD 0D 00 BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 04 [15:14:06]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B2 B4 01 00 69 04 A3 00 6F 04 04 00 B0 B4 01 00 B1 04 05 00 CA B3 17 F9 01 70 04 05 00 38 C4 29 E7 01 72 04 04 00 92 EF ED 11 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 2A 44 A8 35 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 70 8E 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 17 00 00 [15:14:07]Write to MH i2c: E2 08 00 CE 0D 80 17 00 00 00 00 00 00 5B [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 FD 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 FD 00 CE 0D 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [15:14:07]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:14:08]wFMCommunicate OK [15:14:08]wFMCommunicate request_size=4 [15:14:08]MH_SAM_APDU [15:14:08]CAPDU: 80 17 00 00 [15:14:08]Write to MH i2c: E2 08 00 CF 0D 80 17 00 00 00 00 00 00 5C [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:08]Read from MH i2c: E2 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: E2 FD 00 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: E2 FD 00 CF 0D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [15:14:08]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:14:08]wFMCommunicate OK [15:14:08]wFMCommunicate request_size=4 [15:14:08]MH_SAM_APDU [15:14:08]CAPDU: 80 17 00 00 [15:14:08]Write to MH i2c: E2 08 00 D0 0D 80 17 00 00 00 00 00 00 5D [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 FD 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 FD 00 D0 0D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 D4 [15:14:09]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [15:14:09]wFMCommunicate OK [15:14:09]wFMCommunicate request_size=4 [15:14:09]MH_SAM_APDU [15:14:09]CAPDU: 80 17 00 00 [15:14:09]Write to MH i2c: E2 08 00 D1 0D 80 17 00 00 00 00 00 00 5E [15:14:09]Write i2c OK [15:14:09]MH_I2C_Read... [15:14:09]OFD Sender: No OFD packet to send [15:14:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 DA 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 DA 00 D1 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F [15:14:10]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:14:10]wFMCommunicate OK [15:14:10]SAM_PROTO_GetFMData done [15:14:10]Malloc new data [15:14:10]Malloc new data [15:14:10]Malloc new data [15:14:10]Malloc new data [15:14:10]KKMLoadAndSignCloseShiftData err=0 [15:14:10]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Бейшенбеков А. 23.06.2024 15:14 Смена: 392 РНМ: 0000000000092771 ЗНМ: 0300000198 СНО: Общий режим Чеков за смену: 178 ФД за смену: 180 Всего чеков: 178 ИТОГИ ПРИХОД Чеков: 178 Общий итог: 170457.05 Итого наличными: 142006.00 Итого безнал.: 28451.05 НДС 0% : 0.00 НДС 12% : 18108.98 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1508.83 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 142006.00 НС Приход: 84740474.34 НС Возвр.Прихода: 201.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 112578 ФМ: 0000000000875083 ФПД: 98232595276465 [15:14:10]StoreToDocumentArchive [15:14:10]shift 392 fd 112578 [15:14:10]save to /storage/0392/doc_00112578 [15:14:10]save last doc name /storage/0392/doc_00112578 to /storage/kkm_last_doc_name [15:14:10]save OK [15:14:10]Clear old archive folders... [15:14:10]Remove dir /storage/0266 [15:14:10]opendir ok [15:14:10]file . [15:14:10]file .. [15:14:10]file doc_1719155622 [15:14:10]remove file /storage/0266/doc_1719155622 [15:14:10]remove dir /storage/0266 [15:14:10]NVStorageSaveData kkm_registers [15:14:10]File name is /storage/kkm_registers [15:14:10]Write 24 bytes [15:14:10]NVStorageSaveData done [15:14:10]NVStorageSaveData kkm_registers [15:14:10]File name is /storage/kkm_registers [15:14:10]Write 24 bytes [15:14:10]NVStorageSaveData done [15:14:10]ProcessDocumentItem done err = 0, tmpTLVsize=1387 [15:14:10]tlvbuf is 01CF27C0 [15:14:10]SAM_PROTO_ClearQueue [15:14:10]wFMCommunicate request_size=4 [15:14:10]MH_SAM_APDU [15:14:10]CAPDU: 80 09 00 00 [15:14:10]Write to MH i2c: E2 08 00 D2 0D 80 09 00 00 00 00 00 00 51 [15:14:10]Write i2c OK [15:14:10]MH_I2C_Read... [15:14:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:10]Read from MH i2c: E2 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 03 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [15:14:10]RAPDU: 90 00 [15:14:10]wFMCommunicate OK [15:14:10]SAM_PROTO_ClearQueue done [15:14:10]KKMCreateOFDPacket [15:14:10]OFDProtocolAddRootSTLVToBuf [15:14:10]FM_MakeSignedData [15:14:10]FM_MakeSignedData [15:14:10]SAM_PROTO_SignData [15:14:10]wFMCommunicate request_size=4 [15:14:10]MH_SAM_APDU [15:14:10]CAPDU: 80 0D 01 02 [15:14:10]Write to MH i2c: E2 08 00 D3 0D 80 0D 01 02 00 00 00 00 59 [15:14:10]Write i2c OK [15:14:10]MH_I2C_Read... [15:14:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:10]Read from MH i2c: E2 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 03 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [15:14:10]RAPDU: 90 00 [15:14:10]wFMCommunicate OK [15:14:10]wFMCommunicate request_size=255 [15:14:10]MH_SAM_APDU [15:14:10]CAPDU: 80 0D 02 02 FA 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 BA 3B 78 66 0E 04 04 00 88 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 B2 00 00 00 57 04 04 00 B4 00 00 00 AA 04 D7 04 6E 04 04 00 B2 00 00 00 69 04 A4 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 1B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 [15:14:10]Write to MH i2c: E2 02 01 D4 0D 80 0D 02 02 FA 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 BA 3B 78 66 0E 04 04 00 88 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 B2 00 00 00 57 04 04 00 B4 00 00 00 AA 04 D7 04 6E 04 04 00 B2 00 00 00 69 04 A4 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 1B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 00 00 A1 [15:14:11]Write i2c OK [15:14:11]MH_I2C_Read... [15:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:11]Read from MH i2c: E2 [15:14:11]MH_I2C_Read... [15:14:11]Read from MH i2c: E2 03 00 [15:14:11]MH_I2C_Read... [15:14:11]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [15:14:11]RAPDU: 90 00 [15:14:11]wFMCommunicate OK [15:14:11]wFMCommunicate request_size=255 [15:14:11]MH_SAM_APDU [15:14:11]CAPDU: 80 0D 02 02 FA F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 63 4D 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 [15:14:11]Write to MH i2c: E2 02 01 D5 0D 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 63 4D 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 00 7F [15:14:11]Write i2c OK [15:14:11]MH_I2C_Read... [15:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:12]Read from MH i2c: E2 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 03 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [15:14:12]RAPDU: 90 00 [15:14:12]wFMCommunicate OK [15:14:12]wFMCommunicate request_size=255 [15:14:12]MH_SAM_APDU [15:14:12]CAPDU: 80 0D 02 02 FA 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A [15:14:12]Write to MH i2c: E2 02 01 D6 0D 80 0D 02 02 FA 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 00 21 [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:12]Read from MH i2c: E2 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 03 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [15:14:12]RAPDU: 90 00 [15:14:12]wFMCommunicate OK [15:14:12]wFMCommunicate request_size=255 [15:14:12]MH_SAM_APDU [15:14:12]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 [15:14:13]Write to MH i2c: E2 02 01 D7 0D 80 0D 02 02 FA 00 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 00 00 1A [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [15:14:13]RAPDU: 90 00 [15:14:13]wFMCommunicate OK [15:14:13]wFMCommunicate request_size=255 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 0D 02 02 FA 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE [15:14:14]Write to MH i2c: E2 02 01 D8 0D 80 0D 02 02 FA 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 00 00 EB [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [15:14:14]RAPDU: 90 00 [15:14:14]wFMCommunicate OK [15:14:14]wFMCommunicate request_size=146 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 0D 02 02 8D 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [15:14:14]03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C2 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 59 57 8E F2 62 B1 [15:14:14]Write to MH i2c: E2 95 00 D9 0D 80 0D 02 02 8D 00 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C2 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 59 57 8E F2 62 B1 00 00 69 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 03 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [15:14:15]RAPDU: 90 00 [15:14:15]wFMCommunicate OK [15:14:15]wFMCommunicate request_size=4 [15:14:15]MH_SAM_APDU [15:14:15]CAPDU: 80 0D 03 02 [15:14:15]Write to MH i2c: E2 08 00 DA 0D 80 0D 03 02 00 00 00 00 62 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 0B 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 0B 00 DA 0D 00 8D 09 02 72 6E BC EE FB 90 00 80 [15:14:15]RAPDU: 8D 09 02 72 6E BC EE FB 90 00 [15:14:15]wFMCommunicate OK [15:14:15]SAM_PROTO_SignData done [15:14:15]FM_MakeSignedData done [15:14:15]CreateOFDProtocolMessage [15:14:15]wFMCommunicate request_size=4 [15:14:15]MH_SAM_APDU [15:14:15]CAPDU: 80 11 00 00 [15:14:15]Write to MH i2c: E2 08 00 DB 0D 80 11 00 00 00 00 00 00 62 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 17 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 17 00 DB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [15:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:14:15]wFMCommunicate OK [15:14:15]CreateOFDProtocolMessage done [15:14:15]OFDSenderStorePacket 112578 [15:14:15]StoreOFDPacket docnum=112578 [15:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 7F 05 00 00 CB AF 77 05 54 83 5A 05 01 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 BA 3B 78 66 0E 04 04 00 88 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 B2 00 00 00 57 04 04 00 B4 00 00 00 AA 04 D7 04 6E 04 04 00 B2 00 00 00 69 04 A4 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 1B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 63 4D 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C2 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 59 57 8E F2 62 B1 8D 09 02 72 6E BC EE FB [15:14:15]CheckFolder [15:14:15]dirname=/storage/ofd_packets [15:14:15]CheckFolder done [15:14:15]ProducePacketName [15:14:15]name=ofd_packets/00112578 [15:14:15]NVStorageSaveData ofd_packets/00112578 [15:14:15]File name is /storage/ofd_packets/00112578 [15:14:15]Write 1437 bytes [15:14:15]NVStorageSaveData done [15:14:15]OFDSenderStorePacket done [15:14:15]KKMCreateOFDPacket done [15:14:15]NVStorageSaveData kkm_last_timestamp [15:14:15]File name is /storage/kkm_last_timestamp [15:14:15]Write 4 bytes [15:14:15]NVStorageSaveData done [15:14:15]ExternCall_PrintAddStr [15:14:15]wPrintStart [15:14:15]Write to MH i2c: 01 00 00 DC 0D E9 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 07 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [15:14:15]RasterBufferAndPrint [15:14:15]line Отчет о закрытии смены [15:14:15]line ФФД: 1.0 [15:14:15]line ИНН: 02508201610067 [15:14:15]line Кассир: Бейшенбеков А. [15:14:15]line 23.06.2024 15:14 [15:14:15]line Смена: 392 [15:14:15]line РНМ: 0000000000092771 [15:14:15]line ЗНМ: 0300000198 [15:14:15]line СНО: Общий режим [15:14:15]line Чеков за смену: 178 [15:14:15]line ФД за смену: 180 [15:14:15]line Всего чеков: 178 [15:14:15]line ИТОГИ ПРИХОД [15:14:15]line Чеков: 178 [15:14:15]line Общий итог: 170457.05 [15:14:15]line Итого наличными: 142006.00 [15:14:15]line Итого безнал.: 28451.05 [15:14:15]line НДС 0% : 0.00 [15:14:15]line НДС 12% : 18108.98 [15:14:15]line НСП 0% : 0.00 [15:14:15]line НСП 1,50% : 0.00 [15:14:15]line НСП 0,50% : 0.00 [15:14:15]line НСП 5% : 0.00 [15:14:15]line НСП 3% : 0.00 [15:14:15]line НСП 2% : 0.00 [15:14:15]line НСП 1% : 1508.83 [15:14:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [15:14:15]line Чеков: 0 [15:14:15]line Общий итог: 0.00 [15:14:15]line Итого наличными: 0.00 [15:14:15]line Итого безнал.: 0.00 [15:14:15]line НДС 0% : 0.00 [15:14:15]line НДС 12% : 0.00 [15:14:15]line НСП 0% : 0.00 [15:14:15]line НСП 1,50% : 0.00 [15:14:16]line НСП 0,50% : 0.00 [15:14:16]line НСП 5% : 0.00 [15:14:16]line НСП 3% : 0.00 [15:14:16]line НСП 2% : 0.00 [15:14:16]line НСП 1% : 0.00 [15:14:16]line ИТОГИ РАСХОД [15:14:16]line Чеков: 0 [15:14:16]line Общий итог: 0.00 [15:14:16]line Итого наличными: 0.00 [15:14:16]line Итого безнал.: 0.00 [15:14:16]line НДС 0% : 0.00 [15:14:16]line НДС 12% : 0.00 [15:14:16]line НСП 0% : 0.00 [15:14:16]line НСП 1,50% : 0.00 [15:14:16]line НСП 0,50% : 0.00 [15:14:16]line НСП 5% : 0.00 [15:14:16]OFD Sender: Processing packet 112578 [packets to send 38, broken 37] [15:14:16]line НСП 3% : 0.00 [15:14:16]ProducePacketName [15:14:16]line НСП 2% : 0.00 [15:14:16]name=ofd_packets/00112578 [15:14:16]line НСП 1% : 0.00 [15:14:16]OFD Sender: To server: pG, [15:14:16]line ИТОГИ ВОЗВРАТ РАСХОДА [15:14:16]CommunicateWithHost lk.salyk.kg:30040 [15:14:16]ConnectInit lk.salyk.kg [15:14:16]line Чеков: 0 [15:14:16]line Общий итог: 0.00 [15:14:16]line Итого наличными: 0.00 [15:14:16]line Итого безнал.: 0.00 [15:14:16]line НДС 0% : 0.00 [15:14:16]line НДС 12% : 0.00 [15:14:16]line НСП 0% : 0.00 [15:14:16]line НСП 1,50% : 0.00 [15:14:16]line НСП 0,50% : 0.00 [15:14:16]line НСП 5% : 0.00 [15:14:16]line НСП 3% : 0.00 [15:14:16]line НСП 2% : 0.00 [15:14:16]line НСП 1% : 0.00 [15:14:16]line Сумма внесений: 0.00 [15:14:16]line Сумма выплат: 0.00 [15:14:16]line Нал. в кассе: 142006.00 [15:14:16]line НС Приход: 84740474.34 [15:14:16]line НС Возвр.Прихода: 201.00 [15:14:16]line НС Расход: 0.00 [15:14:16]line НС Возвр.Расхода: 0.00 [15:14:16]line ФД: 112578 [15:14:16]line ФМ: 0000000000875083 [15:14:16]line ФПД: 98232595276465 [15:14:16]written 0, free lines is 4095 [15:14:16]Connected sock=10 [15:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 7F 05 00 00 CB AF 77 05 54 83 5A 05 01 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 BA 3B 78 66 0E 04 04 00 88 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 B2 00 00 00 57 04 04 00 B4 00 00 00 AA 04 D7 04 6E 04 04 00 B2 00 00 00 69 04 A4 00 6F 04 04 00 B2 00 00 00 B1 04 04 00 C9 18 04 01 70 04 03 00 18 AF D8 72 04 03 00 B1 69 2B 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 A1 1B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 63 4D 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A Write to MH i2c: 00 01 F6 00 03 00 01 2C 00 0E 00 3A F7 03 01 00 00 EF 03 0A 00 F6 [15:14:16]03 01 00 06 F7 03 01 00 00 Write i2c OK [15:14:16]EF MH_I2C_Read... [15:14:16]03 0A 00 F6 03 Read from MH i2c: 01 01 00 [15:14:16]05 MH_I2C_Read... [15:14:16]F7 03 01 00 00 EF 03 0A 00 F6 03 Read from MH i2c: 01 01 00 07 04 00 F7 [15:14:16]03 MH_I2C_Read... [15:14:16]01 00 00 EF 03 0A 00 F6 Read from MH i2c: 03 01 01 07 00 00 03 2C F7 0E 03 00 01 00 00 00 00 00 EF 00 03 A8 0A 0A 00 F3 F6 03 01 00 02 F7 03 01 00 00 [15:14:17]EF RasterBufferAndPrint [15:14:17]03 line [15:14:17]0A line [15:14:17]00 line [15:14:17]F6 line [15:14:17]03 line [15:14:17]01 00 01 F7 03 01 written 0, free lines is 2963 [15:14:17]00 00 6D 04 4C 02 78 04 04 00 00 MH_Cut [15:14:17]00 Write to MH i2c: 00 D1 00 01 79 00 04 33 8D 0E 00 6F 04 04 00 00 00 00 00 B1 01 04 13 00 [15:14:17]00 70 04 00 00 72 04 00 00 00 04 75 00 EE Write i2c OK [15:14:17]03 MH_I2C_Read... [15:14:17]09 Read from MH i2c: 00 D1 F2 [15:14:17]03 MH_I2C_Read... [15:14:17]01 00 00 F3 03 00 00 Read from MH i2c: EE D1 03 01 09 00 00 [15:14:17]F2 MH_I2C_Read... [15:14:17]03 Read from MH i2c: 01 D1 00 01 01 F3 03 00 00 EF 03 09 00 F6 00 33 03 0E 01 00 00 12 00 F7 03 00 00 EF 03 09 00 F6 [15:14:17]03 Write to MH i2c: 01 01 00 00 01 00 F7 34 03 0E 00 42 00 [15:14:17]EF 03 09 00 F6 03 01 00 02 F7 Write i2c OK [15:14:17]03 MH_I2C_Read... [15:14:17]00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C2 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 59 57 8E F2 62 B1 8D 09 02 72 6E BC EE FB [15:14:17]*** Cut start [15:14:17]*** Partial cut [15:14:17]*** CUTSNS_PIN = 1 [15:14:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 *** CUTSNS_PIN = 0 [15:14:18]37 35 30 38 33 4F 00 00 00 A2 1B 47 00 41 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B7 01 00 F4 03 04 00 B3 D2 77 66 B6 04 01 00 00 A1 4D 7B D5 D9 4C 18 21 [15:14:18]CommunicateWithHost err = 0 [15:14:18]CheckOFDResponse [15:14:18]1017 (14) - 77093643461234 [15:14:18]1041 (16) - 0000000000875083 [15:14:18]1040 (4) - 112578 [15:14:18]*** Brake cut motor [15:14:18]1012 (4) - 23.06.2024 07:45 [15:14:18]1206 (1) - 0 [15:14:18]OFD Sender: Remove packet 112578 [15:14:18]ProducePacketName [15:14:18]name=ofd_packets/00112578 [15:14:18]NVStorageDeleteData [15:14:18]Read from MH i2c: 01 [15:14:18]MH_I2C_Read... [15:14:18]*** Stop cut motor [15:14:18]*** Cut end [15:14:18]Read from MH i2c: 01 07 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 FF 0F 57 [15:14:18]process_action close_shift done [15:14:18]requested_data is exist [15:14:18]produce_requested_data [15:14:18]requested_item fd.num is exist - process it [15:14:18]SAM_PROTO_GetFieldsCounters [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 13 00 00 [15:14:18]Write to MH i2c: E2 08 00 35 0E 80 13 00 00 00 00 00 00 BF [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:18]OFD Sender: No OFD packet to send [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 62 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 62 00 35 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [15:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:19]wFMCommunicate OK [15:14:19]SAM_PROTO_GetFieldsCounters done [15:14:19]requested_item shift.num is exist - process it [15:14:19]requested_item shift.opened is exist - process it [15:14:19]req_shift_opened [15:14:19]FM_GetShiftState [15:14:19]SAM_PROTO_GetShiftState [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 13 01 00 [15:14:19]Write to MH i2c: E2 08 00 36 0E 80 13 01 00 00 00 00 00 C1 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0E 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0E 00 36 0E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CC [15:14:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:14:19]wFMCommunicate OK [15:14:19]SAM_PROTO_GetShiftState done [15:14:19]FM_GetShiftState done [15:14:19]req_shift_opened done [15:14:19]requested_item shift.open_date is exist - process it [15:14:19]req_shift_open_date [15:14:19]FM_GetShiftState [15:14:19]SAM_PROTO_GetShiftState [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 13 01 00 [15:14:19]Write to MH i2c: E2 08 00 37 0E 80 13 01 00 00 00 00 00 C2 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0E 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0E 00 37 0E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CD [15:14:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:14:19]wFMCommunicate OK [15:14:19]SAM_PROTO_GetShiftState done [15:14:19]FM_GetShiftState done [15:14:19]req_shift_open_date done [15:14:19]produce_requested_data done [15:14:19]produce_requested_data return {"fd.num":112578,"shift.num":392,"shift.opened":0,"shift.open_date":0} [15:14:19]process_action_free close_shift [15:14:19]json_value_free [15:14:19]json_value_free done [15:14:19]process_json_proto returns [15:14:19]Send response to host [15:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112578,"shift.num":392,"shift.opened":0,"shift.open_date":0}}} [15:14:19]free response buf [15:14:19]execute_script done [15:14:19]execute_script returns [15:14:19]free content buf [15:14:19]Sock 8.Close socket [15:14:19]Sock 8.Thread stoped [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]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:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25: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